rfc
SkillDocs & knowledgeCreate a new RFC document from template with auto-numbering
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the rfc skill
What this skill tells your AI
The instructions your AI receives, as published by rlajous/claude-code-commands in skills/rfc/SKILL.md and read by ahel’s review.
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
$ARGUMENTSis 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-*.mdand 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:
| Placeholder | Replacement |
|---|---|
RFC-NNN | RFC-{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
| Scenario | Action |
|---|---|
| No title provided | Ask the user for a title |
| Template file missing | Error: "RFC template not found at docs/rfcs/RFC_TEMPLATE.md. Please ensure the template exists." |
| File already exists | Ask: "RFC file already exists. Overwrite or choose a different title?" |
| Invalid characters in title | Strip invalid characters and confirm with user |
Signals
- GitHub stars
- 30
- Forks
- 2
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
rfc-rlajous- Source
- github.com/rlajous/claude-code-commands