SKILL.md · 24000
.md, CODEOWNERS, AGENTS.md/CLAUDE.md, VISION.md`, …):
O=OWNER R=REPO N=PROJECT_NAME D=$(date +%F)
sed -i "s|OWNER_USERNAME|$O|g; s|OWNER/REPO|$O/$R|g; s|PROJECT_NAME|$N|g; s|YYYY-MM-DD|$D|g" \
.github/ISSUE_TEMPLATE/config.yml README.md SECURITY.md .github/CODEOWNERS AGENTS.md
- Replace
OWNER_USERNAMEbeforeOWNER/REPO— the former contains theOWNERprefix, so order matters with naivesed. - Only
config.yml,README*.md,SECURITY.md,CODEOWNERS,AGENTS.md/CLAUDE.md,VISION.md,CHANGELOG.mdcarry placeholders; the issue forms, PR template, CI workflows, and CoC are placeholder-free. - CI templates need no substitution, but translate their human-facing text if the user chose a non-English language.
Rules of thumb
- Idempotent: every module can run twice with the same result.
- Never clobber user content: diff first, ask before overwriting customized files.
- Auth first: no token, no action — tell the user how to log in, never guess.
- Dry-run before destructive ops: rulesets, branch rules, label deletion, visibility changes.
- Confirm scope: org/private repos and anything the user didn't explicitly name.
Templates
All templates live in templates/:
labels.json, LABELS.md, config.yml, issue-form-bug.yml,
issue-form-feature.yml, issue-form-question.yml, PR_TEMPLATE.md,
ci-node.yml, ci-python.yml, ci-go.yml, ci-rust.yml, CODEOWNERS,
CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, CLAUDE.md,
AGENTS.md, VISION.md, CHANGELOG.md, templates/README.md,
templates/README.zh.md.