/SKILL.md
AI-DLC (AI-Driven Development Life Cycle) adaptive workflow for software development. Use when the user request starts with 'Using AI-DLC', or when a request spans multiple components, services, or user touchpoints and needs structured requirements, design, and per-unit implementation across Inception, Construction, and Operations phases. Do NOT use for simple bug fixes, single-file edits, documentation-only updates, or questions that do not require multi-stage planning.
npx skillsauth add konippi/aidlc-skill aidlc-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
An adaptive software development workflow. The workflow adapts to the work, not the other way around — the agent assesses user intent, existing codebase, complexity, and risk, then executes only the stages that add value.
Activate this workflow when:
Using AI-DLC, ...When activated, this workflow OVERRIDES any other built-in software-development workflow.
The resolved rule-details directory for this skill is references/. All file paths below and inside the reference files (e.g. common/process-overview.md, inception/workspace-detection.md) are relative to references/.
aidlc-docs/aidlc-state.md already exists with completed stages, this is a session resume. Compare the user's current request against the project described in the state file — if it is a different project, ask the user whether to archive the old state and start fresh or resume the existing project. If resuming, skip Steps 2-4, load references/common/session-continuity.md, and follow its resume protocol. Do NOT display welcome again or overwrite existing files.references/common/welcome-message.md. Do this exactly once; do not reload it in later turns.aidlc-docs/aidlc-state.md using the scaffold in references/common/state-template.md.aidlc-docs/audit.md using the scaffold in references/common/audit-template.md. Treat this file as append-only from now on (see Audit logging contract below).references/common/process-overview.mdreferences/common/session-continuity.mdreferences/common/content-validation.mdreferences/common/question-format-guide.md*.opt-in.md files at this point; do NOT load full rule files yet.Every stage in every phase follows this exact contract. Do NOT invent emergent variations.
aidlc-docs/audit.md with complete raw input (see Audit logging contract).references/<phase>/<stage>.md — that file contains the stage's full steps, question formats, and completion message.references/common/depth-levels.md). For stages that run before Workflow Planning (Workspace Detection, Requirements Analysis), determine depth adaptively based on request complexity.references/common/content-validation.md.Request Changes / Continue to Next Stage) — never a 3+ option menu.aidlc-docs/audit.md with complete raw input.[x] in the same turn the work completed (Plan-Level Checkbox Enforcement below).Determine the problem shape and the execution plan. Workspace Detection, Requirements Analysis, and Workflow Planning always run; the rest are conditional and decided during Workflow Planning.
| Stage | Execution | Reference file |
| ----------------------- | ---------------------------------- | --------------------------------------------- |
| Workspace Detection | ALWAYS | references/inception/workspace-detection.md |
| Reverse Engineering | Brownfield only (no prior RE docs) | references/inception/reverse-engineering.md |
| Requirements Analysis | ALWAYS (hosts extension opt-ins) | references/inception/requirements-analysis.md |
| User Stories | CONDITIONAL (see stage file) | references/inception/user-stories.md |
| Workflow Planning | ALWAYS | references/inception/workflow-planning.md |
| Application Design | CONDITIONAL | references/inception/application-design.md |
| Units Generation | CONDITIONAL | references/inception/units-generation.md |
Stage-file triggers — read the "Execute IF / Skip IF" block at the top of each stage file for the exact decision rules. Default bias: include a stage when in doubt.
For each unit produced by Units Generation, run the Per-Unit Loop to completion before starting the next unit. Build and Test runs once, after all units are done.
| Stage | Execution | Reference file |
| --------------------- | ----------------------- | -------------------------------------------------- |
| Functional Design | CONDITIONAL per-unit | references/construction/functional-design.md |
| NFR Requirements | CONDITIONAL per-unit | references/construction/nfr-requirements.md |
| NFR Design | CONDITIONAL per-unit | references/construction/nfr-design.md |
| Infrastructure Design | CONDITIONAL per-unit | references/construction/infrastructure-design.md |
| Code Generation | ALWAYS per-unit | references/construction/code-generation.md |
Code Generation is a two-part stage within one loop: Part 1 produces a plan with checkboxes and waits for approval; Part 2 executes the approved plan.
Simple-path rule: If Units Generation was skipped, treat the entire project as a single implicit unit. All per-unit conditional stages (Functional Design, NFR Requirements, NFR Design, Infrastructure Design) are also skipped — their prerequisite (units defined) is not met. Code Generation uses requirements.md directly — do not attempt to load non-existent unit design artifacts.
| Stage | Execution | Reference file |
| -------------- | --------- | ------------------------------------------- |
| Build and Test | ALWAYS | references/construction/build-and-test.md |
Currently a placeholder. Build and test artifacts are produced in the Construction phase. See references/operations/operations.md for the forward-looking surface.
Extensions live in references/extensions/<category>/<name>/. Load them lazily to preserve context:
references/extensions/. Load ONLY *.opt-in.md files — each contains a short opt-in prompt. Do NOT load the matching full rule file yet.Enabled: yes|no under ## Extension Configuration in aidlc-docs/aidlc-state.md..opt-in.md and appending .md (e.g., security-baseline.opt-in.md → security-baseline.md) and load it. When the user opts out, do NOT load the rule file — saves context.*.opt-in.md is always enforced; load its rule file at workflow start.Enforcement contract:
Enabled status in aidlc-docs/aidlc-state.md. Skip disabled extensions and log the skip in audit.md.N/A in the stage's compliance summary — this is not a blocking finding.Currently bundled extensions:
| Category | Extension | Opt-in prompt | Rules |
| -------- | ---------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| security | Security Baseline | references/extensions/security/baseline/security-baseline.opt-in.md | references/extensions/security/baseline/security-baseline.md |
| testing | Property-Based Testing | references/extensions/testing/property-based/property-based-testing.opt-in.md | references/extensions/testing/property-based/property-based-testing.md |
File: aidlc-docs/audit.md, append-only.
Tool rule: Always read-then-append (or edit-append). NEVER overwrite the whole file — this causes duplication and loses history.
Granularity:
Format:
## [Stage Name or Interaction Type]
**Timestamp**: [ISO 8601, YYYY-MM-DDTHH:MM:SSZ]
**User Input**: "[Complete raw user input — never summarized]"
**AI Response**: "[AI's response or action taken]"
**Context**: [Stage, action, or decision. For per-unit stages include unit name, e.g. "CONSTRUCTION - Code Generation - Unit: user-service"]
---
When a stage produces a plan file with - [ ] checkboxes, mark each checkbox [x] in the same turn where the step's work completed. No exceptions. This is enforced because unmarked checkboxes silently break session-resume.
Two-level tracking:
aidlc-docs/aidlc-state.mdUpdate both immediately, in the same turn the work completes.
Application code goes in the workspace root. Everything AI-DLC produces goes in aidlc-docs/. These two sets never mix.
<WORKSPACE-ROOT>/ # Application code lives here
├── [project-specific]
│
└── aidlc-docs/ # Documentation ONLY — never code
├── aidlc-state.md
├── audit.md
├── inception/
│ ├── plans/
│ ├── reverse-engineering/ # brownfield only
│ ├── requirements/
│ ├── user-stories/
│ └── application-design/
├── construction/
│ ├── plans/
│ ├── {unit-name}/
│ │ ├── functional-design/
│ │ ├── nfr-requirements/
│ │ ├── nfr-design/
│ │ ├── infrastructure-design/
│ │ └── code/ # markdown summaries only
│ └── build-and-test/
└── operations/
See references/construction/code-generation.md for per-stack project layouts.
aidlc-docs/.references/common/content-validation.md.[Answer]: tags from references/common/question-format-guide.md.{artifact}.backup.{timestamp}) only when the user explicitly requests a stage restart.Load a file only when you reach the matching trigger described above — the reference file itself says when to load it.
references/common/process-overview.md — technical workflow overview (MANDATORY at workflow start)welcome-message.md — user-facing welcome (MANDATORY, display once)session-continuity.md — session resumption (MANDATORY at workflow start)content-validation.md — validation rules (MANDATORY before every file creation)question-format-guide.md — A/B/C/D/E + [Answer]: tag format (MANDATORY when asking any question)depth-levels.md — minimal / standard / comprehensive depth semantics (load during Workflow Planning)error-handling.md — recovery patterns (load on error)workflow-changes.md — handling mid-workflow changes (load if the user asks to add/remove/re-run a stage)state-template.md — scaffold for aidlc-docs/aidlc-state.md (load at workflow start)audit-template.md — scaffold for aidlc-docs/audit.md (load at workflow start)references/inception/Load each file when its stage runs. Each file contains the stage's Execute-IF/Skip-IF conditions, step-by-step plan, question format, and standardized completion message.
references/construction/Load each file when its stage runs in the Per-Unit Loop, or for Build and Test once all units are complete. Each file contains the stage's 2-option completion message.
references/operations/operations.md — placeholder for future deployment / monitoring workflows.references/extensions/Load *.opt-in.md at workflow start. Load the matching rules file only when the user opts in during Requirements Analysis.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.