Dev spec driven implementation

From BlueSkyXN/Codex-is-all-you-need · View interactive version

Dev spec driven implementation is an AI agent skill from the GitHub repository BlueSkyXN/Codex-is-all-you-need. Use to implement a scoped multi-step change from an existing spec, handoff, issue, or explicit delivery request. Do not trigger for read-only analysis, planning, or a trivial localized edit.

How to use this skill

Skill file

Spec-driven Implementation

SDLC artifact policy

Use SDLC artifacts when they are present, but do not require them for every development task.

Authoritative SDLC inputs may include:

When these artifacts exist, treat them as delivery inputs. Keep the implementation inside the allowed scope, preserve forbidden scope, preserve architecture and domain boundaries, and report contradictions with repository evidence.

When these artifacts are absent, continue from the best available direct input when it is sufficient: user request, issue, bug report, reproduction steps, failing test, local diff, repository evidence, or explicit user instruction. Missing SDLC artifacts are a risk signal, not an automatic stop condition.

Do not make dev own, approve, or rewrite SDLC-owned artifacts unless the user explicitly asks for that. Dev may report blockers, contradictions, implementation evidence, and suggested follow-up artifacts.

When present, read the lightweight SDLC-ADS state before implementation:

These files are context and constraints, not universal gates. If they are absent and the task is clear, proceed through direct-dev.

External Web/GPT/AI discussion is not executable by itself. Implement only the parts that are normalized into a direct user instruction, delivery card, REQ, TASK, VAL, or explicit user-confirmed scope.

Use when

Do not use when

traceability, or change-control materials. Recommend

$codex-next:sdlc-manager and stop; do not invoke it from this workflow.

Inputs

Prefer inputs in this order:

  1. Current user instruction and repository evidence.
  2. Dev handoff, delivery card, or task card.
  3. local/sdlc state and durable ADS constraints.
  4. External discussion only after it has been tagged and normalized.
  5. Validation Plan, acceptance test matrix, smoke checklist, regression scope, or evidence expectations.
  6. SRS / NFR / HLD / LLD / ADR / Domain Boundary Map / SPEC / RTM / acceptance criteria.
  7. Issue, bug report, reproduction steps, failing test, local diff, or explicit instruction.
  8. Repository map, command list, test plan, CI config, or previous implementation notes.

Workflow

  1. Classify the entry path.

| Path | Use when | Behavior |

|---|---|---|

| SDLC-backed | SRS/SPEC/handoff exists | Treat artifacts as source-of-truth delivery inputs. |

| Partial-artifact | Some materials exist but gaps remain | Use available materials and mark gaps. |

| Direct-dev | No SDLC material exists but request is clear | Proceed from issue/request/repo evidence. |

| Repo-onboarding-first | Scope or repo area is unclear | Run dev-repo-onboarding first. |

| Blocked | Contradictory, unsafe, unbounded, or untestable | Stop and report blocker. |

  1. Read repository instructions.
  1. Map source requirements to implementation units.

For SDLC-backed work, link changes to requirement IDs, SPEC IDs, task IDs, or RTM rows.

For direct-dev work, create temporary source labels in the report:

```text

REQ-001 or DIRECT-REQ-001

TASK-001

VAL-001

```

  1. Define the smallest safe scope.

Identify:

  1. Implement incrementally.
  1. Validate.
  1. Report blockers or contradictions.

Use this format:

```text

Source / task ID:

Contradiction or blocker:

Repository evidence:

Impact:

Suggested next owner:

Suggested resolution:

```

  1. Handle midstream intake.

If new information appears while implementing, classify it before editing further:

| Type | Behavior |

|---|---|

| 同范围补充 | Merge into current task and validation. |

| 旁路小修 | Treat as fast-lane direct-dev if independently validatable. |

| 冲突变更 | Stop or reduce scope; report Q / contradiction with repository evidence. |

| 紧急修复 | Fix minimally, validate, and report impact. |

Dev does not silently update SDLC baselines. Escalate when scope, Architecture, Domain, business semantics, release risk, or validation baseline changes.

Validation

Before final response, verify:

Output

Return:

  1. Entry path: SDLC-backed / partial-artifact / direct-dev / repo-onboarding-first / blocked
  2. Source inputs used
  3. Scope and files changed
  4. Implementation summary
  5. Validation commands and results
  6. Requirement / task / test traceability, if available
  7. Blockers, contradictions, or remaining risks

Boundaries

Handoff

update, or change control, recommend $codex-next:sdlc-manager and stop.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.