一键导入
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you have a spec or requirements for a multi-step task, before touching code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user provides a GitHub PR link with a "deep review" trigger inside a locally cloned repo, to perform a thorough multi-dimensional code review grounded in ARCS DAG context, AGENTS.md conventions, and optional codegraph coupling analysis, then post findings as inline GitHub review comments under explicit user gate
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when initializing a new ARCS project — bootstrapping a repo into the DAG with metadata, docs, and structural knowledge entries. Covers gather → present summary → init → codegraph ingestion → fan-out analysis across typed sub-agents.
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Use when implementing any feature or bugfix, before writing implementation code
Use when capturing a knowledge entry, before writing its body — to author a substantive per-kind body, not a summary-only stub
| name | writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
You have a spec or requirements for a multi-step task and need to create a detailed implementation plan before touching code.
CLI Primer:
arcs --commands --jsonfor discovery. Mutating commands run directly — no token.
flowchart TD
A[Detect Mode] --> B{Bash available?}
B -->|yes| C[Agent-Direct Mode]
B -->|no| D[Orchestrator Mode]
C --> E[Scope Check]
D --> E
E --> F{Multi-subsystem?}
F -->|yes| G[Split into separate plans]
F -->|no| H[Map File Structure]
H --> I[Define Tasks - bite-sized]
I --> J[Generate Diagram .mmd]
J --> K[Review Loop]
K --> L{Reviewer approves?}
L -->|issues| M[Fix chunk]
M --> K
L -->|approved| N{Last chunk?}
N -->|no| K
N -->|yes| O[Store Plan via CLI]
O --> P[Execution Handoff]
arcs --commands --json works) → agent-direct: write plan + diagram + tasks via CLI---plan-artifact---
title: <plan title>
summary: <one-line summary>
keywords: ["implementation-plan", ...]
sourceFiles: [{path: "...", anchor: "..."}]
---body---
<full plan markdown body>
---diagram---
<full .mmd file content>
---tasks---
- title: <task 1>
priority: high|medium|low
sourceFiles: [{path: "..."}]
---end---
Before mapping structure, read what the DAG already knows so the plan follows established shape: arcs knowledge search <slug> "<feature-keywords>" --lean --json, filtering for kind=pattern and kind=architecture. Reuse known conventions rather than inventing parallel ones.
Before defining tasks, map which files will be created/modified:
Each step is one action (2-5 minutes):
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED: Use arcs:executing-plans to implement this plan (sequential single-agent by default, or parallel mode when independent tasks can fan out).
**Goal:** [One sentence]
**Architecture:** [2-3 sentences]
**Tech Stack:** [Key technologies]
---
> Diagram: plans/<plan-id>.diagram.mmd
Diagrams are agentic execution maps in separate .mmd files — never embedded in plan body. Load to-diagram skill for conventions.
plans/<plan-id>.diagram.mmd/tmp first; persist only after user confirmsT001, T002, ... (stable, never change).mmd exists (from brainstorming): EXTEND it, don't regenerateto-diagram conventionsRequired per-node metadata (in %% comment block before flowchart TD):
node, title, status, skill, scope, files, acceptance, verify, blocked-by, delegate
All nodes start :::backlog but metadata must be fully populated at creation time for diagram-first execution.
Per-node verify commands MUST be scoped to that task's files (e.g. npm test -- tests/exact/path/test.py, vitest run test/orders.test.ts) — never the bare full suite (npm test, vitest run, biome check .). The devil-advocate completion gate owns the single full-project pass.
flowchart TD
A[Write chunk] --> B[Dispatch reviewer subagent]
B --> C{Issues found?}
C -->|yes| D[Fix chunk]
D --> B
C -->|no| E{Last chunk?}
E -->|no| A
E -->|yes| F[Proceed to storage]
## Chunk N: <name>, ≤1000 lines eacharcs plan create <slug> --title="YYYY-MM-DD <feature> Implementation Plan" --summary="..." --status=planned --keywords="implementation-plan" --body="<markdown>" --json
Then extract the plan's "why this structure" rationale into a durable entry — don't let the architecture reasoning stay sealed inside the plan body: arcs knowledge upsert <slug> "<feature> architecture rationale" --kind=architecture --summary="<why the structure is shaped this way; key trade-offs>" --keywords="<k1,k2>" --source-files="<path[:anchor],...>" --json. Use --kind=decision instead when the entry is really a single settled call rather than a structural shape. Upsert is idempotent by title.
"Plan complete and saved via
arcs plan get <slug> <planId>in project<slug>. Ready to execute?"
arcs:executing-plans — its parallel mode fans out independent tasks to subagents when available, falling back to sequential single-agent execution otherwise.mmd files