Xpersona
A

AI-DLC

CLAWHUB · Unverified

AI-Driven Development Life Cycle (AI-DLC) adaptive workflow for software development. Use when: starting a new project, new feature, bug fix, refactoring, mi... Skill: AI-DLC Owner: sydpz Summary: AI-Driven Development Life Cycle (AI-DLC) adaptive workflow for software development. Use when: starting a new project, new feature, bug fix, refactoring, mi... Tags: ai-methodology:1.0.0, dev-workflow:1.0.0, latest:1.1.0, software-development:1.0.0 Version history: v1.1.0 | 2026-03-30T17:26:44.712Z | user Add mandatory changelog step to CONSTRUCTION phase: update aidlc-state.md af

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176qewq6nbak0493h164nm4qh83qwds:ai-dlc
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sydpz-ai-dlc/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

135,652 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: aidlc
description: >
  AI-Driven Development Life Cycle (AI-DLC) adaptive workflow for software development.
  Use when: starting a new project, new feature, bug fix, refactoring, migration, or any dev task.
  Chinese triggers: 新项目, 开始开发, 做个功能, 修复bug, 重构, 新需求, 新建项目.
  English triggers: start a project, new feature, AI-DLC, aidlc, inception, construction.
  Implements full AI-DLC methodology: workspace detection, adaptive requirements, user stories,
  workflow planning, design, code generation, and build/test.
---

# AI-DLC: AI-Driven Development Life Cycle

AI-DLC 是一种结构化但自适应的软件开发方法论,由 AI 主导流程、人审批把关。

## 核心原则

**流程适应工作,而不是反过来。** AI 根据请求复杂度、现有代码库状态和风险评估,智能决定需要执行哪些阶段。

- 简单变更 → 只执行必要阶段
- 复杂项目 → 完整三阶段 + 所有保障机制
- 每个阶段都有审批门控,必须人确认后才能继续

## 三阶段概览

```
用户请求 → INCEPTION → CONSTRUCTION → OPERATIONS → 完成
            (计划)      (构建)        (运营)
```

### 🔵 INCEPTION 阶段 — 做什么 + 为什么
- **Workspace Detection** (始终执行) — 分析是 greenfield 还是 brownfield
- **Reverse Engineering** (brownfield 有现有代码时执行) — 分析现有代码库
- **Requirements Analysis** (始终执行,深度自适应) — 收集需求并提问澄清
- **User Stories** (条件执行) — 创建用户故事和角色
- **Workflow Planning** (始终执行) — 确定执行计划
- **Application Design** (条件执行) — 高层组件设计
- **Units Generation** (条件执行) — 拆解为工作单元

### 🔵 INCEPTION 阶段 — 做什么 + 为什么
- **Workspace Detection** (始终执行) — 分析是 greenfield 还是 brownfield
- **Reverse Engineering** (brownfield 有现有代码时执行) — 分析现有代码库
- **Requirements Analysis** (始终执行,深度自适应) — 收集需求并提问澄清
- **User Stories** (条件执行) — 创建用户故事和角色
- **Workflow Planning** (始终执行) — 确定执行计划
- **Application Design** (条件执行) — 高层组件设计
- **Units Generation** (条件执行) — 拆解为工作单元

### 🟢 CONSTRUCTION 阶段 — 怎么做
- **Per-Unit Loop** (每个工作单元依次执行):
  - Functional Design (条件执行)
  - NFR Requirements (条件执行)
  - NFR Design (条件执行)
  - Infrastructure Design (条件执行)
  - Code Generation (始终执行) — Part 1 计划 → Part 2 生成
- **Build and Test** (始终执行) — 构建、单元测试、集成测试
- **Changelog** (始终执行) — 每次合并到 master 后更新 `aidlc-docs/aidlc-state.md` 的 changelog(格式:时间/commit/变更内容),SubAgent 靠此了解进展

### 🟡 OPERATIONS 阶段 — 部署 (占位)

---

## MANDATORY: 工作流执行规则

### 规则文件加载顺序

**开始工作流时,必须按此顺序加载规则文件:**

1. 加载 `references/common/welcome-message.md` — 显示欢迎消息(新项目只执行一次)
2. 加载 `references/common/process-overview.md` — 工作流概览图
3. 加载 `references/common/session-continuity.md` — 会话恢复指引
4. 加载 `references/common/question-format-guide.md` — 问题格式规范
5. 扫描 `references/extensions/` 目录 — 加载所有扩展规则

### MANDATORY: 内容验证
在创建**任何文件之前**,必须按 `references/common/content-validation.md` 验证内容。

### MANDATORY: 问题文件格式
**禁止在聊天中直接提问**。所有问题必须写入 `.md` 文件,使用 `[Answer]:` 标签格式,详见 `references/common/question-format-guide.md`。

### MANDATORY: 审计日志
**所有用户输入必须原样记录**到 `aidlc-docs/audit.md`(时间戳用 ISO 8601)。禁止总结或改写用户原话。

### MANDATORY: 审批门控
每个阶段完成后,必须等待用户明确批准才能进入下一阶段。使用标准两选项格式:
- 🔧 **Request Changes** — 请求修改
- ✅ **Continue** — 继续下一阶段

### MANDATORY: 复选框更新
完成任何计划步骤后,**必须立即**在该交互中将步骤标记为 `[x]`。

---

## 完整工作流

### Step 0: 初始化(新项目)

1. 检查是否存在 `aidlc-docs/aidlc-state.md`
   - **存在** → 读取状态,从上次阶段恢复
   - **不存在** → 新项目,创建状态文件,继续检测工作区
2. 检查是否存在现有代码
3. 显示欢迎消息(新

_meta.json

{
  "ownerId": "kn75pedbsw92gcn4ttmwe963hn83pkmz",
  "slug": "ai-dlc",
  "version": "1.1.0",
  "publishedAt": 1774891604712
}

references/common/ascii-diagram-standards.md

# ASCII Diagram Standards

## MANDATORY: Use Basic ASCII Only

**CRITICAL**: ALWAYS use basic ASCII characters for diagrams (maximum compatibility).

### ✅ ALLOWED: `+` `-` `|` `^` `v` `<` `>` and alphanumeric text

### ❌ FORBIDDEN: Unicode box-drawing characters
- NO: `┌` `─` `│` `└` `┐` `┘` `├` `┤` `┬` `┴` `┼` `▼` `▲` `►` `◄`
- Reason: Inconsistent rendering across fonts/platforms

## Standard ASCII Diagram Patterns

### CRITICAL: Character Width Rule
**Every line in a box MUST have EXACTLY the same character count (including spaces)**

✅ CORRECT (all lines = 67 chars):
```
+---------------------------------------------------------------+
|                      Component Name                           |
|  Description text here                                        |
+---------------------------------------------------------------+
```

❌ WRONG (inconsistent widths):
```
+---------------------------------------------------------------+
|                      Component Name                           |
|  Description text here                                   |
+---------------------------------------------------------------+
```

### Box Pattern
```
+-----------------------------------------------------+
|                                                     |
|              Calculator Application                 |
|                                                     |
|  Provides basic arithmetic operations for users     |
|  through a web-based interface                      |
|                                                     |
+-----------------------------------------------------+
```

### Nested Boxes
```
+-------------------------------------------------------+
|              Web Server (PHP Runtime)                 |
|  +-------------------------------------------------+  |
|  |  index.php (Monolithic Application)             |  |
|  |  +-------------------------------------------+  |  |
|  |  |  HTML Template (View Layer)               |  |  |
|  |  |  - Form rendering                         |  |  |
|  |  |  - Result display                         |  |  |
|  |  +-------------------------------------------+  |  |
|  +-------------------------------------------------+  |
+-------------------------------------------------------+
```

### Arrows and Connections
```
+----------+
|  Source  |
+----------+
     |
     | HTTP POST
     v
+----------+
|  Target  |
+----------+
```

### Horizontal Flow
```
+-------+     +-------+     +-------+
| Step1 | --> | Step2 | --> | Step3 |
+-------+     +-------+     +-------+
```

### Vertical Flow with Labels
```
User Action Flow:
    |
    v
+----------+
|  Input   |
+----------+
    |
    | validates
    v
+----------+
| Process  |
+----------+
    |
    | returns
    v
+----------+
|  Output  |
+----------+
```

## Validation

Before creating diagrams:
- [ ] Basic ASCII only: `+` `-` `|` `^` `v` `<` `>`
- [ ] No Unicode box-drawing
- [ ] Spaces (not tabs) for alignment
- [ ] Corners use `+`
- 

references/common/content-validation.md

# Content Validation Rules

## MANDATORY: Content Validation Before File Creation

**CRITICAL**: All generated content MUST be validated before writing to files to prevent parsing errors.

## ASCII Diagram Standards

**CRITICAL**: Before creating ANY file with ASCII diagrams:

1. **LOAD** `common/ascii-diagram-standards.md`
2. **VALIDATE** each diagram:
   - Count characters per line (all lines MUST be same width)
   - Use ONLY: `+` `-` `|` `^` `v` `<` `>` and spaces
   - NO Unicode box-drawing characters
   - Spaces only (NO tabs)
3. **TEST** alignment by verifying box corners align vertically

**See `common/ascii-diagram-standards.md` for patterns and validation checklist.**

## Mermaid Diagram Validation

### Required Validation Steps
1. **Syntax Check**: Validate Mermaid syntax before file creation
2. **Character Escaping**: Ensure special characters are properly escaped
3. **Fallback Content**: Provide text alternative if Mermaid fails validation

### Mermaid Validation Rules
```markdown
## BEFORE creating any file with Mermaid diagrams:

1. Check for invalid characters in node IDs (use alphanumeric + underscore only)
2. Escape special characters in labels: " → \" and ' → \'
3. Validate flowchart syntax: node connections must be valid
4. Test diagram parsing with simple validation

## FALLBACK: If Mermaid validation fails, use text-based workflow representation
```

### Implementation Pattern
```markdown
## Workflow Visualization

### Mermaid Diagram (if syntax valid)
```mermaid
[validated diagram content]
```

### Text Alternative (always include)
```
Phase 1: INCEPTION
- Stage 1: Workspace Detection (COMPLETED)
- Stage 2: Requirements Analysis (COMPLETED)
[continue with text representation]
```

## General Content Validation

### Pre-Creation Validation Checklist
- [ ] Validate embedded code blocks (Mermaid, JSON, YAML)
- [ ] Check special character escaping
- [ ] Verify markdown syntax correctness
- [ ] Test content parsing compatibility
- [ ] Include fallback content for complex elements

### Error Prevention Rules
1. **Always validate before using tools/commands to write files**: Never write unvalidated content
2. **Escape special characters**: Particularly in diagrams and code blocks
3. **Provide alternatives**: Include text versions of visual content
4. **Test syntax**: Validate complex content structures

## Validation Failure Handling

### When Validation Fails
1. **Log the error**: Record what failed validation
2. **Use fallback content**: Switch to text-based alternative
3. **Continue workflow**: Don't block on content validation failures
4. **Inform user**: Mention simplified content was used due to parsing constraints

references/common/depth-levels.md

# Adaptive Depth

**Purpose**: Explain how AI-DLC adapts detail level to problem complexity

## Core Principle

**When a stage executes, ALL its defined artifacts are created. The "depth" refers to the level of detail and rigor within those artifacts, which adapts to the problem's complexity.**

## Stage Selection vs Detail Level

### Stage Selection (Binary)
- **Workflow Planning** decides: EXECUTE or SKIP for each stage
- **If EXECUTE**: Stage runs and creates ALL its defined artifacts
- **If SKIP**: Stage doesn't run at all

### Detail Level (Adaptive)
- **Simple problems**: Concise artifacts with essential detail
- **Complex problems**: Comprehensive artifacts with extensive detail
- **Model decides**: Based on problem characteristics, not prescriptive rules

## Factors Influencing Detail Level

The model considers these factors when determining appropriate detail:

1. **Request Clarity**: How clear and complete is the user's request?
2. **Problem Complexity**: How intricate is the solution space?
3. **Scope**: Single file, component, multiple components, or system-wide?
4. **Risk Level**: What's the impact of errors or omissions?
5. **Available Context**: Greenfield vs brownfield, existing documentation
6. **User Preferences**: Has user expressed preference for brevity or detail?

## Example: Requirements Analysis Artifacts

**All scenarios create the same artifacts**:
- `requirement-verification-questions.md` (if needed)
- `requirements.md`

**Note**: User's initial request is captured in `audit.md` (no separate user-intent.md needed)

**Detail level varies by complexity**:

### Simple Scenario (Bug Fix)
- **requirement-verification-questions.md**: necessary clarifying questions
- **requirements.md**: Concise functional requirement, minimal sections

### Complex Scenario (System Migration)
- **requirement-verification-questions.md**: Multiple rounds, 10+ questions
- **requirements.md**: Comprehensive functional + non-functional requirements, traceability, acceptance criteria

## Example: Application Design Artifacts

**All scenarios create the same artifacts**:
- `application-design.md`
- `component-diagram.md`

**Detail level varies by complexity**:

### Simple Scenario (Single Component)
- **application-design.md**: Basic component description, key methods
- **component-diagram.md**: Simple diagram with essential relationships

### Complex Scenario (Multi-Component System)
- **application-design.md**: Detailed component responsibilities, all methods with signatures, design patterns, alternatives considered
- **component-diagram.md**: Comprehensive diagram with all relationships, data flows, integration points

## Guiding Principle for Model

**"Create exactly the detail needed for the problem at hand - no more, no less."**

- Don't artificially inflate simple problems with unnecessary detail
- Don't shortchange complex problems by omitting critical detail
- Let problem characteristics drive detail level naturally
- All required artifacts 

Sponsored

Ads related to AI-DLC and adjacent AI workflows.