setup-codebase
Skill4 starsChanged 2 months agoMITView on GitHub
Use when a user asks to set up, initialize, or bootstrap a repository for coding agents, especially when one or more of AGENTS.md, CLAUDE.md, docs/llm/, or repository-specific conventions is missing.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- asta-nguyen/kamehadbedited, first seen Oct 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- asta-nguyen/kamehadb★ 14100% same
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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-skillsSkill
- brainstorm-featureSkill
- context-handoffSkill
- document-wikiSkill
- estimate-featureSkill
- implement-taskSkill
- lean-auditSkill
- plan-featureSkill
- read-codebase-contextSkill
- review-and-verifySkill
- setup-openezSkill
- systematic-debuggingSkill
- using-devkitSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create context with repository-reading, not a static file template.
- Very specific: line 19
Check the exact status of AGENTS.md, CLAUDE.md, CONVENTIONS.md, docs/llm/, and .gitignore.
- Very specific: line 25
If context is missing, inspect only enough evidence to ground it: README*, root/workspace manifests, task scripts, environment examples, …
- Distinctive: line 30
Write only missing files from that evidence:
- Very specific: line 37
If a skills/ or .agents/skills folder exists in the repository, add a ## Skills section listing each skill by name with its SKILL.md path …
- Very specific: line 40
If docs/llm/ exists or is created, add a ## Documentation section:
- Very specific: line 68
Create wiki category folders (architecture/, domains/, workflows/, integrations/, operations/, or decisions/) only when document-wiki has a …
- Distinctive: line 73
Every claim must have a repository source.
- Very specific: line 93
If no stored convention is found, read references/convention-capture.md before capturing conventions after evidence gathering.
- Very specific: line 96
Check whether OpenEZ is available (openez command or MCP server).
- Very specific: line 101
If it is not available, continue without it.
- Very specific: line 105
Use the section in setup-openez's ## Code intelligence block.
- Very specific: line 107
Keep local Obsidian and OpenEZ state out of Git.
- Distinctive: line 118
Check whether matching files are already tracked.
- Distinctive: line 126
Do not restore files from Git.
- Very specific: line 128
Use standard relative Markdown links for internal wiki links, following the shared link rule in using-devkit.
- Very specific: line 131
Do not document features here.
- Very specific: line 132
Run git diff --check. Report distinct created, updated, and kept lists, tracked local artifacts, and the evidence paths used.
≈ “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
Setup Codebase
Create context with repository-reading, not a static file template. Existing context belongs to the project: never overwrite or shorten it.
Pick the mode before step 1; this guard runs before any write.
| Mode | Caller | What to run |
| Inline wiki | document-wiki | Only the docs/llm/ skeleton part of step 3; read back the created wiki files and return. Do not create or update AGENTS.md, CLAUDE.md, or CONVENTIONS.md, capture conventions, query OpenEZ, change .gitignore, or run other steps. |
| Code task | using-devkit, brainstorm-feature, or plan-feature | Create only necessary missing repository context; skip the wiki skeleton unless wiki setup was requested. An existing wiki stays available for document-wiki's ## Task updates. |
| Direct | The user asks for setup | The full procedure; run step 4's preflight before step 3 writes anything. |
- Check the exact status of
AGENTS.md,CLAUDE.md,CONVENTIONS.md,docs/llm/, and.gitignore. Read every existing context or conventions file before writing anything. If the repository has no application source and an approved design exists asdesign.mdin adocs/agent-devkit/changes/folder (or a legacy spec underdocs/agent-devkit/specs/), read it before writing context. - If context is missing, inspect only enough evidence to ground it:
README*, root/workspace manifests, task scripts, environment examples, CI/config, top-level source layout, and any approved design from the previous step. Do not install dependencies, start services, or infer facts from filenames alone. Write only missing files from that evidence:
AGENTS.md: concise purpose, relevant layout, verified commands, explicit conventions/gotchas, and verification. Omit unknown sections. For a source-less new project, the approved design establishes intended purpose and planned layout only; do not claim unimplemented behavior or commands as verified. If askills/or.agents/skillsfolder exists in the repository, add a## Skillssection listing each skill by name with itsSKILL.mdpath so every agent platform can discover them. Ifdocs/llm/exists or is created, add a## Documentationsection:## Documentation The verified codebase wiki is at `docs/llm/INDEX.md`. For behavior, workflow, or domain questions: 1. Read `docs/llm/INDEX.md`. 2. Open the relevant wiki page. 3. Verify important claims against current source and tests. The wiki describes verified behavior only; source and tests remain authoritative.CLAUDE.md: a short repository-specific pointer toAGENTS.md; include extra instructions only when local evidence establishes them.docs/llm/: for direct setup or wiki-only inline calls, create the wiki skeleton withAGENTS.mdandINDEX.md; skip for a code-task call without an explicit wiki-setup request. The generatedAGENTS.mdmust matchdocument-wiki's current-source verification rules, distinguish verification limits from confirmed content gaps, and state that any existing log is legacy, not read or written and not used for freshness. It must also state that feature pages usedocument-wiki's requirement format and the## Requirement prefixesregistry inINDEX.md, without restating the format. Do not createLOG.md. If a legacyLOG.mdalready exists, preserve it byte-for-byte without reading or updating it. Create wiki category folders (architecture/,domains/,workflows/,integrations/,operations/, ordecisions/) only whendocument-wikihas a real page to place there; do not add placeholder pages just to preserve empty directories.
Every claim must have a repository source. If evidence is insufficient, state an open question instead of inventing a rule.
In a direct
setup-codebaseinvocation, inspect bothAGENTS.mdand the rootCONVENTIONS.mdbefore deriving anything:- First compare both files for populated convention sources. A populated
conventions section in
AGENTS.mdplus a populatedCONVENTIONS.mdis a source-of-truth conflict; report both paths, ask the user how to resolve it, and write nothing. - Recognize
Read CONVENTIONS.md before editing.as the exact split-storage pointer. A missing pointer target, an empty target, a populatedCONVENTIONS.mdwithout that pointer, or any other existing-file collision is a conflict; report the exact paths, ask the user how to resolve it, and write nothing. - A valid pointer plus a populated
CONVENTIONS.mdis already canonical and must be skipped without writing. - Otherwise, a heading matching, case-insensitively,
convention|working rules|standards|style|guidelines|change shapewhose content contains at least one repository-specific rule means conventions are already present; report the match and skip capture. - If no stored convention is found, read
references/convention-capture.mdbefore capturing conventions after evidence gathering.
- First compare both files for populated convention sources. A populated
conventions section in
- Check whether OpenEZ is available (
openezcommand or MCP server). If it is available, note it inAGENTS.mdunder a## Code intelligencesection as the optional Locate → Expand → Confirm → Read path below. IfAGENTS.mdwas created in this run, include the section there. If it already existed, present the exact proposed lines and wait for approval before adding them. If it is not available, continue without it. Mention optionalsetup-openezonly when direct search cannot establish a needed semantic or cross-module relationship. Do not recommend it by repository size, or install or runopenez setupsilently. Use the section insetup-openez's## Code intelligence block. Keep local Obsidian and OpenEZ state out of Git. Create
.gitignorewhen it is missing, or append only these missing lines without reordering, normalizing, or duplicating existing content:/docs/.obsidian/ /docs/Untitled*.md /docs/Untitled*.canvas .openez/Check whether matching files are already tracked. If they are, report their paths; never run
git rm --cachedor otherwise untrack them.- Preserve existing context files byte-for-byte. The additive
.gitignoreupdate in step 6 is the only automatic edit to an existing file. ACode intelligencesection may be included in a newAGENTS.mdcreated during this run or added to an existing one only after user approval. The conventions section orAGENTS.mdpointer from step 4 may also be written only after user approval. Do not restore files from Git. Read back every created or changed file before reporting it. - Use standard relative Markdown links for internal wiki links, following the
shared link rule in
using-devkit. Use## Sourcesfor evidence and## Relatedwhen a related page exists. Do not document features here;document-wikiowns that. - Run
git diff --check. Report distinctcreated,updated, andkeptlists, tracked local artifacts, and the evidence paths used.
Quick reference
| File | When to create | Key content |
AGENTS.md | Missing | Purpose, layout, commands, conventions, gotchas, skills list, wiki entry point |
| Repository conventions | Missing repository-specific rules | Evidence-backed ## Conventions in AGENTS.md or root CONVENTIONS.md |
CLAUDE.md | Missing | Pointer to AGENTS.md + repo-specific instructions |
docs/llm/AGENTS.md | Missing | Wiki evidence and maintenance rules |
docs/llm/INDEX.md | Missing | Navigable entry point |
docs/llm/architecture/overview.md | document-wiki baseline-map output | Source-grounded repository orientation |
docs/llm/{architecture,domains,workflows,integrations,operations,decisions}/ | document-wiki has a real page for that category | Evidence-backed wiki categories; never create placeholder folders |
.gitignore | Setup | Add only missing local Obsidian and OpenEZ rules |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

