agentleFS
eliransueliransu/digital-brain/.github/copilot-instructions.md

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:

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
  1. Very specific:

    .raw/ is immutable: Never suggest edits to anything under that path

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 a SKILL.md defining trigger phrases and instructions
  • hooks/hooks.json: Claude Code lifecycle hooks (SessionStart, PostCompact, PostToolUse, Stop)
  • .claude-plugin/plugin.json: plugin manifest
  • wiki/: 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:

  1. Frontmatter is flat YAML with plural keys: tags, aliases, cssclasses
  2. Internal links are wikilinks: [[Note Name]], not Markdown links to .md paths
  3. Dates are YYYY-MM-DD, not ISO datetimes
  4. .raw/ is immutable. Never suggest edits to anything under that path
  5. wiki/log.md is append-only, with new entries at the top
  6. wiki/hot.md is overwritten at session end, not appended to
  7. Skills use only name and description in frontmatter. No allowed-tools, no triggers, no globs (these are not part of the Agent Skills spec)
  8. 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) and description (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 description field, 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)
  • matcher field uses regex against tool names for PreToolUse/PostToolUse
  • For SessionStart: matcher uses startup, resume, clear, or compact

Cross-Reference

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.