kb-add-folder
Skill0 starsChanged 29 days agoMITView on GitHub
Add a new top-level KB folder, enforcing the growth rules in CONVENTIONS.md and updating the routing guide. Use when the user asks for a new folder or content category, or content fits no existing folder.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-entrySkill
- add-todoSkill
- complete-todoSkill
- deadlinesSkill
- financeSkill
- financial-summarySkill
- kb-archiveSkill
- kb-auditSkill
- kb-promoteSkill
- kbSkill
- kb-synthesizeSkill
- meetingSkill
- studySkill
- study-statusSkill
- study-unstudiedSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Do they not fit existing folders?
- Distinctive: line 14
If any fails, report to user with specifics and stop.
- Very specific: line 15
Create the folder: mkdir -p <folder-name>.
- Very specific: line 16
Write <folder-name>/README.md with frontmatter type: folder, description: (≤120 chars, rule-not-summary — describes the folder's purpose as …
- Very specific: line 18
Add an entry under types: in schema/kb-schema.yaml with required fields, extra_fields, status_values, body_required_sections.
- Very specific: line 19
Add new enums to enums: if needed.
- Very specific: line 20
Create schema/templates/<type>.md with frontmatter (including description: placeholder with inline example) + required section skeleton.
- Distinctive: line 21
Update CONVENTIONS.md §"Folder layout" table with the new folder row.
- Distinctive: line 23
Add a row to the "Where does this piece of content go?" table.
- Distinctive: line 24
Add to "Common queries" if applicable.
- Distinctive: line 26
Commit(s) — prefer multiple atomic commits:
≈ “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
/kb-add-folder
- Acquire
runs/.lock. - Confirm growth-rule compliance per CONVENTIONS § "Growth rules" (values are the named constants in that section):
- Are there at least
NEW_FOLDER_MIN_FILESexisting files (committed or drafted) that fit this category? - Do they not fit existing folders? (Re-check AGENT-GUIDE.md routing table before saying "no.")
- Is this a STRUCTURAL difference (new file type, new lifecycle, new required sections) OR just a topic tag?
- Can the new
<folder>/README.md(rules + purpose) be written withinNEW_FOLDER_INDEX_MAX_LINESwithout hand-waving? If any fails, report to user with specifics and stop. Do not create the folder.
- Are there at least
- Create the folder:
mkdir -p <folder-name>. - Write
<folder-name>/README.mdwith frontmattertype: folder,description:(≤120 chars, rule-not-summary — describes the folder's purpose as a stable rule). Body: purpose, naming, structure, frontmatter requirements, when-written, pointer to CONVENTIONS for rules and INDEX.md for entries. - If a new file type is introduced:
- Add an entry under
types:inschema/kb-schema.yamlwith required fields, extra_fields, status_values, body_required_sections. - Add new enums to
enums:if needed. - Create
schema/templates/<type>.mdwith frontmatter (includingdescription:placeholder with inline example) + required section skeleton. - Update CONVENTIONS.md §"Folder layout" table with the new folder row.
- Add an entry under
- Update AGENT-GUIDE.md:
- Add a row to the "Where does this piece of content go?" table.
- Add to "Common queries" if applicable.
- Regenerate INDEXes:
python3 scripts/rebuild-indexes.py. Creates<folder-name>/INDEX.md(will show_(empty)_until content lands) and refreshes rootINDEX.mdto include the new subfolder. Stage all modified INDEX.md files. - Commit(s) — prefer multiple atomic commits:
kb: add <folder>/schema: add <type> type(if applicable)conventions: document <folder>/(if applicable) Push after each.
- Release the lock.
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.

