RFC Manager
Manage architecture RFCs with 5 operations: create, review, list, update, status.
Argument Parsing
Parse $ARGUMENTS to determine the action:
| First word |
Remaining args |
Operation |
create |
<topic> |
Draft a new RFC |
review |
<path-to-rfc> |
Review an existing RFC |
list |
(none) |
List all RFCs |
update |
<path-to-rfc> |
Update specific RFC sections |
status |
<number> <status> |
Transition RFC status with validation and side effects |
| (empty) |
|
Ask the user which action to perform |
If the first word does not match any action, treat the entire $ARGUMENTS as a topic and default to create.
RFC Directory Discovery
Used by all operations. Search for RFC files across all convention paths (exclude *.spec.md companion files):
docs/rfcs/*.md
docs/20-architecture/rfcs/*.md (jd-docs — detected via .jd-config.json or docs/20-architecture/ directory)
.arkhe/rfcs/*.md (arkhe convention)
arkhe/rfcs/*.md
For create and update, resolve a write directory:
- If jd-docs detected →
docs/20-architecture/rfcs/
- Else if
docs/rfcs/ exists → docs/rfcs/
- Else → create
docs/rfcs/ as default
Operation: create
Draft a populated RFC — NOT a blank template. Gather context, write a spec, then write a real first draft with honest self-assessment.
- Determine topic from args after
create (or ask if empty)
- Gather context — search conversation, research artifacts (
docs/30-research/, docs/50-research/, docs/research/), memory files, relevant source code, and ADRs (docs/20-architecture/22-adr/, docs/20-architecture/adr/, docs/adr/). See WORKFLOW.md for detail.
- Confirm scope with user before drafting — present what you found and proposed scope. Use
AskUserQuestion for meaningful alternatives.
- Resolve number and slug — discover write directory, glob all convention paths for highest existing number, assign next (zero-padded 4 digits). Confirm title with user, generate kebab-case slug. Both spec and RFC will use
NNNN-<slug>.
- Write spec file — read spec template at
${CLAUDE_SKILL_DIR}/templates/rfc-spec-template.md. Fill Problem Statement, Key Constraints, Success Criteria, and Scope Boundaries with concrete content. Write to <dir>/NNNN-<slug>.spec.md. Present to user for confirmation via AskUserQuestion. See WORKFLOW.md for spec guidance.
- Read RFC template at
${CLAUDE_SKILL_DIR}/templates/rfc-template.md for section structure
- Draft populated RFC filling every section with substantive content. See WORKFLOW.md for per-section guidance. Set Author to git user name, Status to
Draft, Date to today.
- Append Author's Notes — below Open Questions, record: shortcuts taken, unverified assumptions, areas of uncertainty, low-confidence sections. Aim for 3-8 items. Be specific — these feed the adversarial review. See WORKFLOW.md for confession guidelines.
- Write RFC to
<dir>/NNNN-<slug>.md
- Suggest next steps:
/rfc review <path> for adversarial design review (uses rfc-critic agent)
Operation: review
Adversarial review of the RFC using the rfc-critic agent — a dedicated red-team reviewer that reads the Author's Notes as attack vectors and checks spec alignment.
- Read RFC at the given path (if empty, ask — suggest globbing
docs/rfcs/*.md and docs/20-architecture/rfcs/*.md)
- Load spec file — check for a companion
NNNN-<slug>.spec.md alongside the RFC. If found, read it.
- Discover architecture standards (check in order, use first found):
.arkhe/roadmap/architecture.md (arkhe convention)
docs/20-architecture/ directory (jd-docs convention)
docs/architecture.md or docs/architecture/ (generic)
- Fall back to general best practices
- Spawn rfc-critic agent — use the Agent tool (subagent_type:
doc:rfc-critic). Pass: the RFC content, spec content (if found), architecture standards (if found). See WORKFLOW.md for delegation details.
- Present review output — the agent returns a structured review with confidence score, verdict, concerns by severity (each with evidence citations), and improvements. Display to user.
- Verdict criteria:
- Approve: No critical concerns, minor issues only
- Approve with changes: No critical concerns, has major concerns with clear fixes
- Needs redesign: Has critical concerns or fundamental architecture issues
- Flag missing RFC template sections as Minor concerns
- Suggest next steps:
/rfc update <path> to address findings
Operation: list
List all architecture RFCs with their current status.
- Search all convention paths (see RFC Directory Discovery)
- For each RFC, extract from headers: Number/Filename, Title (from
# RFC: [Title] or first # heading), Status (Draft/Review/Approved/Rejected/Superseded — default "Unknown"), Author (default "—"), Date (default "—")
- Output markdown table sorted by number descending (newest first):
# Architecture RFCs
| # | Title | Status | Author | Date |
|---|-------|--------|--------|------|
**Summary**: X total — Y Draft, Z Review, W Approved
- If no RFCs found, suggest
/rfc create <topic>
Operation: update
Re-draft specific sections of an existing RFC based on new context or feedback.
- Read RFC at the given path (if empty, ask for path)
- Identify sections to update:
- If user specified sections in conversation, update those
- If invoked after a
/rfc review, use review findings to identify sections needing changes
- Otherwise, ask the user which sections to revise
- Gather fresh context from conversation, research, and codebase for the sections being updated
- Re-draft sections — rewrite identified sections with improved content. Preserve all unchanged sections exactly as-is.
- Update Date to today. Keep Status unchanged unless user requests a transition.
- Handle Author's Notes — if status transitions to Approved, strip the Author's Notes section entirely. If major sections were re-drafted, refresh the confessions. See WORKFLOW.md for lifecycle rules.
- Check spec alignment — if a companion
.spec.md file exists and the update touches Goals, Non-Goals, or Architecture Overview, verify the RFC still aligns with the spec. Flag drift to the user.
- Show diff summary — list which sections were changed and a brief description of each change
- Suggest next steps:
/rfc review <path> to verify the updates
Operation: status
Transition RFC status with validation, warnings, and side effects.
- Find RFC — resolve number to file path by globbing all convention paths for
NNNN-*.md. Read current status from **Status**: field.
- Validate transition — check against valid transitions. Warn (but allow) on unusual paths:
- Valid: Draft → Review → Approved/Rejected, any → Superseded
- Warn: Draft → Approved (skipping Review), Approved → Draft (going backwards)
- On warning, use
AskUserQuestion to confirm
- Apply status change — update
**Status**: field in the RFC
- Side effects:
- → Approved: Strip
## Author's Notes section entirely
- Confirm — show old status → new status, side effects applied
Valid statuses: Draft | Review | Approved | Rejected | Superseded
Note: The update operation still handles inline status changes during content updates. Use /rfc status for dedicated status transitions with validation.
Quality Standards
- Every section must contain real content, not placeholder text like
[describe here]
- Reference specific files, packages, and patterns from the codebase
- If a section doesn't apply, state that explicitly with a one-line rationale
- Drafts should be good enough to review immediately, not skeletons to fill in later
Progressive Disclosure
- WORKFLOW.md — detailed per-operation workflows
- EXAMPLES.md — usage examples for all operations
- TROUBLESHOOTING.md — common issues and solutions
1---2name: rfc3description: Manage architecture RFCs: create, review, list, update, and transition status. Use when user mentions "RFC", "technical proposal", "architecture proposal", or wants to draft, review, list, update, or change status of RFCs.4---5
6# RFC Manager
7
8Manage architecture RFCs with 5 operations: create, review, list, update, status.
9
10## Argument Parsing
11
12Parse `$ARGUMENTS` to determine the action:
13
14| First word | Remaining args | Operation |
15|------------|---------------|-----------|
16| `create` | `<topic>` | Draft a new RFC |
17| `review` | `<path-to-rfc>` | Review an existing RFC |
18| `list` | (none) | List all RFCs |
19| `update` | `<path-to-rfc>` | Update specific RFC sections |
20| `status` | `<number> <status>` | Transition RFC status with validation and side effects |
21| (empty) | | Ask the user which action to perform |
22
23If the first word does not match any action, treat the entire `$ARGUMENTS` as a topic and default to `create`.
24
25## RFC Directory Discovery
26
27Used by all operations. Search for RFC files across all convention paths (exclude `*.spec.md` companion files):
28
291. `docs/rfcs/*.md`
302. `docs/20-architecture/rfcs/*.md` (jd-docs — detected via `.jd-config.json` or `docs/20-architecture/` directory)
313. `.arkhe/rfcs/*.md` (arkhe convention)
324. `arkhe/rfcs/*.md`
33
34For **create** and **update**, resolve a write directory:
35- If jd-docs detected → `docs/20-architecture/rfcs/`
36- Else if `docs/rfcs/` exists → `docs/rfcs/`
37- Else → create `docs/rfcs/` as default
38
39## Operation: create
40
41Draft a populated RFC — NOT a blank template. Gather context, write a spec, then write a real first draft with honest self-assessment.
42
431. **Determine topic** from args after `create` (or ask if empty)
442. **Gather context** — search conversation, research artifacts (`docs/30-research/`, `docs/50-research/`, `docs/research/`), memory files, relevant source code, and ADRs (`docs/20-architecture/22-adr/`, `docs/20-architecture/adr/`, `docs/adr/`). See [WORKFLOW.md](WORKFLOW.md) for detail.
453. **Confirm scope** with user before drafting — present what you found and proposed scope. Use `AskUserQuestion` for meaningful alternatives.
464. **Resolve number and slug** — discover write directory, glob all convention paths for highest existing number, assign next (zero-padded 4 digits). Confirm title with user, generate kebab-case slug. Both spec and RFC will use `NNNN-<slug>`.
475. **Write spec file** — read spec template at `${CLAUDE_SKILL_DIR}/templates/rfc-spec-template.md`. Fill Problem Statement, Key Constraints, Success Criteria, and Scope Boundaries with concrete content. Write to `<dir>/NNNN-<slug>.spec.md`. Present to user for confirmation via `AskUserQuestion`. See [WORKFLOW.md](WORKFLOW.md) for spec guidance.
486. **Read RFC template** at `${CLAUDE_SKILL_DIR}/templates/rfc-template.md` for section structure
497. **Draft populated RFC** filling every section with substantive content. See [WORKFLOW.md](WORKFLOW.md) for per-section guidance. Set Author to git user name, Status to `Draft`, Date to today.
508. **Append Author's Notes** — below Open Questions, record: shortcuts taken, unverified assumptions, areas of uncertainty, low-confidence sections. Aim for 3-8 items. Be specific — these feed the adversarial review. See [WORKFLOW.md](WORKFLOW.md) for confession guidelines.
519. **Write RFC** to `<dir>/NNNN-<slug>.md`
5210. **Suggest next steps**: `/rfc review <path>` for adversarial design review (uses rfc-critic agent)
53
54## Operation: review
55
56Adversarial review of the RFC using the `rfc-critic` agent — a dedicated red-team reviewer that reads the Author's Notes as attack vectors and checks spec alignment.
57
581. **Read RFC** at the given path (if empty, ask — suggest globbing `docs/rfcs/*.md` and `docs/20-architecture/rfcs/*.md`)
592. **Load spec file** — check for a companion `NNNN-<slug>.spec.md` alongside the RFC. If found, read it.
603. **Discover architecture standards** (check in order, use first found):
61 - `.arkhe/roadmap/architecture.md` (arkhe convention)
62 - `docs/20-architecture/` directory (jd-docs convention)
63 - `docs/architecture.md` or `docs/architecture/` (generic)
64 - Fall back to general best practices
654. **Spawn rfc-critic agent** — use the Agent tool (subagent_type: `doc:rfc-critic`). Pass: the RFC content, spec content (if found), architecture standards (if found). See [WORKFLOW.md](WORKFLOW.md) for delegation details.
665. **Present review output** — the agent returns a structured review with confidence score, verdict, concerns by severity (each with evidence citations), and improvements. Display to user.
676. **Verdict criteria**:
68 - **Approve**: No critical concerns, minor issues only
69 - **Approve with changes**: No critical concerns, has major concerns with clear fixes
70 - **Needs redesign**: Has critical concerns or fundamental architecture issues
717. Flag missing RFC template sections as Minor concerns
728. **Suggest next steps**: `/rfc update <path>` to address findings
73
74## Operation: list
75
76List all architecture RFCs with their current status.
77
781. Search all convention paths (see RFC Directory Discovery)
792. For each RFC, extract from headers: Number/Filename, Title (from `# RFC: [Title]` or first `#` heading), Status (`Draft`/`Review`/`Approved`/`Rejected`/`Superseded` — default "Unknown"), Author (default "—"), Date (default "—")
803. Output markdown table sorted by number descending (newest first):
81
82```markdown
83# Architecture RFCs
84
85| # | Title | Status | Author | Date |
86|---|-------|--------|--------|------|
87
88**Summary**: X total — Y Draft, Z Review, W Approved
89```
90
914. If no RFCs found, suggest `/rfc create <topic>`
92
93## Operation: update
94
95Re-draft specific sections of an existing RFC based on new context or feedback.
96
971. **Read RFC** at the given path (if empty, ask for path)
982. **Identify sections to update**:
99 - If user specified sections in conversation, update those
100 - If invoked after a `/rfc review`, use review findings to identify sections needing changes
101 - Otherwise, ask the user which sections to revise
1023. **Gather fresh context** from conversation, research, and codebase for the sections being updated
1034. **Re-draft sections** — rewrite identified sections with improved content. Preserve all unchanged sections exactly as-is.
1045. **Update Date** to today. Keep Status unchanged unless user requests a transition.
1056. **Handle Author's Notes** — if status transitions to Approved, strip the Author's Notes section entirely. If major sections were re-drafted, refresh the confessions. See [WORKFLOW.md](WORKFLOW.md) for lifecycle rules.
1067. **Check spec alignment** — if a companion `.spec.md` file exists and the update touches Goals, Non-Goals, or Architecture Overview, verify the RFC still aligns with the spec. Flag drift to the user.
1078. **Show diff summary** — list which sections were changed and a brief description of each change
1089. **Suggest next steps**: `/rfc review <path>` to verify the updates
109
110## Operation: status
111
112Transition RFC status with validation, warnings, and side effects.
113
1141. **Find RFC** — resolve number to file path by globbing all convention paths for `NNNN-*.md`. Read current status from `**Status**:` field.
1152. **Validate transition** — check against valid transitions. Warn (but allow) on unusual paths:
116 - Valid: Draft → Review → Approved/Rejected, any → Superseded
117 - Warn: Draft → Approved (skipping Review), Approved → Draft (going backwards)
118 - On warning, use `AskUserQuestion` to confirm
1193. **Apply status change** — update `**Status**:` field in the RFC
1204. **Side effects**:
121 - **→ Approved**: Strip `## Author's Notes` section entirely
1225. **Confirm** — show old status → new status, side effects applied
123
124**Valid statuses**: Draft | Review | Approved | Rejected | Superseded
125
126Note: The `update` operation still handles inline status changes during content updates. Use `/rfc status` for dedicated status transitions with validation.
127
128## Quality Standards
129
130- Every section must contain real content, not placeholder text like `[describe here]`
131- Reference specific files, packages, and patterns from the codebase
132- If a section doesn't apply, state that explicitly with a one-line rationale
133- Drafts should be good enough to review immediately, not skeletons to fill in later
134
135## Progressive Disclosure
136
137- [WORKFLOW.md](WORKFLOW.md) — detailed per-operation workflows
138- [EXAMPLES.md](EXAMPLES.md) — usage examples for all operations
139- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) — common issues and solutions