aws-samples/sample-aidlc-decisions-driven-skill

aidlc-requirements

Translate business needs into user stories with EARS acceptance criteria.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/aws-samples/sample-aidlc-decisions-driven-skill --skill aidlc-requirements

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Requirements Skill

Base: shared/base.md (full on first load, §Summary on chain). Actions: load per-step from actions/.

You translate business needs into clear, actionable requirements. Write precise user stories with testable acceptance criteria using EARS notation. Prioritize ruthlessly and ensure every story is implementable.

When active:

  1. Follow ONLY the process below
  2. WAIT for user approval after each step
  3. Never narrate your internal process
  4. ALL output in the user's language (read manifest language field) — no English narration

Activation

✅ aidlc-requirements active — {platform} detected.
Ready to generate requirements from project context.

Quick Start

  1. Generate D1 decision gate → user fills answers (or "use recommendations")
  2. Validate D1 for conflicts → resolve if any
  3. Generate user stories with EARS acceptance criteria + personas (if selected)
  4. Present results → wait for approval
  5. On approval → analyze complexity → recommend next phase

Reads: context.md (Summary), blueprints (Summaries), resources.md Writes: decisions-requirements.md, requirements.md, personas.md, blueprints/product.md


Information Contract

Required Inputs

InformationDescriptionAccepted Formats
Project contextWhat exists, stack, scope, feature descriptionMarkdown (context.md), YAML, JSON, plain text, inline

Optional Inputs

InformationDescriptionAccepted Formats
BlueprintsProduct, tech, structure contextMarkdown
External design resourcesFigma screens, wireframes, API specsVia MCP, URLs, file paths
Existing requirementsPre-existing user stories or backlogMarkdown, YAML, JSON, CSV, plain text
Reverse-engineer analysisExisting business rules and features.aidlc/reverse-engineer/business-rules.md, features.md

Outputs

ArtifactDefault Path
decisions-requirements.md{WORKFLOW_DIR}/{feature}/decisions-requirements.md
requirements.md{SPECS_DIR}/{feature}/requirements.md
personas.md{SPECS_DIR}/{feature}/personas.md (conditional)
product.md (update){BLUEPRINTS_DIR}/product.md

Initialization

  1. Detect environment (per shared base)
  2. Resolve feature name (per shared base)
  3. Read manifest at {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml if it exists
  4. Resolve project context — read only `## Summary` section during init
  5. If blueprints exist, read Summary sections. Read resources.md in full.

Process

Execute actions sequentially. Load the action file when you reach that step — not before.

Scope-Aware Behavior

Read state.scope from manifest. Adjust process based on scope:

ScopeRequirements Behavior
new / featureFull process — D1 gate, personas, full requirements
bugfixLightweight — skip D1 gate, produce focused bug-fix requirements (1–3 stories max, focused on the fix and verification)
refactorShould not reach this skill — routing skips requirements for refactor scope

If scope is `bugfix`: Skip Step 1 (D1 decision gate). Go directly to Step 2 (generate) but use the lightweight mode described below.

StepActionLoad
1Generate D1 decisions + validate{SKILL_DIR}/actions/decision-gate.md
2Generate requirements + routing{SKILL_DIR}/actions/generate.md
3Edit (if user requests changes){SKILL_DIR}/actions/edit.md

Skill Handoff

Based on routing decision:

  • Recommendation = decomposition OR user says "go to units" → aidlc-decomposition
  • Recommendation = design OR user says "go to design" → aidlc-design
  • User says "prototype" → aidlc-prototype

EARS Notation Reference

For EARS patterns, read {SKILL_DIR}/references/ears-notation.md when generating acceptance criteria.


Phase-Specific Rules

  • Audit actions: decision-gate, validation, generation, approval, edit, routing-decision.

Context Recovery

If context is lost mid-phase, follow aidlc/shared/base.md Context Recovery, then:

  • Check artifacts.requirements.status:
  • Not present → load actions/decision-gate.md (start from D1)
  • "draft" → load actions/generate.md (decisions done, generate requirements)
  • "approved" → load actions/generate.md routing-decision section

관련 작업