SkillAtlasSkill 详情

aidlc

An opinionated implementation of the AI-DLC (AI-Driven Development Life Cycle) methodology as a...

审核状态:已审核Quality 80Security 88

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年7月29日

AI-DLC — AI Development Lifecycle Skills

version license

An opinionated implementation of the AI-DLC (AI-Driven Development Life Cycle) methodology as a portable skill harness for AI coding assistants.

This project implements AIDLC principles — decision-driven phases, manifest-based state, and human-in-the-loop control — with a focus on portability and simplicity. Skills are plain markdown files that work across platforms without runtime dependencies, custom tooling, or platform lock-in.

For the official AIDLC workflow definitions maintained by AWS, see awslabs/aidlc-workflows. For a detailed comparison, see docs/comparison.md.

Why AI-DLC

AI coding assistants are powerful but undirected. Without structure, they produce inconsistent architectures, skip edge cases, and make technology choices that don't align with your project. AI-DLC introduces a lightweight lifecycle that keeps the AI focused and the human in control.

  • Decision gates at each phase surface the right questions and validate answers before moving forward
  • Traceability enforced across the full chain — requirements → design → tasks → build verification
  • Manifest-based state tracking lets you pause, resume, and roll back across sessions
  • Scope-adaptive workflow — auto-detects if you're building a new project, adding a feature, fixing a bug, or refactoring
  • Incremental delivery for complex projects — decompose into units, design and implement one at a time
  • Parallel implementation via sub-agents with file ownership isolation
  • Learning loop — human corrections persist as project rules for future workflows
  • Multi-language — all artifacts and responses generated in the user's language
  • Multi-platform — works on Kiro (IDE and CLI) and Claude Code

Quick Start

Installation

Clone the repo and copy the skills into your project:

git clone <repo-url> aidlc-skills
cd aidlc-skills

Kiro (IDE or CLI):

cp -r skills/aidlc* /path/to/your/project/.kiro/skills/

Claude Code:

cp -r skills/aidlc* /path/to/your/project/.claude/skills/

Optional: Install as Kiro Power

  1. Open the Powers panel (Command Palette → "Powers: Open Panel")
  2. Click "Add Custom Power" → "Import power from a folder"
  3. Select the powers/aidlc folder from this repo

Your First Feature

Just tell the AI what you want to build:

/aidlc build a todo app with user authentication, task management, and notifications

Or point it to an existing requirements document:

/aidlc build the application described in docs/requirements.md

Try one of the example requirements included in this repo:

/aidlc build the application described in examples/requirements/requirements-en-art-toys.md

Available Commands

CommandWhat It Does
startBegin a new feature specification
resumePick up where you left off
statusShow current workflow progress
nextContinue to the next phase
rollbackGo back to a previous phase
repairRebuild manifest from disk artifacts
quickSingle-pass spec for simple brownfield features
doctorVerify installation health
adaptGenerate the current platform's entry point after switching platforms
upgradeMigrate an old-layout project to the current blueprints structure
scope [name]Change workflow scope (new/feature/bugfix/refactor)
prototypeBuild a throwaway spike to validate requirements
reviewRun solutions review or code review
reverse-engineerDeep codebase analysis (13 reports)
Phase namesJump directly: context, requirements, design, tasks, implement, build, deploy

Note: units and decomposition refer to the same phase — both work interchangeably.

Workflow Overview

AI-DLC organizes the development lifecycle into three stages:

StageCoversSkills
InceptionContext assessment, requirements, decomposition into unitsaidlc-context, aidlc-requirements, aidlc-decomposition
ConstructionTechnology decisions, design, task planning, implementationaidlc-design, aidlc-tasks, aidlc-implement
OperationBuild verification, CI/CD pipeline generation, deploymentaidlc-build, aidlc-deploy

Scope-Adaptive Workflow

The workflow adapts to your task. Scope is auto-detected from your request and workspace, or you can set it manually with scope [name].

ScopePhasesBest For
newAll phasesNew projects, rewrites
featureAll phasesAdding capability to existing code
bugfixContext → Requirements → Design → Tasks → Implement → BuildFixing specific bugs (skips decomposition, deploy)
refactorContext → Design → Tasks → Implement → BuildRestructuring code (skips requirements, decomposition, deploy)
flowchart TD
    subgraph Inception
        A[Context] --> B[Requirements]
        B --> C{Complex?}
        C -->|Complex| E[Decomposition]
    end

    subgraph Construction
        C -->|Simple| D[Design]
        D --> T[Tasks]
        T --> I[Implement]
        E --> Units
        subgraph Units ["For Each Unit"]
            direction TB
            UD[Design] --> UT[Tasks] --> UI[Implement]
        end
    end

    subgraph Operation
        BT[Build and Test]
        DEP[Deploy]
        BT --> DEP
    end

    Units --> BT
    I --> BT
    B -.->|optional| P[Prototype]
    P -.->|refine| B

Simple projects go straight from requirements to design → implement → build → deploy.

Complex projects (5+ stories, 2+ domains) decompose into units, then design and implement each independently before building and deploying.

Key Behaviors

Traceability: Every phase must account for upstream items. Design traces to requirements, tasks trace to design components, and the build phase verifies end-to-end coverage. Gaps must be documented with justification.

Human-in-the-loop (incremental mode): After each unit phase (design, tasks, implement), control returns to the Unit Dashboard. The user decides what to work on next — not the workflow. Decision gates (D3, D4) are always fresh per unit.

Learning loop: When the user corrects an artifact and the correction represents a general rule, the workflow asks whether to remember it. Accepted corrections are stored in corrections.md and loaded in all future sessions.

Session recovery: On resume after a session break, the orchestrator re-reads the manifest, re-loads all templates from disk, and dispatches the correct skill. No artifacts are generated from memory.

Language: All artifacts and responses are generated in the user's detected language. Only code, file paths, YAML keys, and technical terms stay in English.

Context rot prevention: Long sessions can cause instruction drift where the agent skips checkpoints. AI-DLC mitigates this primarily with behavioral anchors in the platform shim (.kiro/steering/aidlc.md or .claude/CLAUDE.md) that persist across the session, plus skill handoff identity resets at phase transitions. PreToolUse hooks are available as optional stricter enforcement on both Kiro and Claude Code. See Context Rot for details.

Documentation

DocumentDescription
ComparisonHow this differs from official AIDLC workflows
Skills ReferenceAll skills — what they do, what they read/write
Decision GatesD1–D5 details, how they work, conflict validation
ArtifactsAll generated files, paths, and platform variables
Implementation ModesStandard, parallel, autonomous; incremental vs comprehensive
Manifest Schemav1.0.0 manifest format with full YAML example
Skill AnatomyHow skills are structured, extending AI-DLC
Developing SkillsStep-by-step guide to creating a new skill
Context RecoveryHow resume and session recovery works
Context RotInstruction drift in long sessions — prevention and recovery

Examples

ExampleDescription
Todo AppComplete workflow output — all artifacts from a simple project
Example RequirementsBusiness requirements in English and Thai for testing

Resources

ResourceDescription
AI-DLC WhitepaperMethodology overview and design principles
AI-DLC WorkflowsOfficial AIDLC workflow definitions

License

This project is licensed under the MIT-0 (MIT No Attribution) License. See LICENSE.md for details.

Contributing

We welcome contributions. See CONTRIBUTING.md for guidelines.

Agent / MCP / Skill 创作

中风险

  • 来源需自行核对维护者身份。
  • 未检测到明显脚本安装指令。
  • 未检测到明显外部权限要求。
  • 未检测到高风险命令。
  • 扫描发现:1 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aws-samples/sample-aidlc-decisions-driven-skill.git
  3. 将 "skills/aidlc" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aws-samples/sample-aidlc-decisions-driven-skill.git
  3. 将 "skills/aidlc" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aws-samples/sample-aidlc-decisions-driven-skill.git
  3. 将 "skills/aidlc" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aws-samples/sample-aidlc-decisions-driven-skill.git
  3. 将 "skills/aidlc" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aws-samples/sample-aidlc-decisions-driven-skill.git
  3. 将 "skills/aidlc" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: aidlc
description: AI-DLC workflow orchestrator. Reads manifest state, dispatches to phase skills, manages rollback and status. Executes phases by loading and following each skill's SKILL.md.
license: MIT
compatibility: Requires file system access. Auto-detects environment.
metadata:
  author: AI-DLC Maintainers
  keywords: specification, orchestrator, workflow, routing, AI-DLC
  supported_platforms:
    - kiro-ide
    - kiro-cli
    - claude-code

AI-DLC Orchestrator

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

You are the workflow dispatcher. You read project state, determine the next phase, and execute it by loading the appropriate skill's SKILL.md. You own cross-phase operations: status display, rollback, and resume detection. For phase execution, you delegate to skill instructions — you don't re-implement them.

When active:

  1. Follow ONLY the process below
  2. Execute phases by loading and following skill SKILL.md files — not by re-implementing phase logic
  3. Never narrate your internal process
  4. ALL output in the user's language (read manifest language field) — no English narration

Activation

✅ aidlc active — {platform}

Then immediately detect language from the user's message. ALL subsequent output must be in that language. Do NOT produce further English text after this one-line activation confirmation.


Information Contract

Required Inputs

InformationDescriptionAccepted Formats
ManifestCurrent workflow state and artifact registryYAML at {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml

Optional Inputs

InformationDescriptionAccepted Formats
Audit trailHistory of actions takenMarkdown at {WORKFLOW_DIR}/{feature}/audit.md
Filesystem artifactsFallback when no manifest existsAny files at conventional paths

Outputs

ArtifactDefault PathDescription
Manifest updates (rollback only){WORKFLOW_DIR}/{feature}/aidlc-manifest.yamlRollback marks artifacts as outdated — the only direct manifest write the orchestrator performs
Phase artifactsVariousProduced by dispatched skill instructions, not by the orchestrator itself

Initialization

  1. Detect environment (set SPECS_DIR, WORKFLOW_DIR, BLUEPRINTS_DIR, SHIM; STEERING_DIR is legacy). Detect the live platform from where this skill is running (.kiro/skills/→Kiro, .claude/skills/→Claude Code) — this is authoritative for path resolution, not the manifest platform field.
  2. Pre-flight validation: Verify core skill files exist at {PLATFORM_DIR}/skills/:
    • Check for: aidlc-context, aidlc-requirements, aidlc-design, aidlc-tasks, aidlc-implement (minimum required)
    • For each, check {PLATFORM_DIR}/skills/{skill}/SKILL.md exists
    • If any missing → report: "⚠️ Missing skill files: {list}. Install them or run doctor for a full health check."
    • Continue even if optional skills are missing (decomposition, prototype, solutions-review, code-review, build, deploy)
  3. Scan for manifests at {WORKFLOW_DIR}/*/aidlc-manifest.yaml
    • If exactly one manifest → use it, then validate manifest structure (see below)
    • If multiple manifests → ask user which feature to work on
    • If no manifests → run fallback detection (load {SKILL_DIR}/actions/repair.md, Fallback section)

Manifest Validation

After loading a manifest, verify required fields exist and have valid values:

FieldRequiredValid Values
versionYes"1.0.0" (warn if older, offer repair)
featureYesNon-empty string
state.statusYesactive | completed
state.sharedPhasesYesArray of phase names
state.modeYesnull | incremental | comprehensive
artifactsYesObject with phase entries
context-summaryYesObject with type, stack, feature

If validation fails, report: "⚠️ Manifest has issues: {list}. Run repair to fix." Continue with available data.

Platform Check

Compare the live platform (step 1) against the manifest platform field, check for a legacy (pre-blueprints) layout, and check the current platform's shim exists at {SHIM}:

  • Legacy layout — if legacy steering content exists ({STEERING_DIR}/{product,tech,structure,resources}.md or an old .claude/CLAUDE.md aggregator) and .aidlc/blueprints/ is absent or incomplete → suggest upgrade:
    ℹ️ This project uses the pre-blueprints layout. Run `upgrade` to migrate steering into `.aidlc/blueprints/` and generate the platform entry point.
    
  • Platform switch / missing shim — else if platform differs from the live platform, OR the current platform's shim is missing (blueprints already exist; e.g., started in Kiro, now opened in Claude Code) → suggest adapt:
    ℹ️ This project was set up for {manifest.platform}. You're on {live platform}. Run `adapt` to generate the {live platform} entry point — blueprints are shared, so no content is duplicated.
    
  • Both are non-destructive and do not block the workflow. The user can proceed, but ambient context loading may be incomplete until the shim exists. Blueprints (read by explicit path) are unaffected either way.

Commands

The user can say any of these. Match loosely — "what's next", "show status", "start new" all count.

CommandActionLoad
startInitialize new feature → dispatch aidlc-context—
resumePresent state → ask to continue → dispatch next{SKILL_DIR}/actions/routing.md
statusShow current progress dashboard{SKILL_DIR}/actions/status.md
helpExplain where user is and what to do next—
nextDetermine and dispatch next skill{SKILL_DIR}/actions/routing.md
rollbackRoll back to a previous phase{SKILL_DIR}/actions/rollback.md
repairRebuild manifest from disk artifacts{SKILL_DIR}/actions/repair.md
quickSingle-pass mode for simple features{SKILL_DIR}/actions/quick-path.md
doctorVerify installation health{SKILL_DIR}/actions/doctor.md
adaptGenerate the current platform's shim from existing blueprints (platform switch){SKILL_DIR}/actions/adapt.md
upgradeMigrate an old-layout project to the current structure (legacy steering → blueprints){SKILL_DIR}/actions/upgrade.md
scope [name]Change workflow scope—

repair vs adapt vs upgrade: repair rebuilds the manifest (workflow state). adapt ensures the current platform's shim exists (blueprints already present). upgrade migrates an old pre-blueprints layout to the current structure. repair and upgrade both delegate shim generation to adapt. | Phase names | Dispatch named skill directly | — |

Phase name commands: context, requirements, units/decomposition, design, tasks, implement, build, deploy, prototype, review, reverse-engineer.


Skill Dispatch

When dispatching a phase skill:

  1. Resolve the skill path: {PLATFORM_DIR}/skills/aidlc-{skill}/SKILL.md
    • Where {PLATFORM_DIR} is .kiro or .claude
  2. Read that file
  3. Context override: After loading the SKILL.md, treat its instructions as your sole operating instructions. Disregard any prior phase skill instructions from earlier in this conversation. Your identity is now aidlc-{skill} and you follow ONLY the process defined in the loaded SKILL.md.
  4. Follow its instructions — execute the phase as if you were that skill
  5. Template rule: When the skill's action requires generating an artifact or decision file, ALWAYS read the relevant template from disk ({SKILL_DIR}/assets/*.md, {SKILL_DIR}/references/*.md, or shared/decision-gate.md) before writing. Do NOT generate from memory — even if you believe you've seen the template earlier in this conversation.

The dispatched skill's instructions handle everything: initialization, decision gates, generation, validation, manifest updates, audit entries, and handoff to the next skill.

Dispatch is transparent — the user experiences a continuous flow. They don't need to know that the orchestrator loaded a different skill's instructions.

Shared base loading: The orchestrator loads shared/base.md fully on activation. Dispatched skills read only §Summary since the full content is already in context. On resume after a session break, reload the full file.

Skill handoff chain: Each skill's SKILL.md ends with a "Skill Handoff" section that loads the next skill and continues. Once you dispatch the first skill, the chain carries forward automatically. The user only returns to the orchestrator for status, rollback, or resume (after a session break).

If a skill's SKILL.md cannot be found at the expected path, fall back to:

⚠️ Skill file not found at {path}. 
👉 Activate the **aidlc-{skill}** skill manually to continue.

Command Behavior

start

📍 Starting a new feature.

Then dispatch aidlc-context — read {PLATFORM_DIR}/skills/aidlc-context/SKILL.md and follow its instructions. The context skill will ask for the feature name, scan the workspace, and chain forward through the workflow.

resume

  1. Read manifest at {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml
  2. Load {SKILL_DIR}/actions/routing.md — use State Reading Logic to determine current state
  3. Load {SKILL_DIR}/actions/status.md — update workflow diagram (silent)
  4. Present compact status:
📍 Resuming "{feature}" (scope: {scope})

Shared: {sharedPhases as inline list}
{If incremental: list active units with their phases}
{If comprehensive: current phase}

👉 Next: {recommendation}. Continue?
  1. STOP and wait.
  2. On "yes" / "go" / "continue": resolve next skill from Routing Logic, dispatch it
  3. On "resume {unit}": dispatch the appropriate skill scoped to that unit
  4. On "status": load {SKILL_DIR}/actions/status.md, show full Status Display
  5. On "rollback to [phase]": load {SKILL_DIR}/actions/rollback.md, execute

next

Same as resume step 2 + 6, but skip the status presentation — go straight to dispatch.

help

Read manifest, present:

📍 You're working on "{feature}" (scope: {scope}) — currently at {phase}.

Available commands:
- "next" or "continue" — proceed to {next phase}
- "status" — see full progress dashboard
- "rollback to [phase]" — undo and redo from a previous phase
- "[phase name]" — jump to a specific phase (e.g., "design", "tasks")
- "scope [name]" — change scope (new/feature/bugfix/refactor)
- "prototype" — build a throwaway spike
- "review" — run design review or code review

{If incremental: "Unit commands: 'resume [unit]', 'start [unit]', 'show units'"}

review

Dispatch aidlc-solutions-review or aidlc-code-review based on context:

  • If incremental mode with 2+ completed unit designs → aidlc-solutions-review
  • If implementation phase complete → aidlc-code-review
  • Otherwise → ask user which review type

Phase commands (context, requirements, design, etc.)

Dispatch the named skill directly. No confirmation needed — the user explicitly asked for it.

Scope guard: If the user requests a phase that is skipped for the current scope (e.g., "deploy" in a bugfix scope), inform them:

⚠️ The "deploy" phase is skipped for scope "{scope}". 
👉 Change scope with "scope feature" if you need this phase, or say "next" to continue.

scope [name]

Change the workflow scope mid-workflow. Valid scopes: new, feature, bugfix, refactor. See {PLATFORM_DIR}/skills/aidlc/shared/scopes.md for full scope definitions.

  1. Validate the requested scope name
  2. Update manifest: state.scope and context-summary.scope
  3. If changing to a narrower scope (e.g., feature → bugfix): warn that some completed phases may become irrelevant but are preserved
  4. If changing to a wider scope (e.g., bugfix → feature): inform that additional phases are now active
  5. Present the change:
📍 Scope changed: {old} → {new}

Active phases: {list active phases for new scope}
{If phases were skipped that now exist: "ℹ️ Phases now active: {list}"}
{If phases existed that are now skipped: "ℹ️ Phases skipped: {list} (artifacts preserved)"}

👉 Next: {recommendation based on new routing}
  1. Append audit entry. STOP and wait.

Behavioral Rules

Language

  • Detect from user's first message or read from manifest language field.
  • ALL narrative content, descriptions, prompts, and explanations in user's language. This includes translating template text from action files.
  • Keep in English ONLY: file paths, skill names, command names, tech terms, YAML keys, code.
  • NEVER mix languages in a single response. If user speaks Thai, the entire response is in Thai (except English-only items above).

Silent Operations

  • NEVER mention to user: manifest reads, file scanning, path resolution, platform detection.

Error Handling

Follow the error taxonomy from shared/base.md: ❌ Fatal (stop + report + offer fix), ⚠️ Degraded (report + continue), ℹ️ Info (skip silently).

Tool Rules (Environment-Aware)

  • Kiro: fsWrite, readMultipleFiles.
  • Claude Code: Parallel Read calls.

Context Recovery (After Compaction)

If you lose these instructions after context compaction:

  1. Read the platform shim ({SHIM} — .kiro/steering/aidlc.md or .claude/CLAUDE.md) for behavioral anchors and the manifest pointer
  2. Read {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml for current phase and artifact paths
  3. Read {BLUEPRINTS_DIR}/* for project content (product, tech, structure, resources, corrections)
  4. Read {SKILL_DIR}/SKILL.md to reload this skill's instructions
  5. Resume from the current action indicated by the manifest state

Orchestrator Behavior

  • Execute phases by loading and following skill SKILL.md files — not by re-implementing phase logic
  • Each phase skill owns its own manifest writes, artifact creation, and audit entries
  • The orchestrator directly writes to the manifest ONLY during rollback (cross-phase operation)
  • The orchestrator updates the workflow diagram in context.md with progress icons on resume, status, and next (silent operation)
  • Status display, rollback, and diagram progress are orchestrator-owned operations — they need a cross-phase view
  • If a skill's SKILL.md cannot be found, fall back to recommending manual activation

Concurrent Workflows

AI-DLC supports multiple features running in parallel (separate manifests at {WORKFLOW_DIR}/{feature-a}/ and {WORKFLOW_DIR}/{feature-b}/). For the same feature with multiple units in incremental mode, unit artifacts are path-isolated (units/{unit}/) to avoid file conflicts. The manifest is the single shared file — concurrent modifications from different sessions (e.g., different team members on different machines) are resolved at git merge time.

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!