跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

spec

Write a comprehensive product or engineering specification before implementation. Use when the user asks for `/spec`, PRDs, feature specs, API specs, refactor specs, acceptance criteria, user stories, edge cases, or open decision tracking before code is written.

eigent-ai · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add eigent-ai/agent-skills --skill spec

技能说明


name: spec description: Write a comprehensive product or engineering specification before implementation. Use when the user asks for /spec, PRDs, feature specs, API specs, refactor specs, acceptance criteria, user stories, edge cases, or open decision tracking before code is written.

Spec

Overview

Use this skill to turn a feature, API, refactor, or product idea into a clear specification that can feed planning and implementation. The output should reduce ambiguity before code is written.

Workflow

  1. Identify the problem, goal, users, constraints, and non-goals.
  2. Capture the current behavior or system context when relevant.
  3. Define user stories or use cases with acceptance criteria.
  4. Specify functional requirements, edge cases, error states, permissions, and data handling.
  5. Include API, UI, migration, observability, performance, or rollout requirements when applicable.
  6. List open decisions and assumptions explicitly.
  7. Keep the spec implementation-aware but avoid over-prescribing internal code structure unless required.

Output Pattern

Use this structure by default:

  1. Summary.
  2. Problem statement.
  3. Goals and non-goals.
  4. Users and use cases.
  5. Requirements.
  6. Acceptance criteria.
  7. Edge cases and risks.
  8. Observability, rollout, and rollback notes.
  9. Open questions.

Example Prompts

  • /spec - Build a CSV export feature for our analytics dashboard. Users need to export filtered data with custom date ranges. Support up to 100k rows.
  • /spec - Design a public webhooks API for our platform. Third-party apps need to subscribe to user events and receive payloads reliably with retry logic.
  • /spec - Refactor our authentication flow to support SSO. We need to keep existing email/password working and add Google and GitHub OAuth without breaking current sessions.