upgrade-repo
Skill0 starsChanged 17 days agoMITView on GitHub
Audit an existing project and upgrade it to the setup-repo agentic scaffold plus compliance package. Runs dry-run by default. Applies only after explicit GO confirmation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- protokol11/skillsword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- protokol11/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repositoryOne other file it gives its agents.
- setup-repoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Before handing a legacy project to explore/plan/coder/tester/fixer subagents.
- Distinctive: line 20
Explore+audit: read the project and report scaffold, compliance, and structure gaps.
- Distinctive: line 24
Drill: ask the user one question at a time about project purpose, stack, and the meaning of existing files.
- Distinctive: line 28
Render: call the renderer for the compliance package.
- Distinctive: line 39
Apply: only after explicit user confirmation (GO).
- Very specific: line 40
Create a backup: git commit chore: pre-upgrade snapshot.
- Very specific: line 41
If no git, copy the project to .archive/upgrade-<timestamp>/.
- Very specific: line 42
Run setup-repo/scripts/scaffold.ps1 -ProjectPath <path> -OnlyMissing -SkipGit to create missing files.
- Very specific: line 44
Keep the compliance pointer in AGENTS.md (## Compliance).
- Distinctive: line 50
Do not silently overwrite existing project-specific content.
- Very specific: line 51
If .docs/PLAN.md exists but is non-canonical, migrate its sections to Now/Next/Backlog/Done (stop for user confirmation.
- Distinctive: line 55
Verify: run the verification commands from the plan/spec.
- Distinctive: line 56
Check every acceptance criterion.
- Distinctive: line 68
Use merge strategy for existing files.
- Distinctive: line 69
Do not refactor application code.
- Very specific: line 71
When migrating or touching PLAN.md item titles, follow NAMING.md — a short task name in plain language, no log/status/code/paths.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
upgrade-repo
Upgrade an existing project to the setup-repo agentic scaffold and compliance package.
When to use
- Existing project lacks
CLAUDE.md,CONTEXT.md,AGENTS.md,.pi/,.docs/PLAN.md,.docs/CURRENT_STATUS.md,.docs/violations/, or.docs/sessions/. - Project has grown organically and needs a predictable agentic workflow.
- Before handing a legacy project to
explore/plan/coder/tester/fixersubagents. - A catalog version bump requires re-stamping the compliance package.
Steps
- Explore+audit: read the project and report scaffold, compliance, and structure gaps.
- Output:
AUDIT.mdwith a gap list against setup-repo acceptance criteria. - Gaps: missing files, outdated sessions path, missing violations folder, missing role prompts, missing verification commands, non-canonical
.docs/PLAN.md.
- Output:
- Drill: ask the user one question at a time about project purpose, stack, and the meaning of existing files.
- Capture resolved terms as pointers in
CONTEXT.md. - Completion: you resolve unclear terms and document them.
- Capture resolved terms as pointers in
- Render: call the renderer for the compliance package.
- Command:
node ~/.agents/skills/principles-render/render.mjs --out <tmp-render-dir>. - Completion: temp directory contains
role-prompts/*.md,lint-rules.md,spec-template.md.
- Command:
- Plan: write
upgrade-plan.md.- Include: files to create, files to merge, files to skip.
- Classify every change as low, medium, or high risk.
- State why for each item.
- High-risk changes stop for user confirmation.
- Irreversible changes require a design-first ADR.
- Apply: only after explicit user confirmation (GO).
- Create a backup: git commit
chore: pre-upgrade snapshot. - If no git, copy the project to
.archive/upgrade-<timestamp>/. - Run
setup-repo/scripts/scaffold.ps1 -ProjectPath <path> -OnlyMissing -SkipGitto create missing files. - Regenerate
AGENTS.mdandCLAUDE.mdfully by merging the currentsetup-repotemplates with project facts. - Keep the compliance pointer in
AGENTS.md(## Compliance). Do not stamp a must-card; the principle catalog is the source. - Re-sync the standard header blocks from
setup-repotemplates so template updates propagate:AGENTS.md: replace the# <name> — Session Rulestitle and the conflict-preamble paragraph with the currenttemplates/root/AGENTS.mdversions (substitute{{PROJECT_NAME}}).AGENTS.md: re-sync these sections verbatim fromtemplates/root/AGENTS.mdwhen the project predates them (project-specific content inside them is preserved by the project, not by the template):## Context discipline,## Subagent-first pipeline (default for implementation),## Session state. Skip sections the project deliberately dropped.
AGENTS.md: re-sync the## Core principlessection verbatim fromtemplates/root/AGENTS.md(catalog top-10; bump the section with the catalog, not by hand).CLAUDE.md: list the compliance links under## Related; do not repeat the catalog.
- Do not silently overwrite existing project-specific content.
- If
.docs/PLAN.mdexists but is non-canonical, migrate its sections to Now/Next/Backlog/Done (stop for user confirmation; never delete content). - Stamp
.docs/violations/lint-rules.mdand.docs/violations/audit-log.md. - Move existing
sessions/root folder to.docs/sessions/if present.
- Create a backup: git commit
- Verify: run the verification commands from the plan/spec.
- Check every acceptance criterion.
- Confirm
.docs/violations/audit-log.mdandlint-rules.mdexist. - Confirm
.docs/sessions/exists and rootsessions/does not. - Confirm the
AGENTS.mdheader matchessetup-repotemplates: title# <name> — Session Rules, the concrete conflict preamble, and the## Communication,## Language,## Code comments,## Context discipline,## Subagent-first pipeline (default for implementation), and## Session statesections. - Re-check
AGENTS.mdvsCLAUDE.mdfor duplicated content. A block copied into both is a DRY violation — keep shared content in one file and reference it from the other.
- Update status: refresh
.docs/CURRENT_STATUS.mdwith the upgrade result.- Link to
AUDIT.md,upgrade-plan.md, and the catalog version.
- Link to
Conventions
- Language: all documents and code terms are English. Chat replies are Russian. Author quotes stay verbatim in
> «...». - Use merge strategy for existing files. Never replace without user confirmation.
- Do not refactor application code. This skill is for agentic setup only.
- Reuse setup-repo templates from
~/.agents/skills/setup-repo/templates/. - When migrating or touching PLAN.md item titles, follow
NAMING.md— a short task name in plain language, no log/status/code/paths. Never touch the trailing<!-- id: slug -->. - High-risk or irreversible changes stop and ask.
Output
An upgraded project with agentic scaffold, compliance package, AUDIT.md, and upgrade-plan.md.
Reference
See REFERENCE.md for the workflow and risk classes.
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.

