Review rfc

From encero-systems/incan · View interactive version

Review rfc is an AI agent skill from the GitHub repository encero-systems/incan. Review an Incan RFC document for formatting, structural, and content issues before GitHub submission. Use when the user asks to review an RFC, check an RFC for problems, prepare an RFC for submission, or says /review-rfc.

How to use this skill

Skill file

Review RFC — Incan Project

Workflow

  1. Read the RFC document in full.
  2. Read the Status: field in the header — it controls which checklists apply (see Status-aware checks below).
  3. Verify the RFC number is not already taken — check workspaces/docs-site/docs/RFCs/ for conflicts.
  4. Work through the universal checklists (1–5), then the status-specific checklist for the RFC's current status.
  5. Fix issues directly (edit the file); RFC review is an editing task, not just a report.
  6. If no GitHub issue exists yet, ask the user before creating one (see Issue creation). Once created, record the issue URL in the RFC header's Issue: field.
  7. If review materially changes RFC filenames, numbers, or status/location (for example superseding or splitting an RFC), update RFC cross-references and regenerate the docs-site RFC snippets/index.
  8. Ask before semantic restructures. Mechanical fixes, formatting cleanup, section-order repairs, and obvious lifecycle-field corrections should be applied directly. But if review suggests splitting an RFC, superseding it, renumbering it, or materially changing its scope/central design claim, stop and get explicit user confirmation before making that restructuring edit.

Status-aware checks

The RFC lifecycle has four statuses. Different sections are required — or forbidden — at each stage:

| Status | Delivery plan | RFC progress checklist | Shipped in: | Design-status tail |

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

| Draft | Outside the RFC | Absent | — | Open questions and/or decisions |

| Planned | Outside the RFC | Absent | — | Planned+ rule |

| In Progress | Tracked on the owning issue | Required | — | Planned+ rule |

| Implemented | Retained on the owning issue | Complete | Release version | Planned+ rule |

Existing In Progress and Implemented RFCs may retain an earlier inline plan for historical context. Preserve its evidence. The owning issue is authoritative for delivery work and the RFC checklist records progress.

Planned+ rule (Planned, In Progress, Implemented): the document must not contain a ## Unresolved questions heading. The design tail is ## Design Decisions only — remove or merge ## Unresolved questions at Draft → Planned (/bump-rfc).

Draft: may use ## Unresolved questions (open), ## Design Decisions (settled), or both. Keep roles honest (no open items under Design Decisions). May stay Draft with no open design work while review continues; do not invent questions.

HTML comment (Draft only): if ## Unresolved questions appears anywhere, include the EOF comment in Checklist 1; otherwise omit it.

Draft → Planned: nothing still open under ## Unresolved questions; ## Design Decisions holds the settled record; apply Planned+ rule via /bump-rfc.


Checklist 1 — Structural completeness (all statuses)


Checklist 2 — RFC cross-references (all statuses)


Checklist 3 — Formatting (all statuses)


Checklist 4 — Content quality (all statuses)


Checklist 5 — Confidentiality (all statuses)


Checklist 5b — RFC graph hygiene (all statuses)


Checklist 6 — Draft-specific


Checklist 7 — Planned-specific


Checklist 8 — In Progress-specific


Checklist 9 — Implemented-specific


Common issues found in practice

| Issue | Fix |

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

| [RFC NNN] reference links without definitions | Convert to plain text RFC NNN |

| Section named "Implementation plan" in a Draft or Planned RFC | Remove or defer to GitHub issue; keep only "Layers affected" |

| Missing issue plan or RFC checklist for In Progress | Apply /bump-rfc: record the plan on the issue and add the checklist to the RFC |

| Prose references specific files or functions (calls.rs, FunctionInfo, etc.) | State the design contract in the RFC and put delivery details on the owning issue |

| v1 / V1 phrasing such as "v1 does X" or "stable v1 renderer" | Replace with concrete RFC commitments or "a follow-up RFC may define X" future-extension framing |

| Hard-wrapped prose (lines ending mid-sentence) | Reflow each paragraph to a single line |

| Shipped in: filled for a Draft/Planned/In Progress RFC | Set to —; only fill once the feature is released |

| Shipped in: still — for an Implemented RFC | Fill with the actual release version |

| Missing "Layers affected" section | Add with affected layers from Parser, Typechecker, Lowering, Emission, Stdlib, Formatter, LSP |

| Planned+ still has ## Unresolved questions | Planned+ rule — fix via bump-rfc merge/rename steps |

| <!-- REVIEW: ... --> comment left in file | Address the comment and remove it |

| Internal project name mentioned | Replace with a generic description |

| Link to internal path (__strategy__/, research notes) | Remove the link; describe the concept inline |

| Code blocks untagged or wrongly tagged | Add incan language tag |

| One RFC mixes a general feature and a specific library proposal | Recommend split/supersession or justify the coupling explicitly |

| RFC file moved or status changed but docs index still points at old path | Update references and regenerate RFC snippets/index |

| Review flags Draft for "no open questions" | Valid during review; Draft rules above |


Issue creation

Only create an issue if one does not already exist. Always ask the user first.

Create the issue with gh issue create. Include at minimum: a one-paragraph summary, the motivation, and the path to the RFC document. Use the RFC label and any relevant area labels (incan language semantics, incan compiler, incan stdlib, incan tooling).

gh issue create \
  --title "RFC NNN: <Title>" \
  --label "RFC" \
  --body "..."

See .github/ISSUE_TEMPLATE/rfc_proposal.yml for the fields the template covers — use those as a guide for what to include in the body.

Once the issue is created, record its URL in the RFC's Issue: header field.


RFC lifecycle

| Status | Meaning | Trigger |

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

| Draft | Design and/or review in flight | New RFCs start here; may list open questions, or none while settled design awaits review before bump |

| Planned | Design settled; ready for implementation | Planned+ rule; review complete; user confirms (/bump-rfc) |

| In Progress | Active implementation underway | Implementation started; the issue carries the plan and the RFC carries the progress checklist (see /bump-rfc). |

| Implemented | Implementation complete and shipped | All checklist items checked, Shipped in: filled, release notes updated (use /bump-rfc) |

Use the /bump-rfc skill to perform status transitions correctly.

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.