code-library
Skill35 starsChanged 2 months agoMITView on GitHub
Finds documented repositories, execution patterns, and project links in the user's Obsidian code library. Use when the user asks 'how does repo X work', 'where is the code for this project', how to run or monitor experiments, or which code skills exist.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Vepricov/claude-brainlabword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Vepricov/claude-brainlab★ 35100% same
Edited · 0
None found.
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 repository68 other files it gives its agents.
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- academic-plottingSkill
- agent-identifierSkill
- architecture-designSkill
- astar-paper-reviewSkill
- bug-detectiveSkill
- call-notesSkill
- cavemanSkill
- citation-verificationSkill
- code-ingestSkill
- code-review-excellenceSkill
- command-developmentSkill
- create-projectSkill
- daily-codingSkill
- defuddleSkill
- diagnoseSkill
- doc-coauthoringSkill
- experiment-runsSkill
- frontend-designSkill
- git-guardrails-claude-codeSkill
- git-workflowSkill
- google-workspace-mcpSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- handoff-to-jarvisSkill
- hook-developmentSkill
- improve-codebase-architectureSkill
- json-canvasSkill
- kaggle-learnerSkill
- lab-knowledgeSkill
- latex-conference-template-organizerSkill
- mcp-integrationSkill
- ml-paper-writingSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-experiment-logSkill
- obsidian-markdownSkill
- operon-obsidian-setupSkill
- paper-ingestSkill
- paper-searchSkill
- paper-to-socialSkill
- paper-venue-formattingSkill
- pdf-readerSkill
- planning-with-filesSkill
- plugin-structureSkill
- presentationSkill
- presenter-modeSkill
- prototypeSkill
- research-cycleSkill
- research-ideationSkill
- restore-sessionSkill
- results-analysisSkill
- results-reportSkill
- reverse-outline-flow-checkSkill
- review-responseSkill
- setup-pre-commitSkill
- skill-developmentSkill
- tddSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 19
If a project has code, all three must exist.
- Distinctive: line 29
Every project that uses code adds this to its hub card:
- Distinctive: line 46
Keep these notes closed in the Obsidian app while a loop writes to them (an open note re-saves its cached copy over CLI edits = iCloud …
- Very specific: line 67
security.md: no hardcoded secrets/keys/IPs.
≈ “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
code-library — how code work is organized here
The user wants to hand experiment execution to agents and just read the logs. For that to work, every project's code must be discoverable and its state never lost. This skill is the index to that system.
The big picture
- Code library (
Code/<repo>/) — a durable map of how each repo works, shared across projects. Built once per repo via [[code-ingest]]. - Project hub card (
Papers|Projects|Staff/<slug>/<slug>.md) — records which repo a project uses and what edits this project made to it (the diff from upstream). - Experiment monitoring — per experiment: a log note + a results-table note + an auto-refreshed plot, kept current by a monitoring loop.
If a project has code, all three must exist. An agent picking up the project reads the project card → follows the link into the Code library → knows what to run.
1. Code library → see [[code-ingest]]
- Location:
${OBSIDIAN_VAULT}/personal/code-library/. - One folder per repo; canonical overview is
personal/code-library/<repo>/<repo>.md(always read this first), plus module notes. - It maps the upstream repo (entrypoint, modules, dispatch points, "where to edit X"). It does NOT hold project-specific edits — those live in the project card.
- To add a repo: invoke code-ingest with the URL/path.
- First repo in the library: [[personal/code-library/llm-baselines/llm-baselines|llm-baselines]] (EPFL; base for several optimizer/pretraining projects).
2. Project hub card — ## Код section
Every project that uses code adds this to its hub card:
## Код
- Репозиторий: [[Code/<repo>/<repo>|<repo>]] — <fork? branch?>
- Локально: `~/brainlab/<направление>/<тема>/<работа>/code/` · сервер: `~/<dir>` (<host>)
- Правки этого проекта (диф от upstream):
- new: <files added>
- patched:<files changed + why>
- flags: <new CLI flags / configs>This is the per-project delta. The Code library tells you how the repo works; the card tells you what this project changed and where to run it.
3. Experiment monitoring (the standard)
Per experiment series, in the project folder:
Experiments/<name>.md— the log: goal, fixed config, run layout (sessions/GPUs), status timeline, and a## Progress snapshotstable (one timestamped row per check).Results/<name>-table.md— the results: final metric tables + an embedded loss-curve plot (![[...png]]).- Plot: generated by a house-style plotter (see [[handbook/tools/plot-curves]]). Rules: compact figure + large fonts (Obsidian downscales), two panels (full + zoom on the recent frontier), nothing overlaps, value labels flip left near the right edge, version the PNG filename each refresh (Obsidian caches by name) and rewrite the embed.
- Keep these notes closed in the Obsidian app while a loop writes to them (an open note re-saves its cached copy over CLI edits = iCloud conflict).
- Long runs: launch in
tmuxon the server, monitor with a/loopthat reconnects the VPN on ssh timeout, appends a snapshot row, and refreshes the plot.
Your coding skills (when to reach for which)
- daily-coding — everyday write/modify source (the QA checklist). Default for coding tasks.
- architecture-design — new registrable components (factory/registry patterns).
- tdd / tdd-guide — test-first feature/bugfix.
- diagnose / bug-detective — hard bugs, perf regressions, root-cause loops.
- code-review (
/code-review) / code-review-excellence — review a diff/PR. - simplify (
/code-review --fix), refactor-clean — dead code / consolidation. - build-fix / build-error-resolver — get the build green, type errors.
- verification-loop — build+type+lint+test+security before a PR.
- uv-package-manager — Python deps/venv with
uv. - improve-codebase-architecture — deepen/consolidate architecture (uses CONTEXT.md, ADRs).
- git-workflow / git-guardrails — Conventional Commits, branching, blocking dangerous git.
- Research-side: results-analysis, results-report, analyze-results for post-run stats/figures/reports.
Coding rules in effect (from ~/.claude/CLAUDE.md + ~/.claude/rules/)
- coding-style.md: files 200-400 lines (split at 400+),
@dataclass(frozen=True)config (no globals), type hints everywhere,loggingnotprint, specific exceptions, no mutable defaults, factory+registry for models/datasets, model__init__takes onlycfg,__all__in__init__.py. Prohibited: files >800 lines, nesting >4, globals, unused imports, debugprint. - agents.md: auto-invoke code-reviewer after writing code; build-error-resolver on build/type errors; dev-planner→architect for complex features; bug-analyzer on bug reports; tdd-guide for new features needing tests. Run independent agents in parallel.
- claude-scholar-core.md: uv, Hydra+OmegaConf, Transformers Trainer when appropriate, Conventional Commits, small reviewable diffs; align on approach before multi-file work; real verification after meaningful work.
- security.md: no hardcoded secrets/keys/IPs; secrets in env/.env; parameterized queries; no
eval/execon user input. - Surgical changes only; match surrounding style; don't refactor out of scope; remove orphaned imports your change caused but not pre-existing dead code.
See also
- [[code-ingest]] — add a new repo to the library.
~/.claude/rules/code-workflow.md— the always-on rule that makes agents follow this.
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.

