write-rfc
Skill9 starsChanged 5 months agoApache-2.0View on GitHub
Sanook drafts an engineering RFC / design doc / technical proposal for a non-trivial change — motivation, proposed design, alternatives, tradeoffs, rollout/migration, risks, and open questions — structured for team review and sign-off.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kaiitunnz/claude-skillstheir own version, first seen Sep 8, 2026
- JonnyCBB/claude-code-configtheir own version, first seen Sep 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kaiitunnz/claude-skills★ 1same name
- JonnyCBB/claude-code-config★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository147 other files it gives its agents.
- second-brain/AGENTS.mdAGENTS.md
- second-brain/CLAUDE.mdCLAUDE.md
- agent-tool-mcp-builderSkill
- api-design-reviewSkill
- async-concurrency-correctnessSkill
- audit-accessibility-wcagSkill
- audit-license-complianceSkill
- audit-technical-seoSkill
- auth-jwt-sessionSkill
- author-codemodSkill
- brainstorm-designSkill
- build-audit-loggingSkill
- build-cdc-streaming-pipelineSkill
- build-cli-toolSkill
- build-data-tableSkill
- build-etl-pipelineSkill
- build-form-validationSkill
- build-native-mobile-uiSkill
- build-office-docsSkill
- build-offline-first-syncSkill
- build-react-componentSkill
- build-realtime-channelSkill
- build-spreadsheetSkill
- build-vector-searchSkill
- caching-strategySkill
- cicd-pipeline-authorSkill
- cloud-cost-optimizeSkill
- code-commentsSkill
- code-reviewSkill
- compose-local-dev-stackSkill
- configure-bundler-buildSkill
- configure-dns-tlsSkill
- configure-reverse-proxy-lbSkill
- configure-security-headers-cspSkill
- contract-testingSkill
- datetime-timezone-correctnessSkill
- db-migration-safetySkill
- debug-ci-pipeline-failureSkill
- debug-flaky-testsSkill
- debug-frontend-browserSkill
- debug-root-causeSkill
- defend-llm-prompt-injectionSkill
- deliver-webhooksSkill
- dependency-upgradeSkill
- deploy-releaseSkill
- design-api-paginationSkill
- design-authorization-modelSkill
- design-backup-dr-recoverySkill
- design-event-sourcing-cqrsSkill
- design-multi-tenancySkill
- design-protobuf-grpc-serviceSkill
- design-relational-schemaSkill
- design-search-index-infraSkill
- design-state-machineSkill
- design-token-systemSkill
- diff-table-paritySkill
- distributed-locks-leasesSkill
- dockerfile-optimizeSkill
- encrypt-sensitive-dataSkill
- error-messageSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use for a non-trivial change that needs review before building: a new service, a cross-cutting refactor, a data migration, an API redesign, …
- Distinctive: line 11
Do NOT use when:
- Distinctive: line 53
Describing the solution before the problem: If Motivation/Goals are weak, reviewers argue about the design forever.
- Distinctive: line 58
RFC that's actually an ADR: If there's only one option and the decision is made, you're padding a 1-page ADR into 5 pages.
- Distinctive: line 64
Before declaring the RFC ready for review, confirm:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
Use for a non-trivial change that needs review before building: a new service, a cross-cutting refactor, a data migration, an API redesign, a build-vs-buy decision. Reach for this when the change touches multiple teams/systems, is expensive to reverse, or has > 1 viable approach worth comparing.
Do NOT use when:
- The decision is already made and you just need to record what and why → write an ADR (single decision, ~1 page), not an RFC.
- The change is a one-liner you can describe in a PR description → just open the PR.
- It's a pure incident/postmortem → use a postmortem template.
An RFC is bigger than an ADR: it explores the solution space and asks reviewers to choose. An ADR records one locked decision. If an RFC locks a sub-decision, spawn an ADR for it and link.
Steps
- Locate the repo's RFC convention first. Look for an existing
docs/rfc/,rfcs/, ordocs/adr/dir and copy the latest file's structure, numbering, and frontmatter. Match the team's house style over this template. New file:docs/rfc/NNNN-kebab-title.mdwhereNNNN= (highest existing number + 1), zero-padded. If no convention exists, createdocs/rfc/0001-<title>.md. - Write the metadata header (status drives review):
RFC #,Title,Author(s),Status: Draft(lifecycle: Draft → In Review → Accepted / Rejected / Superseded),Createddate,Reviewers(named, not "the team"),Related:links to prior RFCs/ADRs/issues. - Lead with a TL;DR / Summary (3-5 sentences max): what you're proposing, the one recommended option, and why now (the forcing function — what breaks or gets blocked if we don't). A reviewer who reads only this paragraph should know what they're approving.
- Motivation — state the concrete problem with evidence (a metric, an incident, a scaling limit, a recurring support load), not "it would be nice." Then Goals and Non-Goals as two explicit bullet lists. Non-Goals is the highest-leverage section for killing scope-creep arguments in review — name what's deliberately out.
- Proposed Design — the recommended option, in enough detail to estimate and critique:
- Architecture / data flow. Add a
mermaiddiagram when components or sequence matter:flowchart LR Client --> API --> Queue --> Worker --> DB - API / schema / interface changes — show the actual signatures, table DDL, or message shapes.
- Key behaviors, failure modes, and concurrency/consistency assumptions.
- Architecture / data flow. Add a
- Alternatives Considered — at least 2 real options (one is usually "do nothing / status quo"). For each: a one-line description + why not chosen. Reviewers trust a recommendation more when they see the rejected paths. This is the section that separates an RFC from a spec.
- Tradeoffs — a comparison table across the live options on the axes that matter here (e.g. complexity, cost, latency, migration effort, blast radius, lock-in). Pick axes specific to this decision; don't ship a generic grid.
- Migration / Rollout — ordered, runnable steps: feature flag → backfill → dual-write/shadow → cutover → cleanup. State the backout plan (how to revert at each phase) and whether each step is reversible. Note data backfill and any irreversible point-of-no-return explicitly.
- Risks & Mitigations — table of
Risk | Likelihood | Impact | Mitigation. Include the failure that keeps you up at night, not just easy ones. - Security & Performance Impact — new attack surface, authz/data-exposure changes, PII handling, new dependencies; expected latency/throughput/cost delta and how you'll measure it. If the change touches auth, input handling, or secrets, say so loudly here so reviewers route it to a security pass.
- Open Questions — honest unknowns you want input on. An RFC with zero open questions usually means you haven't thought hard enough.
- Decisions Needed — end with a numbered list of explicit asks: each item = a question + the options + your recommendation, phrased so a reviewer can reply "approve #1, #3; let's discuss #2." This is what unblocks sign-off; don't bury it.
Common Errors
- Describing the solution before the problem. If Motivation/Goals are weak, reviewers argue about the design forever. Lock the problem statement first.
- Strawman alternatives. Listing options you obviously dismiss signals you didn't really explore. Each alternative needs a plausible reason someone would pick it, then your honest why-not.
- No backout plan. "We'll roll forward" is not a plan. Every migration phase needs a documented revert path; flag irreversible steps in bold.
- Generic tradeoff table. A grid of complexity/cost/maintainability that could apply to any RFC adds nothing. Choose axes that actually differ between these options.
- Vague ownership. "Reviewers: the team" and "Author: TBD" stall sign-off. Name people. "Decisions needed" with no recommendation forces reviewers to do your synthesis.
- RFC that's actually an ADR. If there's only one option and the decision is made, you're padding a 1-page ADR into 5 pages. Downgrade it.
- Mermaid that doesn't render. Wrong fence (
```mermaid), orflowchart/sequenceDiagramtypos break the diagram silently in the doc viewer. Paste-test before shipping. - Letting status go stale. A doc stuck on
Status: Draftafter it shipped misleads future readers. Update to Accepted/Superseded on resolution.
Verify
Before declaring the RFC ready for review, confirm:
- A reviewer can read only the TL;DR and know what they're approving and why now.
- Goals AND Non-Goals are both present and explicit.
- ≥ 2 alternatives each have a concrete why-not (status quo counts as one).
- Tradeoff table uses axes specific to this decision, not boilerplate.
- Migration section has a backout/revert path, with irreversible steps flagged.
- Security & performance impact is addressed (even if "none, because…").
- Doc ends with a numbered "Decisions Needed" list, each with a recommendation.
- Any mermaid diagram renders (correct fence + valid syntax).
- Every locked sub-decision links to (or spawns) an ADR; metadata names real author + reviewers and
Status. - File lives under the repo's RFC dir with correct sequential numbering and matches the house template if one exists.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

