digital-brain / rules
Cursor rule1 starsChanged 7 months agoMITView on GitHub
digital-brain: LLM Wiki Pattern for Obsidian vaults. Always-on context for any project pointed at this repo.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository19 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- autoresearchSkill
- canvasSkill
- defuddleSkill
- noteSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- pplSkill
- saveSkill
- supSkill
- syncSkill
- taskSkill
- wiki-foldSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-pruneSkill
- wiki-querySkill
- wikiSkill
- writeSkill
The file
We split this digital-brain.mdc into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Read the relevant skills/<name>/SKILL.md file when the user's request matches a skill's trigger phrases.
- Very specific: line 41
Read
wiki/hot.mdfirst: when starting a session (if it exists)
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
--- description: digital-brain: LLM Wiki Pattern for Obsidian vaults. Always-on context for any project pointed at this repo. globs: - "wiki/**/*.md" - ".raw/**/*" - "skills/**/SKILL.md" alwaysApply: true --- # digital-brain A Claude Code plugin and Obsidian vault that builds persistent, compounding knowledge bases using Andrej Karpathy's LLM Wiki pattern. This repo works with Cursor's AI through the cross-platform Agent Skills format. ## What This Project Is - **Vault root**: contains `wiki/` (agent-generated knowledge) and `.raw/` (source documents: immutable) - **Hot cache**: `wiki/hot.md` (~500 tokens) holds recent session context - **Index**: `wiki/index.md` is the master catalog Claude reads first - **Skills**: 10 skills under `skills/<name>/SKILL.md` define ingest/query/lint/save/canvas/etc ## Skills Available | Skill | When to use | |---|---| | `wiki` | Scaffold new vault, route to sub-skills | | `wiki-ingest` | Ingest a file, URL, or image: creates 8-15 wiki pages | | `wiki-query` | Answer questions from the wiki (Quick / Standard / Deep modes) | | `wiki-lint` | Health check: orphans, dead links, gaps | | `save` | File current conversation as a wiki note | | `autoresearch` | Autonomous research loop | | `canvas` | Create/edit Obsidian canvas files | | `defuddle` | Clean web pages before ingest | | `obsidian-markdown` | Obsidian syntax reference | | `obsidian-bases` | Obsidian Bases (.base files) | Read the relevant `skills/<name>/SKILL.md` file when the user's request matches a skill's trigger phrases. ## Critical Conventions 1. **Never modify `.raw/`**. Sources are immutable 2. **Read `wiki/hot.md` first** when starting a session (if it exists) 3. **Use wikilinks** (`[[Note Name]]`) for all internal references in wiki pages 4. **Frontmatter is flat YAML**. See `skills/wiki/references/frontmatter.md` 5. **Append to `wiki/log.md`**, never edit past entries 6. **Hot cache is overwritten** at session end (it's a cache, not a journal) ## Setup for Cursor To make these skills first-class in Cursor, run: ```bash ln -s "$(pwd)/skills" .cursor/skills ``` Or use the bundled installer: ```bash bash bin/setup-multi-agent.sh ``` ## Cross-Reference - Pattern: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f - Related: https://github.com/kepano/obsidian-skills
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.

