agentleFS
rlajousrlajous/claude-code-commands/skills/rfc/SKILL.md

rfc

Skill30 starsChanged 3 months agoMITView on GitHub

Create a new RFC document from template with auto-numbering

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use research.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If $ARGUMENTS is empty or not provided, use the active host user-input mechanism to prompt: "What is the title for this RFC?

    line 18
  2. Distinctive:

    If invalid characters are found, strip them and confirm with the user

    line 20
  3. Very specific:

    If no existing RFCs found, start at 001

    line 40
  4. Very specific:

    If existing RFCs found, extract the highest NNN from rfc-NNN-*.md and increment by 1

    line 41
  5. Distinctive:

    Remove special characters (keep alphanumeric and hyphens)

    line 50
  6. Very specific:

    Read the template from docs/rfcs/RFC_TEMPLATE.md and replace placeholders:

    line 79
  7. Very specific:

    Write the customized content to docs/rfcs/rfc-{NNN}-{kebab-title}.md.

    line 97

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cross-runtime: follow runtime compatibility for invocation, delegation, configuration precedence, state paths, and permissions.

You are helping create a new RFC (Request for Comments) document. Your task is to generate a properly numbered RFC file from the template with pre-filled metadata.

Step 1: Parse Arguments

Extract the RFC title from $ARGUMENTS.

  • If $ARGUMENTS is empty or not provided, use the active host user-input mechanism to prompt: "What is the title for this RFC? (e.g., 'add deploy command', 'config schema v2')"
  • Validate the title contains only alphanumeric characters, spaces, and hyphens
  • If invalid characters are found, strip them and confirm with the user

Step 2: Auto-Determine RFC Number

Scan for existing RFC files to determine the next number:

# Find existing RFCs and determine next number
latest=$(ls docs/rfcs/rfc-*.md 2>/dev/null | sort -V | tail -1)
if [ -n "$latest" ]; then
  current=$(basename "$latest" | sed 's/rfc-\([0-9]*\)-.*/\1/')
  next=$((10#$current + 1))
else
  next=1
fi
printf -v rfc_num "%03d" $next

Logic:

  • If no existing RFCs found, start at 001
  • If existing RFCs found, extract the highest NNN from rfc-NNN-*.md and increment by 1
  • Zero-pad to 3 digits (001, 002, ..., 999)

Step 3: Generate Filename

Convert the title to a kebab-case filename:

  • Convert to lowercase
  • Replace spaces with hyphens
  • Remove special characters (keep alphanumeric and hyphens)
  • Collapse multiple hyphens into one
  • Trim leading/trailing hyphens
kebab_title=$(echo "$title" \
  | tr '[:upper:]' '[:lower:]' \
  | sed 's/[^a-z0-9 -]//g' \
  | tr ' ' '-' \
  | sed 's/-\{2,\}/-/g; s/^-//; s/-$//')

Result: rfc-${rfc_num}-${kebab_title}.md

Examples:

  • "Add Deploy Command" -> rfc-001-add-deploy-command.md
  • "Config Schema v2" -> rfc-002-config-schema-v2.md

Step 4: Create Directory

Immediately before creating anything, show the RFC number, title, author, and final file path. Ask for explicit confirmation to create the directory and RFC file. Do not treat automatic skill invocation or title confirmation as approval for the write.

mkdir -p docs/rfcs

Step 5: Copy and Customize Template

Read the template from docs/rfcs/RFC_TEMPLATE.md and replace placeholders:

PlaceholderReplacement
RFC-NNNRFC-{number} (e.g., RFC-001)
[Title]The user-provided title
[Month Year]Current month and year (e.g., March 2026)
[Your name or team name]Result of $AUTHOR (see below)

Resolve the author name with a fallback:

AUTHOR="$(git config user.name 2>/dev/null)"
if [ -z "$AUTHOR" ]; then
  # Ask: "Could not detect git user name. What name should be used as the RFC author?"
fi

Write the customized content to docs/rfcs/rfc-{NNN}-{kebab-title}.md.

Step 6: Confirm

Output a confirmation message:

Created RFC: docs/rfcs/rfc-{NNN}-{kebab-title}.md
Author: {git user name}
Date: {month year}

Next steps:
1. Edit the RFC to fill in the sections
2. Create a PR with the RFC for review
3. Request review from maintainers
4. See docs/rfcs/RFC_BEST_PRACTICES.md for guidelines

Error Handling

ScenarioAction
No title providedAsk the user for a title
Template file missingError: "RFC template not found at docs/rfcs/RFC_TEMPLATE.md. Please ensure the template exists."
File already existsAsk: "RFC file already exists. Overwrite or choose a different title?"
Invalid characters in titleStrip invalid characters and confirm with user

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.