复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
An opinionated implementation of the AI-DLC (AI-Driven Development Life Cycle) methodology as a...
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
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.
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.
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/
powers/aidlc folder from this repoJust 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
| Command | What It Does |
|---|---|
start | Begin a new feature specification |
resume | Pick up where you left off |
status | Show current workflow progress |
next | Continue to the next phase |
rollback | Go back to a previous phase |
repair | Rebuild manifest from disk artifacts |
quick | Single-pass spec for simple brownfield features |
doctor | Verify installation health |
adapt | Generate the current platform's entry point after switching platforms |
upgrade | Migrate an old-layout project to the current blueprints structure |
scope [name] | Change workflow scope (new/feature/bugfix/refactor) |
prototype | Build a throwaway spike to validate requirements |
review | Run solutions review or code review |
reverse-engineer | Deep codebase analysis (13 reports) |
| Phase names | Jump directly: context, requirements, design, tasks, implement, build, deploy |
Note:
unitsanddecompositionrefer to the same phase — both work interchangeably.
AI-DLC organizes the development lifecycle into three stages:
| Stage | Covers | Skills |
|---|---|---|
| Inception | Context assessment, requirements, decomposition into units | aidlc-context, aidlc-requirements, aidlc-decomposition |
| Construction | Technology decisions, design, task planning, implementation | aidlc-design, aidlc-tasks, aidlc-implement |
| Operation | Build verification, CI/CD pipeline generation, deployment | aidlc-build, aidlc-deploy |
The workflow adapts to your task. Scope is auto-detected from your request and workspace, or you can set it manually with scope [name].
| Scope | Phases | Best For |
|---|---|---|
new | All phases | New projects, rewrites |
feature | All phases | Adding capability to existing code |
bugfix | Context → Requirements → Design → Tasks → Implement → Build | Fixing specific bugs (skips decomposition, deploy) |
refactor | Context → Design → Tasks → Implement → Build | Restructuring 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.
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.
| Document | Description |
|---|---|
| Comparison | How this differs from official AIDLC workflows |
| Skills Reference | All skills — what they do, what they read/write |
| Decision Gates | D1–D5 details, how they work, conflict validation |
| Artifacts | All generated files, paths, and platform variables |
| Implementation Modes | Standard, parallel, autonomous; incremental vs comprehensive |
| Manifest Schema | v1.0.0 manifest format with full YAML example |
| Skill Anatomy | How skills are structured, extending AI-DLC |
| Developing Skills | Step-by-step guide to creating a new skill |
| Context Recovery | How resume and session recovery works |
| Context Rot | Instruction drift in long sessions — prevention and recovery |
| Example | Description |
|---|---|
| Todo App | Complete workflow output — all artifacts from a simple project |
| Example Requirements | Business requirements in English and Thai for testing |
| Resource | Description |
|---|---|
| AI-DLC Whitepaper | Methodology overview and design principles |
| AI-DLC Workflows | Official AIDLC workflow definitions |
This project is licensed under the MIT-0 (MIT No Attribution) License. See LICENSE.md for details.
We welcome contributions. See CONTRIBUTING.md for guidelines.
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-codeBase:
shared/base.md(full on first load, §Summary on chain). Actions: load per-step fromactions/.
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:
language field) — no English narration✅ 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 | Description | Accepted Formats |
|---|---|---|
| Manifest | Current workflow state and artifact registry | YAML at {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml |
| Information | Description | Accepted Formats |
|---|---|---|
| Audit trail | History of actions taken | Markdown at {WORKFLOW_DIR}/{feature}/audit.md |
| Filesystem artifacts | Fallback when no manifest exists | Any files at conventional paths |
| Artifact | Default Path | Description |
|---|---|---|
| Manifest updates (rollback only) | {WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml | Rollback marks artifacts as outdated — the only direct manifest write the orchestrator performs |
| Phase artifacts | Various | Produced by dispatched skill instructions, not by the orchestrator itself |
.kiro/skills/→Kiro, .claude/skills/→Claude Code) — this is authoritative for path resolution, not the manifest platform field.{PLATFORM_DIR}/skills/:
aidlc-context, aidlc-requirements, aidlc-design, aidlc-tasks, aidlc-implement (minimum required){PLATFORM_DIR}/skills/{skill}/SKILL.md existsdoctor for a full health check."{WORKFLOW_DIR}/*/aidlc-manifest.yaml
{SKILL_DIR}/actions/repair.md, Fallback section)After loading a manifest, verify required fields exist and have valid values:
| Field | Required | Valid Values |
|---|---|---|
version | Yes | "1.0.0" (warn if older, offer repair) |
feature | Yes | Non-empty string |
state.status | Yes | active | completed |
state.sharedPhases | Yes | Array of phase names |
state.mode | Yes | null | incremental | comprehensive |
artifacts | Yes | Object with phase entries |
context-summary | Yes | Object with type, stack, feature |
If validation fails, report: "⚠️ Manifest has issues: {list}. Run repair to fix." Continue with available data.
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}:
{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 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.
The user can say any of these. Match loosely — "what's next", "show status", "start new" all count.
| Command | Action | Load |
|---|---|---|
start | Initialize new feature → dispatch aidlc-context | — |
resume | Present state → ask to continue → dispatch next | {SKILL_DIR}/actions/routing.md |
status | Show current progress dashboard | {SKILL_DIR}/actions/status.md |
help | Explain where user is and what to do next | — |
next | Determine and dispatch next skill | {SKILL_DIR}/actions/routing.md |
rollback | Roll back to a previous phase | {SKILL_DIR}/actions/rollback.md |
repair | Rebuild manifest from disk artifacts | {SKILL_DIR}/actions/repair.md |
quick | Single-pass mode for simple features | {SKILL_DIR}/actions/quick-path.md |
doctor | Verify installation health | {SKILL_DIR}/actions/doctor.md |
adapt | Generate the current platform's shim from existing blueprints (platform switch) | {SKILL_DIR}/actions/adapt.md |
upgrade | Migrate 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:
repairrebuilds the manifest (workflow state).adaptensures the current platform's shim exists (blueprints already present).upgrademigrates an old pre-blueprints layout to the current structure.repairandupgradeboth delegate shim generation toadapt. | Phase names | Dispatch named skill directly | — |
Phase name commands: context, requirements, units/decomposition, design, tasks, implement, build, deploy, prototype, review, reverse-engineer.
When dispatching a phase skill:
{PLATFORM_DIR}/skills/aidlc-{skill}/SKILL.md
{PLATFORM_DIR} is .kiro or .claudeaidlc-{skill} and you follow ONLY the process defined in the loaded SKILL.md.{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.
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{WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml{SKILL_DIR}/actions/routing.md — use State Reading Logic to determine current state{SKILL_DIR}/actions/status.md — update workflow diagram (silent)📍 Resuming "{feature}" (scope: {scope})
Shared: {sharedPhases as inline list}
{If incremental: list active units with their phases}
{If comprehensive: current phase}
👉 Next: {recommendation}. Continue?
{SKILL_DIR}/actions/status.md, show full Status Display{SKILL_DIR}/actions/rollback.md, executenextSame as resume step 2 + 6, but skip the status presentation — go straight to dispatch.
helpRead 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'"}
reviewDispatch aidlc-solutions-review or aidlc-code-review based on context:
aidlc-solutions-reviewaidlc-code-reviewcontext, 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.
state.scope and context-summary.scope📍 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}
language field.Follow the error taxonomy from shared/base.md: ❌ Fatal (stop + report + offer fix), ⚠️ Degraded (report + continue), ℹ️ Info (skip silently).
fsWrite, readMultipleFiles.Read calls.If you lose these instructions after context compaction:
{SHIM} — .kiro/steering/aidlc.md or .claude/CLAUDE.md) for behavioral anchors and the manifest pointer{WORKFLOW_DIR}/{feature}/aidlc-manifest.yaml for current phase and artifact paths{BLUEPRINTS_DIR}/* for project content (product, tech, structure, resources, corrections){SKILL_DIR}/SKILL.md to reload this skill's instructionscontext.md with progress icons on resume, status, and next (silent operation)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)
暂无评论,成为第一个评论者吧!