llp-init-retrofit
Skill16 starsChanged 3 months agoMITView on GitHub
Add LLP to an existing repository by surveying the codebase and docs, drafting the root LLP, and proposing a phased adoption and annotation plan.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llp-createSkill
- llp-grillSkill
- llp-initSkill
- llp-listSkill
- llp-reviewSkill
- ref-checkSkill
- ref-storySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 13 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user wants to adopt LLP in an existing repository with meaningful code, documentation, or history.
- Distinctive: line 14
Read LLP 0000 for the core LLP conventions and LLP 0002 for the retrofit workflow before making changes.
- Very specific: line 24
Read the top-level README and notable documentation
- Distinctive: line 27
Check for existing design docs, ADRs, RFCs, wiki exports, or architecture notes
- Very specific: line 34
If an llp/ tree already exists, do not blindly create a second setup layer
- Distinctive: line 35
If partial LLP adoption exists, extend it rather than restarting from scratch
- Distinctive: line 36
If agent instructions already mention LLP, update them instead of duplicating guidance
- Distinctive: line 40
Create or revise the root LLP so it acts as the entry point for the codebase:
- Distinctive: line 70
Only create additional LLPs immediately if the user asks.
- Distinctive: line 74
Add LLP guidance to AGENTS.md, CLAUDE.md, or the repo's equivalent:
- Very specific: line 78
add @ref annotations when implementing non-obvious documented decisions
- Distinctive: line 79
update LLPs when the design evolves
- Distinctive: line 91
Do not mass-annotate the whole repository unless the user explicitly asks.
- Distinctive: line 95
Do not treat retrofit as a one-shot conversion of the full history.
- Distinctive: line 96
Do not generate rationale from code alone without making it clear where you are inferring.
- Distinctive: line 97
Do not overwrite existing docs or instructions without checking whether they already carry useful project-specific guidance.
≈ “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
llp-init-retrofit
Use this skill when the user wants to adopt LLP in an existing repository with meaningful code, documentation, or history. This is the retrofit workflow described in LLP 0002.
Invoke as /llp-init-retrofit.
Ground rules
- Read LLP 0000 for the core LLP conventions and LLP 0002 for the retrofit workflow before making changes.
- Existing code and docs are source material. Convert or update valuable rationale; do not discard it casually.
- Retrofitting is phased. The first pass should create orientation and a plan, not attempt to annotate the entire repository.
Workflow
1. Survey the existing repository
Build a high-level map before creating LLPs:
- Read the top-level
READMEand notable documentation - Inspect the directory structure and major packages/modules
- Identify entry points, boundaries, and obvious subsystems
- Check for existing design docs, ADRs, RFCs, wiki exports, or architecture notes
- Optionally inspect recent git history if it helps identify active and stable areas
The output of this step should be a concise architecture summary and an initial subsystem list.
2. Check whether LLP already exists
- If an
llp/tree already exists, do not blindly create a second setup layer - If partial LLP adoption exists, extend it rather than restarting from scratch
- If agent instructions already mention LLP, update them instead of duplicating guidance
3. Draft LLP 0000
Create or revise the root LLP so it acts as the entry point for the codebase:
- Usually
llp/0000-<project-slug>.explainer.md **Type:** Explainer**Role:** Root- Metadata that matches the current project
- Sections covering:
- what the system does
- major subsystems
- cross-cutting constraints or invariants
- where a new contributor or agent should look first
This document should reduce cold-start cost for someone reading the repo for the first time.
4. Propose the first subsystem LLPs
Identify the 2-5 highest-value follow-on LLPs based on:
- active development
- frequent confusion or bugs
- non-obvious design choices
- cross-cutting invariants
For each proposed LLP, provide:
- provisional title
- likely type
- systems tags
- why it should exist
Only create additional LLPs immediately if the user asks.
5. Add or update agent instructions
Add LLP guidance to AGENTS.md, CLAUDE.md, or the repo's equivalent:
- LLP documents exist and where they live
- agents should read relevant LLPs before modifying covered areas
- add
@refannotations when implementing non-obvious documented decisions - update LLPs when the design evolves
- flag mismatches between code and referenced LLPs
6. Recommend an annotation rollout plan
Propose a phased adoption plan:
- Module-level references for the first few documented subsystems
- Function-level references for non-obvious design points
- Ongoing boy-scout-rule maintenance
- Validation tooling once the corpus is large enough
Do not mass-annotate the whole repository unless the user explicitly asks.
Scope limits
- Do not treat retrofit as a one-shot conversion of the full history.
- Do not generate rationale from code alone without making it clear where you are inferring.
- Do not overwrite existing docs or instructions without checking whether they already carry useful project-specific guidance.
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.

