Agent Skills
› codeaholicguy/ai-devkit
› dev-requirements
dev-requirements
GitHub用于新功能需求捕获、范围澄清及需求文档审查。通过引导式问答明确产品目标与架构,初始化开发文档并生成任务计划,确保在需求阶段充分对齐后再进入设计与开发环节。
Trigger Scenarios
用户想要记录新需求或功能构想
需要澄清产品范围和验收标准
启动新功能的需求分析阶段
审查现有需求文档的完整性
Install
npx skills add codeaholicguy/ai-devkit --skill dev-requirements -g -y
SKILL.md
Frontmatter
{
"name": "dev-requirements",
"description": "AI DevKit · Requirements phase guidance for starting features and reviewing requirements. Use when the user wants to capture a new requirement, clarify product scope, initialize feature docs, review requirements, or run dev-lifecycle phases 1-2."
}
Dev Requirements
Run the requirements phases for configured AI docs features. Before making docs or code changes, propose the concrete plan for this phase and wait for user approval unless the user already approved the exact phase plan.
Phase Contract
- Run
npx ai-devkit@latest lintbefore phase work. - If working on a named feature, run
npx ai-devkit@latest lint --feature <name>. - If lint fails because project docs are not initialized, run
npx ai-devkit@latest init -a -e claude --built-in --yes, then rerun lint. - Read existing configured AI docs and keep diffs minimal. Do not assume
docs/ai; it is only the default docs directory. - Ask until every material product, UX, architecture, scope, validation, rollout, contradiction, trade-off, or open question is answered, explicitly deferred, or accepted as a named assumption.
- Ask one decision at a time, with why it matters, 2-3 viable options when useful, and a recommended answer.
- Do not create, update, approve, or transition past requirements while material open questions remain.
- Restate the shared understanding before updating docs or suggesting the next phase.
- If parent
dev-lifecycleestablished usable task tracing, emit requirements phase, clarification/progress, blocker/open-question, and next-step events pertask.
New Requirement
Use for Phase 1 or /new-requirement.
- Search AI DevKit memory for relevant past features or conventions with
npx ai-devkit@latest memory search --query "<feature/topic>". If unfamiliar, check thememoryskill first. - Clarify feature name in kebab-case, problem, target users, key user stories, scope, non-goals, success criteria, UX, constraints, rollout, and validation.
- Brainstorm alternatives to confirm this is the right thing to build. Present 2-3 approaches with one-line trade-offs and a recommendation.
- Store reusable answers after clarification.
- Use
dev-worktreeto create or resume the active feature workspace with normalized<name>. - Initialize docs with
npx ai-devkit@latest docs init-feature <name>from the active worktree/repository and fill the returned paths. Treat those returned paths as authoritative becausepaths.docsmay customize the docs directory. - Fill requirements doc: problem statement, goals/non-goals, user stories, success criteria, constraints, open questions.
- Fill design doc: architecture with mermaid diagram, data models, APIs, components, design decisions, security/performance.
- Fill testing doc: derive scenarios from requirements success criteria and design components/edge cases as
- [ ]checkboxes, plus mocks/fixtures and coverage target. - If task tracing is available, record draft progress and next review step per
task. - Use
dev-planningto create the initial task plan from the requirements, design, and testing docs.
Next: dev-requirements review, then dev-design.
Review Requirements
Use for Phase 2.
- Run
npx ai-devkit@latest lint --feature <name>and review the requirements doc path it validates. If manual path resolution is unavoidable, first resolve.ai-devkit.jsonpaths.docs, falling back todocs/ai. - Check it against the
README.mdtemplate. - Search memory for relevant conventions or past patterns.
- Review each section: problem statement, goals/non-goals, success criteria, user stories, constraints, open questions, template compliance.
- Resolve every gap, contradiction, ambiguity, open question, or implicit assumption.
- Brainstorm alternatives for key decisions and trade-offs before accepting the first approach.
- Update the requirements doc with clarified answers and chosen options.
- Store reusable clarifications in memory.
- If task tracing is available, record validation progress, next step, or blockers per
task. - Summarize what was validated, what was updated, and remaining open items.
Next: dev-design. If fundamental gaps remain unresolvable, return to New Requirement.
Version History
- d4caf56 Current 2026-07-05 15:22


