digital-brain
Copilot instructions1 starsChanged 7 months agoMITView on GitHub
This repository is a Claude Code plugin and Obsidian vault that builds persistent, compounding knowledge bases using Andrej Karpathy's LLM Wiki pattern. It is markdown-only. No build step, no compiled code, no runtime dependencies. When suggesting edits:
In this repositoryOne other file it gives its agents.
- .cursor/rules/digital-brain.mdcCursor rule
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
.raw/is immutable: Never suggest edits to anything under that path
≈ “Common” is an estimate: at least 1 in 5 of the 3,894 Copilot instructions 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
digital-brain: GitHub Copilot Instructions
This repository is a Claude Code plugin and Obsidian vault that builds persistent, compounding knowledge bases using Andrej Karpathy's LLM Wiki pattern. It is markdown-only. No build step, no compiled code, no runtime dependencies.
Project Type
- Agent Skills package (cross-platform Agent Skills standard)
- Obsidian vault (interpretable by Obsidian directly)
- Claude Code plugin (installable via marketplace)
Repository Layout
skills/: 10 skills, each with aSKILL.mddefining trigger phrases and instructionshooks/hooks.json: Claude Code lifecycle hooks (SessionStart, PostCompact, PostToolUse, Stop).claude-plugin/plugin.json: plugin manifestwiki/: generated knowledge base (Markdown files with YAML frontmatter).raw/: immutable source documents (never modify)_templates/: Obsidian Templater templates_attachments/: images and PDFs referenced by wiki pages
Conventions Copilot Should Follow
When suggesting edits:
- Frontmatter is flat YAML with plural keys:
tags,aliases,cssclasses - Internal links are wikilinks:
[[Note Name]], not Markdown links to.mdpaths - Dates are
YYYY-MM-DD, not ISO datetimes .raw/is immutable. Never suggest edits to anything under that pathwiki/log.mdis append-only, with new entries at the topwiki/hot.mdis overwritten at session end, not appended to- Skills use only
nameanddescriptionin frontmatter. Noallowed-tools, notriggers, noglobs(these are not part of the Agent Skills spec) - Custom callouts: this vault defines
[!contradiction],[!gap],[!key-insight],[!stale]in.obsidian/snippets/vault-colors.css. These render only with that snippet enabled.
When Editing Skills (skills/<name>/SKILL.md)
- Frontmatter:
name(matches directory name) anddescription(single quoted line, max ~250 useful chars) - Body: short, imperative instructions. Reference files with backticks. Do not paste large code blocks unless they're essential.
- Trigger phrases go in the
descriptionfield, not in body or non-standard fields
When Editing Hooks (hooks/hooks.json)
- Valid event names only:
SessionStart,Stop,PreToolUse,PostToolUse,PreCompact,PostCompact,UserPromptSubmit - Hook types:
command(shell),prompt(LLM),http(POST),agent(subagent) matcherfield uses regex against tool names forPreToolUse/PostToolUse- For
SessionStart: matcher usesstartup,resume,clear, orcompact
Cross-Reference
- Pattern source: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
- Authoritative Obsidian-specific skills: 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.

