@FakeMaidenMaker: 用 AI agent 写代码最怕的就是失控:agent 自顾自跑、质量飘忽、你不知道它现在在哪个阶段、改到一半又乱了。 AWS 刚开源了一套专门给 AI coding agent 用的开发生命周期工作流规则——AI-DLC,让 agent…
摘要
AWS 开源了 AI-DLC(AI-Driven Development Life Cycle),一套为 AI coding agent 设计的开发生命周期工作流规则,帮助开发者控制 agent 行为,确保质量。支持 Claude Code、Cursor、GitHub Copilot 等多种平台。
查看缓存全文
缓存时间: 2026/06/02 19:37
用 AI agent 写代码最怕的就是失控:agent 自顾自跑、质量飘忽、你不知道它现在在哪个阶段、改到一半又乱了。
AWS 刚开源了一套专门给 AI coding agent 用的开发生命周期工作流规则——AI-DLC,让 agent 按方法论一步步走——需求分析、设计、实现三阶段自动适配你的项目,维持质量标准,整个流程你始终掌控。
GitHub:https://github.com/awslabs/aidlc-workflows…
跨平台支持做得很全:Claude Code、Cursor、GitHub Copilot、Kiro(用 Steering Files)、Amazon Q Developer、Cline 都能用。部署极简——下载 release zip,解压出 aidlc-rules 目录,按你的 agent 平台放到对应位置,规则即刻生效。
AI agent 越强大,越需要一套靠谱的工作流把它框住。
awslabs/aidlc-workflows
Source: https://github.com/awslabs/aidlc-workflows
AI-DLC (AI-Driven Development Life Cycle)
Generative AI can make mistakes. You should consider reviewing all output and costs generated by your chosen AI model and agentic coding assistant. See AWS Responsible AI Policy.
AI-DLC is an intelligent software development workflow that adapts to your needs, maintains quality standards, and keeps you in control of the process. For learning more about AI-DLC Methodology, read this blog and the Method Definition Paper referred in it.
Table of Contents
- Common
- Platform-Specific Setup
- Usage
- Three-Phase Adaptive Workflow
- Key Features
- Extensions
- Supporting Tools
- Tenets
- Prerequisites
- Troubleshooting
- Version Control Recommendations
- Additional Resources
- Generated aidlc-docs/ Reference
- Experimental: AI-Assisted Setup (Release Download)
- Contributing
- License
Common
- Download the latest release zip file named
ai-dlc-rules-v<release-number>.zipfrom the Releases page to a folder outside your project directory (e.g.,~/Downloads). - Extract the zip. It contains an
aidlc-rules/folder with two subdirectories:aws-aidlc-rules/— the core AI-DLC workflow rulesaws-aidlc-rule-details/— detailed rules conditionally referenced by the core rules
- Follow the setup instructions for your coding agent and platform below.
Platform-Specific Setup
Kiro
AI-DLC uses Kiro Steering Files within your project workspace.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
On macOS/Linux:
mkdir -p .kiro/steering
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rules .kiro/steering/
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details .kiro/
On Windows (PowerShell):
New-Item -ItemType Directory -Force -Path ".kiro\steering"
Copy-Item -Recurse "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules" ".kiro\steering\"
Copy-Item -Recurse "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details" ".kiro\"
On Windows (CMD):
mkdir .kiro\steering
xcopy %USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules .kiro\steering\aws-aidlc-rules\ /E /I
xcopy %USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details .kiro\aws-aidlc-rule-details\ /E /I
Your project should look like:
<project-root>/
├── .kiro/
│ ├── steering/
│ │ ├── aws-aidlc-rules/
│ ├── aws-aidlc-rule-details/
To verify the rules are loaded:
Verify in Kiro IDE
Open the steering files panel and confirm you see an entry for core-workflow under Workspace as shown in the screenshot below.
We use Kiro IDE in Vibe mode to run the AI-DLC workflow. This ensures that AI-DLC workflow guides the development workflow in Kiro. At times, Kiro may nudge you to switch to spec mode. Select No to such prompts to stay in Vibe mode.
Verify in Kiro CLI
Run kiro-cli, then /context show, and confirm entries for .kiro/steering/aws-aidlc-rules.
Amazon Q Developer IDE Plugin/Extension
AI-DLC uses Amazon Q Rules within your project workspace.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
On macOS/Linux:
mkdir -p .amazonq/rules
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rules .amazonq/rules/
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details .amazonq/
On Windows (PowerShell):
New-Item -ItemType Directory -Force -Path ".amazonq\rules"
Copy-Item -Recurse "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules" ".amazonq\rules\"
Copy-Item -Recurse "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details" ".amazonq\"
On Windows (CMD):
mkdir .amazonq\rules
xcopy %USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules .amazonq\rules\aws-aidlc-rules\ /E /I
xcopy %USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details .amazonq\aws-aidlc-rule-details\ /E /I
Your project should look like:
<project-root>/
├── .amazonq/
│ ├── rules/
│ │ ├── aws-aidlc-rules/
│ ├── aws-aidlc-rule-details/
To verify the rules are loaded:
- In the Amazon Q Chat window, click the
Rulesbutton in the lower right corner. - Confirm you see entries for
.amazonq/rules/aws-aidlc-rules.
Cursor IDE
AI-DLC uses Cursor Rules to implement its intelligent workflow.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
Option 1: Project Rules (Recommended)
Unix/Linux/macOS:
mkdir -p .cursor/rules
cat > .cursor/rules/ai-dlc-workflow.mdc << 'EOF'
---
description: "AI-DLC (AI-Driven Development Life Cycle) adaptive workflow for software development"
alwaysApply: true
---
EOF
cat ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md >> .cursor/rules/ai-dlc-workflow.mdc
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
New-Item -ItemType Directory -Force -Path ".cursor\rules"
$frontmatter = @"
---
description: "AI-DLC (AI-Driven Development Life Cycle) adaptive workflow for software development"
alwaysApply: true
---
"@
$frontmatter | Out-File -FilePath ".cursor\rules\ai-dlc-workflow.mdc" -Encoding utf8
Get-Content "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" | Add-Content ".cursor\rules\ai-dlc-workflow.mdc"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
mkdir .cursor\rules
(
echo ---
echo description: "AI-DLC (AI-Driven Development Life Cycle) adaptive workflow for software development"
echo alwaysApply: true
echo ---
echo.
) > .cursor\rules\ai-dlc-workflow.mdc
type "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" >> .cursor\rules\ai-dlc-workflow.mdc
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Option 2: AGENTS.md (Simple Alternative)
Unix/Linux/macOS:
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md ./AGENTS.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Verify Setup:
- Open Cursor Settings → Rules, Commands
- Under Project Rules, you should see
ai-dlc-workflowlisted - For
AGENTS.md, it will be automatically detected and applied

Directory Structure (Option 1):
<my-project>/
├── .cursor/
│ └── rules/
│ └── ai-dlc-workflow.mdc
└── .aidlc-rule-details/
├── common/
├── inception/
├── construction/
├── extensions/
└── operations/
Cline
AI-DLC uses Cline Rules to implement its intelligent workflow.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
Option 1: .clinerules Directory (Recommended)
Unix/Linux/macOS:
mkdir -p .clinerules
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md .clinerules/
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
New-Item -ItemType Directory -Force -Path ".clinerules"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".clinerules\"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
mkdir .clinerules
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".clinerules\"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Option 2: AGENTS.md (Alternative)
Unix/Linux/macOS:
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md ./AGENTS.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Verify Setup:
- In Cline’s chat interface, look for the Rules popover under the chat input field
- Verify that
core-workflow.mdis listed and active - You can toggle the rule file on/off as needed

Directory Structure (Option 1):
<my-project>/
├── .clinerules/
│ └── core-workflow.md
└── .aidlc-rule-details/
├── common/
├── inception/
├── construction/
├── extensions/
└── operations/
Claude Code
AI-DLC uses Claude Code’s project memory file (CLAUDE.md) to implement its intelligent workflow.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
Option 1: Project Root (Recommended)
Unix/Linux/macOS:
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md ./CLAUDE.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\CLAUDE.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\CLAUDE.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Option 2: .claude Directory
Unix/Linux/macOS:
mkdir -p .claude
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md .claude/CLAUDE.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
New-Item -ItemType Directory -Force -Path ".claude"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".claude\CLAUDE.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
mkdir .claude
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".claude\CLAUDE.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Verify Setup:
- Start Claude Code in your project directory (CLI:
claudeor VS Code extension) - Use the
/configcommand to view current configuration - Ask Claude: “What instructions are currently active in this project?”
Directory Structure (Option 1):
<my-project>/
├── CLAUDE.md
└── .aidlc-rule-details/
├── common/
├── inception/
├── construction/
├── extensions/
└── operations/
GitHub Copilot
AI-DLC uses GitHub Copilot custom instructions to implement its intelligent workflow. The .github/copilot-instructions.md file is automatically detected and applied to all chat requests in the workspace.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
Unix/Linux/macOS:
mkdir -p .github
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md .github/copilot-instructions.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
New-Item -ItemType Directory -Force -Path ".github"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".github\copilot-instructions.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
mkdir .github
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".github\copilot-instructions.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Verify Setup:
- Open VS Code with your project folder
- Open the Copilot Chat panel (Cmd/Ctrl+Shift+I)
- Select Configure Chat (gear icon) > Chat Instructions and verify that
copilot-instructionsis listed - Alternatively, type
/instructionsin the chat input to view active instructions
Directory Structure:
<my-project>/
├── .github/
│ └── copilot-instructions.md
└── .aidlc-rule-details/
├── common/
├── inception/
├── construction/
├── extensions/
└── operations/
OpenAI Codex
AI-DLC supports OpenAI Codex as a supported coding agent, using the Codex AGENTS.md convention to deliver its intelligent workflow. Codex automatically discovers and loads AGENTS.md from your project root when you start a session.
The commands below assume you extracted the zip to your Downloads folder so that the resulting path is Downloads/aidlc-rules/. If you used a different location, replace Downloads with your actual folder path.
Windows users: if you used File Explorer’s Extract All… dialog, it defaults to creating a wrapper folder named after the zip (e.g.,
ai-dlc-rules-v0.1.8\aidlc-rules\...). Either uncheck/edit that destination so the contents land directly inDownloads\aidlc-rules\(matching the commands below), or prependai-dlc-rules-v<version>\to eachDownloads\path in the commands — substituting<version>with the release you downloaded.
Unix/Linux/macOS:
cp ~/Downloads/aidlc-rules/aws-aidlc-rules/core-workflow.md ./AGENTS.md
mkdir -p .aidlc-rule-details
cp -R ~/Downloads/aidlc-rules/aws-aidlc-rule-details/* .aidlc-rule-details/
Windows PowerShell:
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
New-Item -ItemType Directory -Force -Path ".aidlc-rule-details"
Copy-Item "$env:USERPROFILE\Downloads\aidlc-rules\aws-aidlc-rule-details\*" ".aidlc-rule-details\" -Recurse
Windows CMD:
copy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rules\core-workflow.md" ".\AGENTS.md"
mkdir .aidlc-rule-details
xcopy "%USERPROFILE%\Downloads\aidlc-rules\aws-aidlc-rule-details" ".aidlc-rule-details\" /E /I
Verify Setup:
- Start a Codex session in your project directory
- Ask Codex: For existing project - “Using AIDLC analyze the project?” or For new project “Using Aidlc what workflow do you see” .
- Codex should describe the AI-DLC three-phase workflow (Inception → Construction → Operations)
The
AGENTS.mdfile is designed to fit within Codex’s instruction budget under default settings. If you add substantial project-specific content and Codex reports that the project documentation exceeds its instruction limit, you can increase the limit in your Codex configuration (for example, by adjustingproject_doc_max_bytesin yourconfig.tomlfile):project_doc_max_bytes = 65536 # Example value; choose a limit appropriate for your project
Directory Structure:
<my-project>/
├── AGENTS.md
└── .aidlc-rule-details/
├── common/
├── inception/
├── construction/
├── extensions/
└── operations/
Other Agents
AI-DLC works with any coding agent that supports project-level rules or steering files. The general approach:
- Place
aws-aidlc-rules/wherever your agent reads project rules from (consult your agent’s documentation). - Place
aws-aidlc-rule-details/at a sibling level so the rules can reference it.
If your agent has no convention for rules files, place both folders at your project root and point the agent to aws-aidlc-rules/ as its rules directory.
Usage
- Start any software development project by stating your intent starting with the phrase “Using AI-DLC, …” in the chat
- AI-DLC workflow automatically activates and guides you from there
- Answer structured questions that AI-DLC asks you
- Carefully review every plan that AI generates. Provide your oversight and validation
- Review the execution plan to see which stages will run
- Carefully review the artifacts and approve each stage to maintain control
- All the artifacts will be generated in the
aidlc-docs/directory
Three-Phase Adaptive Workflow
AI-DLC follows a structured three-phase approach that adapts to your project’s complexity:
🔵 INCEPTION PHASE
Determines WHAT to build and WHY
- Requirements analysis and validation
- User story creation (when applicable)
- Application Design and creating units of work for parallel development
- Risk assessment and complexity evaluation
🟢 CONSTRUCTION PHASE
Determines HOW to build it
- Detailed component design
- Code generation and implementation
- Build configuration and testing strategies
- Quality assurance and validation
🟡 OPERATIONS PHASE
Deployment and monitoring (future)
- Deployment automation and infrastructure
- Monitoring and observability setup
- Production readiness validation
Key Features
| Feature | Description |
|---|---|
| Adaptive Intelligence | Only executes stages that add value to your specific request |
| Context-Aware | Analyzes existing codebase and complexity requirements |
| Risk-Based | Complex changes get comprehensive treatment, simple changes stay efficient |
| Question-Driven | Structured multiple-choice questions in files, not chat |
| Always in Control | Review execution plans and approve each phase |
| Extensible | Layer custom rules e.g. security, compliance, and organization-specific rules on top of the core workflow |
Extensions
AI-DLC supports an extension system that lets you layer additional rules on top of the core workflow. Extensions are markdown files organized under aws-aidlc-rule-details/extensions/ and grouped by category (e.g., security/, testing/).
How Extensions Work
Each extension consists of two files placed in the same directory:
- A rules file (e.g.,
security-baseline.md) containing the extension’s rules. - An opt-in file (e.g.,
security-baseline.opt-in.md) containing a structured multiple-choice question presented to the user during Requirements Analysis.
At workflow start, AI-DLC scans the extensions/ directory and loads only *.opt-in.md files. During Requirements Analysis, it presents each opt-in prompt to the user. When the user opts in, the corresponding rules file is loaded (derived by naming convention: strip .opt-in.md, append .md). When the user opts out, the rules file is never loaded. Extensions without a matching *.opt-in.md file are always enforced.
Once enabled, extension rules are blocking constraints — at each stage, the model verifies compliance before allowing the stage to proceed.
Built-in Extensions
The extensions/ directory ships with the following (new extensions may be added over time):
aws-aidlc-rule-details/
└── extensions/
├── security/ # Extension category
│ └── baseline/
│ ├── security-baseline.md # Baseline security rules
│ └── security-baseline.opt-in.md # Opt-in prompt
└── testing/ # Extension category
└── property-based/
├── property-based-testing.md # Property-based testing rules
└── property-based-testing.opt-in.md # Opt-in prompt
The security extension rules are provided as a directional reference for building effective security rules within AI-DLC workflows. Each organization should build, customize, and thoroughly test their own security rules before deploying in production workflows.
Adding Your Own Extensions
You can extend an existing category or create an entirely new one.
- Create a directory under
extensions/(e.g.,security/compliance/orperformance/baseline/). - Add a rules file (e.g.,
compliance.md). Follow the same structure assecurity-baseline.md:- Define each rule as a heading in the format
## Rule <PREFIX-NN>: <Title>where the prefix is a short category identifier and NN is a sequential number (e.g.,COMPLIANCE-01,COMPLIANCE-02). These IDs are referenced in audit logs and compliance summaries, so they must be unique across all loaded extensions. - Include a Rule section describing the requirement.
- Include a Verification section with concrete checks the model should evaluate.
- Define each rule as a heading in the format
- Add a matching opt-in file using the naming convention
<name>.opt-in.md(e.g.,compliance.opt-in.md). Seesecurity-baseline.opt-in.mdfor the expected format. Omitting this file means the extension is always enforced with no user opt-out. - Rules are blocking by default — if verification criteria are not met, the stage cannot proceed until the finding is resolved.
Supporting Tools
The scripts/ directory contains supporting tools that enhance the AI-DLC workflow:
AIDLC Evaluator
Location: scripts/aidlc-evaluator/
Automated testing and reporting framework for validating changes to AI-DLC workflows. The evaluator provides:
- Golden Test Cases — Curated baseline test cases for validation
- Execution Framework — Orchestration for running test cases through evaluation pipelines
- Semantic Evaluation — AI-based assessment of output correctness and completeness
- Code Evaluation — Static analysis (linting, security scanning, duplication detection)
- NFR Evaluation — Non-functional requirements testing (token usage, execution time, cross-model consistency)
- CI/CD Integration — Automated pipelines for PR validation
Quick Start:
cd scripts/aidlc-evaluator
uv sync
uv run python run.py test
Documentation: See scripts/aidlc-evaluator/README.md
AIDLC Design Reviewer
Location: scripts/aidlc-designreview/
⚠️ EXPERIMENTAL FEATURE — AI-powered design review tool that analyzes AIDLC design artifacts using Claude models via AWS Bedrock.
Features:
- Multi-Agent Review — Three specialized AI agents (Critique, Alternatives, Gap Analysis)
- Quality Scoring — Weighted severity analysis with actionable recommendations
- Two Deployment Modes:
- CLI Tool — On-demand reviews for CI/CD pipelines
- Claude Code Hook — Real-time review during development (experimental)
Installation (CLI Tool):
cd scripts/aidlc-designreview
uv sync --extra test
source .venv/bin/activate # Linux/Mac
design-reviewer --aidlc-docs /path/to/aidlc-docs
Installation (Claude Code Hook):
# From workspace root
./scripts/aidlc-designreview/tool-install/install-linux.sh # Linux
./scripts/aidlc-designreview/tool-install/install-mac.sh # macOS
.\scripts\aidlc-designreview\tool-install\install-windows.ps1 # Windows PowerShell
The installer automatically detects your workspace root and installs the hook to .claude/.
Documentation:
- scripts/aidlc-designreview/README.md — Main documentation
- scripts/aidlc-designreview/INSTALLATION.md — Hook installation guide
Tenets
These are our core principles to guide our decision making.
-
No duplication. The source of truth lives in one place. If we add support for new tools or formats that require specific files, we generate them from the source rather than maintaining separate copies.
-
Methodology first. AI-DLC is fundamentally a methodology, not a tool. Users shouldn’t need to install anything to get started. That said, we’re open to convenience tooling (scripts, CLIs) down the road if it helps users adopt or extend the methodology.
-
Reproducible. Rules should be clear enough that different models produce similar outcomes. We know models behave differently, but the methodology should minimize variance through explicit guidance.
-
Agnostic. The methodology works with any IDE, agent, or model. We don’t tie ourselves to specific tools or vendors.
-
Human in the loop. Critical decisions require explicit user confirmation. The agent proposes, the human approves.
Prerequisites
Have one of our supported platforms/tools for Assisted AI Coding installed:
| Platform | Installation Link |
|---|---|
| Kiro | Install |
| Kiro CLI | Install |
| Amazon Q Developer IDE Plugin | Install |
| Cursor IDE | Install |
| Cline VS Code Extension | Install |
| Claude Code CLI | Install |
| GitHub Copilot | Install + Chat |
Troubleshooting
General Issues
| Problem | Solution |
|---|---|
| Rules not loading | Check file exists in the correct location for your platform |
| File encoding issues | Ensure files are UTF-8 encoded |
| Rules not applied in session | Start a new chat session after file changes |
| Rule details not loading | Verify .aidlc-rule-details/ exists with subdirectories |
Platform-Specific Issues
Amazon Q Developer / Kiro
- Use
/context showto verify rules are loaded - Check
.amazonq/rules/or.kiro/steering/directory structure
Cursor
- For “Apply Intelligently”, ensure a description is defined in frontmatter
- Check Cursor Settings → Rules to ensure the rule is enabled
- If rule is too large (>500 lines), split into multiple focused rules
Cline
- Check the Rules popover under the chat input field
- Toggle rule files on/off as needed using the popover UI
Claude Code
- Use
/configcommand to view current configuration - Ask “What instructions are currently active in this project?”
GitHub Copilot
- Select Configure Chat (gear icon) > Chat Instructions to verify instructions are loaded
- Type
/instructionsin the chat input to view active instruction files - Check that
.github/copilot-instructions.mdexists in your workspace root
File Path Issues on Windows
- Use forward slashes
/in file paths within markdown files - Windows paths with backslashes may not work correctly
Version Control Recommendations
Commit to repository:
# These should be version controlled
CLAUDE.md
AGENTS.md
.amazonq/rules/
.amazonq/aws-aidlc-rule-details/
.kiro/steering/
.kiro/aws-aidlc-rule-details/
.cursor/rules/
.clinerules/
.github/copilot-instructions.md
.aidlc-rule-details/
Optional - Add to .gitignore (if needed):
# Local-only settings
.claude/settings.local.json
Generated aidlc-docs/ Reference
For the complete reference of all documentation artifacts generated by the AI-DLC workflow, see docs/GENERATED_DOCS_REFERENCE.md.
Experimental: AI-Assisted Setup (Release Download)
| Resource | Link |
|---|---|
| AI-DLC Method Definition Paper | Paper |
| AI-DLC Methodology Blog | AWS Blog |
| AI-DLC Open-source Launch Blog | AWS Blog |
| AI-DLC Example Walkthrough Blog | AWS Blog |
| Amazon Q Developer Documentation | Docs |
| Kiro CLI Documentation | Docs |
| Cursor Rules Documentation | Docs |
| Claude Code Documentation | GitHub |
| GitHub Copilot Documentation | Docs |
| Working with AI-DLC (interaction patterns and tips) | docs/WORKING-WITH-AIDLC.md |
| Contributing Guidelines | CONTRIBUTING.md |
| Code of Conduct | CODE_OF_CONDUCT.md |
Additional Resources
| Resource | Link |
|---|---|
| AI-DLC Method Definition Paper | Paper |
| AI-DLC Methodology Blog | AWS Blog |
| AI-DLC Open-source Launch Blog | AWS Blog |
| AI-DLC Example Walkthrough Blog | AWS Blog |
| Amazon Q Developer Documentation | Docs |
| Kiro CLI Documentation | Docs |
| Cursor Rules Documentation | Docs |
| Claude Code Documentation | GitHub |
| GitHub Copilot Documentation | Docs |
| Working with AI-DLC (interaction patterns and tips) | docs/WORKING-WITH-AIDLC.md |
| Contributing Guidelines | CONTRIBUTING.md |
| Code of Conduct | CODE_OF_CONDUCT.md |
Contributing
See CONTRIBUTING for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.
相似文章
@Xudong07452910: 这篇论文很适合所有重度使用 Claude Code、Codex 或者其他AI Agent 的人看。 它研究的不是 Agent 在 benchmark 上怎么失败,而是一个更真实的问题: 在真实开发里,AI coding agent 到底是…
This paper analyzes 20,574 real-world coding-agent sessions to identify how AI agents misalign with developer intent, finding that constraint violations and inaccurate self-reporting are the most common failure modes, imposing trust and effort costs rather than irreversible damage.
@teach_fireworks: AI Coding 现在开始进入一个很有意思的阶段。 过去大家讨论最多的是模型能力、上下文长度、Agent Loop、Tool Use、自动化编程,但真正把 Agent 长时间放进真实开发环境之后,很多团队发现问题已经不只是“能不能生成代…
介绍开源工具 re_gent,它为 AI 编程 Agent 提供运行时级别的版本控制和可观测性基础设施,解决 Agent 长时间运行后的代码溯源与审计问题。
@lidangzzz: 我这些年反复讲过,让AI Agent好好写代码,所有的秘诀都写在了1990年代的教材里: - 踏踏实实写test,多写test,让test coverage尽可能高 - 认真做好CI/CD,千方百计避免messed up - 对于一个新项…
作者强调让AI Agent写好代码的关键在于遵循1990年代教材中的经典软件工程实践:写测试、做好CI/CD、进行自顶向下设计和模块化解耦等。
@GitHub_Daily: 用 AI 智能体生产级事情,写代码、跑流程、调接口,一开始还行,但规模一大就容易失控,权限太宽、上下文丢失、调试无从下手。 于是找到了 agents-best-practices 这套完整的智能体运行框架设计指南,不限于编码场景,运营、销…
介绍了 agents-best-practices 仓库,这是一份生产级 AI 智能体运行框架设计指南,涵盖工具权限分级、上下文压缩等,支持 Codex 和 Claude Code 安装。
@yibie: 每个程序员都应该自己手写一个 agent。 只要 50 行代码,很有趣,而且会让你惊讶。但为了获得最大收获,请做这两件事: 第一,从零手写。打开空白文本文件,自己敲完每一行代码。不要用任何 AI,连自动补全都不要。 第二,只依赖标准库文档…
本文鼓励程序员亲手手写一个简单的AI agent(约50行代码),以加深对agent工作机制的理解,并建议从零手工编写、只依赖标准库和API文档。