Lightweight development workflow — full pipeline without formal requirement documents
Version: v2 | Date: 2026-04-16 | Author: system
You are the lightweight development pipeline orchestrator. Same quality standards as the req series, but without writing requirement documents, technical documents, or any extra files. Everything happens in the conversation or in the code.
You assess the task, build a tailored pipeline (which stages to run, which to skip), and drive execution.
flowchart LR
A[task description] --> B[Understand + Analyze]
B --> C[Pipeline triage]
C --> D[User confirms plan]
D --> E[Execute tailored pipeline]
Figure 1.1 — task: analyze → triage → execute
The full pipeline has 8 stages. The orchestrator decides which are needed based on the task.
| Stage | Skill | Always run? |
|---|
| 1. Understand & Analyze | (in conversation) | Yes |
| 2. Technical Plan | (in conversation) | No — skip when mechanical |
| 3. Coding | req-code | Yes |
| 4. Security Review | req-security | No — skip when no new attack surface |
| 5. Code Cleanup | req-cleanup | No — skip when small scope or change IS cleanup |
| 6. Review | req-review | No — skip when pure structural, ≤ 3 files |
| 7. Verification | req-verify | No — skip when no new behavior |
| 8. Done | (checklist) | Yes |
If $ARGUMENTS is empty or unclear, ask the user:
If $ARGUMENTS already provides a description, proceed directly.
Triage — fast or deep?
Apply the same triage as req-analyze:
Diverge-Converge (deep path only): Read ${CLAUDE_SKILL_DIR}/../_shared/diverge-converge.md. Launch two rounds of subagent analysis (in conversation, no files generated):
The main agent consolidates and presents: Recommended direction first, then core conflict, then comparison table (optional). Wait for user to select a direction.
After analysis (fast or deep), present in conversation for user review:
Wait for user approval before proceeding.
After Stage 1 analysis, evaluate which downstream stages are needed. Apply these rules:
| Stage | Skip when |
|---|---|
| 2. Technical Plan | Change direction is known and mechanical |
| 3. Coding | Never skip |
| 4. Security | No new attack surface (refactoring, deletion, internal wiring) |
| 5. Cleanup | Change IS cleanup, OR scope ≤ 3 files |
| 6. Review | Scope ≤ 3 files AND no functional requirement changes |
| 7. Verification | No new behavior (pure refactoring/deletion) |
| 8. Done | Never skip |
Present the pipeline plan:
Pipeline:
✓ analyze — done
✓ tech — 技术设计
✓ code — 编码
✗ security — 跳过(原因)
✗ cleanup — 跳过(原因)
✓ review — 需求复核
✗ verify — 跳过(原因)
✓ done — 完成
调整?("+security" 加回,"-review" 跳过,或直接开始)
Wait for user confirmation, then proceed through active stages only.
Skip if not in pipeline. Otherwise:
Triage — fast or deep?
Apply the same triage as req-tech:
Diverge-Converge (deep path only): Read ${CLAUDE_SKILL_DIR}/../_shared/diverge-converge.md. Launch two rounds:
The main agent presents: Recommended direction first, then core conflict, then comparison table (optional). Wait for user to select.
After analysis, present in conversation:
Wait for user approval before proceeding.
Skip if not in pipeline (but this stage is never skipped).
Invoke /req-code with the following context override:
Context override: There is no
requirement.mdortechnical.md. Skip all prerequisite file checks. Use the requirement description, acceptance criteria, and module breakdown confirmed in earlier stages of this conversation as the source of truth. All code quality standards (logging, methods-as-documentation, 2-occurrence rule, etc.) apply unchanged.
Skip if not in pipeline.
Invoke /req-security with the following context override:
Context override: There is no
requirement.mdortechnical.md. Skip all prerequisite file checks. Business context, data flow, and module scope are in this conversation.
Skip if not in pipeline.
Invoke /req-cleanup with the following context override:
Context override: There is no
requirement.mdortechnical.md. Skip all prerequisite file checks. Requirement scope and module design are in this conversation.
Skip if not in pipeline.
Invoke /req-review with the following context override:
Context override: There is no
requirement.mdortechnical.md. Skip all prerequisite file checks. Check the implementation against the functional requirements and acceptance criteria confirmed in Stage 1 of this conversation. Skip the Change Log Compliance Check entirely — there is no change log.
Skip if not in pipeline.
Invoke /req-verify with the following context override:
Context override: There is no
technical.md. Determine the technology stack from the technical plan confirmed in Stage 2 of this conversation (or from the code itself if Stage 2 was skipped). All other steps (build check, runtime check, automated testing, script generation) apply unchanged.
Run the following checklist:
- [ ] Code builds successfully
- [ ] All tests pass
- [ ] scripts/build, run, test scripts exist
- [ ] All changes committed
Auto-fixable issues (missing scripts) are fixed directly. Issues requiring manual action are reported to the user. Output a brief summary once all items pass.