learn
Skill121 starsChanged 7 months agoMITView on GitHub
Explore a codebase with parallel Haiku agents — clone, read, and document. Modes — --fast (1 agent), default (3), --deep (5). Use when user says "learn [repo]", "explore codebase", "study this repo", or shares a GitHub URL to study. Do NOT trigger for finding projects (use /trace), session mining (use /dig), or cloning for active development (use /incubate).
195 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Doist/todoist-aitheir own version, first seen Nov 9, 2026
- Doist/todoist-clitheir own version, first seen Nov 8, 2026
- HughYau/AcademicForgetheir own version, first seen Nov 8, 2026
- dimsedra/skillstheir own version, first seen Nov 8, 2026
- rajanrx/skillstheir own version, first seen Nov 8, 2026
- edwinidrus/dragonhoardtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-anydoc, add-clidash and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TomGranotSkilladd-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.
Also in 5 projects that use this
TomGranotSkilladd-clidash
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.
Also in 5 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 11 projects that use this
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
MicrosoftSkilladd-codex
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
Also in 6 projects that use this
MicrosoftSkilladd-deltachat
Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.
Also in 6 projects that use this
- +5 more from TomGranot
- +1 more from microsoft
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- l3rowniecakez/Claude_Skill★ 094% same
Wrote their own version · 194
- garrytan/gstack★ 141ksame name
- rohitg00/ai-engineering-from-scratch★ 78ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- tigerless-labs/autoharness★ 11ksame name
- tw93/claude-health★ 7.5ksame name
- tw93/Waza★ 7.5ksame name
- nykooi1/vibe-wise★ 3.5ksame name
- HughYau/AcademicForge★ 2.6ksame name
184 more not listed
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 repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- about-oracleSkill
- awakenSkill
- bampenpienSkill
- budSkill
- create-shortcutSkill
- digSkill
- feelSkill
- forwardSkill
- goSkill
- incubateSkill
- oracle-cheatsheetSkill
- oracle-family-scanSkill
- oracle-prismSkill
- philosophySkill
- projectSkill
- psiSkill
- recapSkill
- resonanceSkill
- round-tableSkill
- rrrSkill
- soulSkill
- traceSkill
- where-we-areSkill
- who-are-youSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 87
When spawning Haiku agents, you MUST give them TWO literal paths:
- Distinctive: line 105
FIX: Always give BOTH paths as LITERAL absolute values (no variables!):
- Very specific: line 216
Check arguments for --fast or --deep:
- Distinctive: line 242
Run the clone + symlink script in Step 0 FIRST
- Very specific: line 244
Create the date folder: mkdir -p "$DOCS_DIR"
- Distinctive: line 272
Skip to Step 2: after agent completes.
- Distinctive: line 303
Skip to Step 2: after all agents complete.
- Distinctive: line 336
Test structure and conventions
- Distinctive: line 337
Test utilities and helpers
- Distinctive: line 368
If a doc is contaminated, prepend a correction banner naming each false claim and its verified reality — do not silently delete, and do not …
- Distinctive: line 400
After learning completes, print the hub + generated file paths.
- Very specific: line 427
After writing docs, log the learning to Oracle so it's discoverable via /trace:
- Very specific: line 431
Write to ψ/memory/learnings/YYYY-MM-DD_<slug>.md with frontmatter:
- Distinctive: line 451
Default: 3 agents in parallel, good balance
“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/learn - Deep Dive Learning Pattern
Explore a codebase with 3 parallel Haiku agents → create organized documentation.
Usage
/learn [url] # Auto: clone via ghq, symlink origin/, then explore
/learn [slug] # Use slug from ψ/memory/slugs.yaml
/learn [repo-path] # Path to repo
/learn [repo-name] # Finds in ψ/learn/owner/repo
/learn --init # Restore all origins after git clone (like submodule init)Depth Modes
| Flag | Agents | Files | Use Case |
--fast | 1 | 1 overview | Quick scan, "what is this?" |
| (default) | 3 | 3 docs | Normal exploration |
--deep | 5 | 5 docs | Master complex codebases |
/learn --fast [target] # Quick overview (1 agent, ~2 min)
/learn [target] # Standard (3 agents, ~5 min)
/learn --deep [target] # Deep dive (5 agents, ~10 min)Directory Structure
ψ/learn/
├── .origins # Manifest of learned repos (committed)
└── owner/
└── repo/
├── origin # Symlink to ghq source (gitignored)
├── repo.md # Hub file - links to all sessions (committed)
└── YYYY-MM-DD/ # Date folder
├── 1349_ARCHITECTURE.md # Time-prefixed files
├── 1349_CODE-SNIPPETS.md
├── 1349_QUICK-REFERENCE.md
├── 1520_ARCHITECTURE.md # Second run same day
└── ...Multiple learnings: Each run gets time-prefixed files (HHMM_), nested in date folder.
Offload source, keep docs:
unlink ψ/learn/owner/repo/origin # Remove symlink
ghq rm owner/repo # Remove source
# Docs remain in ψ/learn/owner/repo//learn --init
Restore all origins after cloning (like git submodule init):
ROOT="$(pwd)"
# Read .origins manifest and restore symlinks
while read repo; do
ghq get -u "https://github.com/$repo"
OWNER=$(dirname "$repo")
REPO=$(basename "$repo")
mkdir -p "$ROOT/ψ/learn/$OWNER/$REPO"
ln -sf "$(ghq root)/github.com/$repo" "$ROOT/ψ/learn/$OWNER/$REPO/origin"
echo "✓ Restored: $repo"
done < "$ROOT/ψ/learn/.origins"Step 0: Detect Input Type + Resolve Path
CRITICAL: Capture ABSOLUTE paths first (before spawning any agents):
date "+🕐 %H:%M %Z (%A %d %B %Y)" && ROOT="$(pwd)"
echo "Learning from: $ROOT"IMPORTANT FOR SUBAGENTS: When spawning Haiku agents, you MUST give them TWO literal paths:
- SOURCE_DIR (where to READ code) — the
readlink-RESOLVED ghq path. Never theorigin/symlink path. See ⚠️ below — this is not cosmetic. - DOCS_DIR (where to WRITE docs) - the parent directory, NOT inside origin/
⚠️ BUG 1 (writes): If you only give agents origin/ path, they cd into it and write there → files end up in WRONG repo!
⚠️ BUG 2 (reads — worse, and silent): The origin/ path is nested inside
this oracle repo (ROOT/ψ/learn/...). An agent handed that path reads the
target as a subdirectory of us and describes it as a variant of our repo. Measured
on mattpocock/skills (2026-08-16): the arm given the nested path produced 3
contaminated docs / 26 false claims; the arm given the resolved ghq path produced
zero. Same target, same minute, same model. Resolve it:
SOURCE_DIR="$(readlink "$ROOT/ψ/learn/$OWNER/$REPO/origin")" # → ghq pathFIX: Always give BOTH paths as LITERAL absolute values (no variables!):
Example: ROOT=/home/user/ghq/.../my-oracle, learning acme-corp/cool-library, TODAY=2026-02-04, TIME=1349:
READ from: /home/user/ghq/github.com/acme-corp/cool-library/ ← resolved, NOT under ψ/
WRITE to: .../ψ/learn/acme-corp/cool-library/2026-02-04/1349_[FILENAME].mdTell each agent: "Read from [SOURCE_DIR]. Write to [DOCS_DIR]/[TIME]_[FILENAME].md"
⚠️ MANDATORY: Isolation preamble (prepend to EVERY agent prompt)
Agents spawned here inherit this oracle repo's CLAUDE.md as project
instructions. They will silently describe the target repo using our
vocabulary. Measured on mattpocock/skills (2026-08-16): 3 of 5 docs
contaminated, 26 false structural claims — including a doc that wrote
"(not in mattpocock/skills; reference from oracle-skills-cli CLAUDE.md)"
and then asserted the claim anyway. Detection is not containment. The
agent noticing the mismatch does not stop it shipping.
Prepend this verbatim to every agent prompt:
ISOLATION RULE — read before anything else.
You are running inside an unrelated repo whose CLAUDE.md is in your context.
Its conventions describe YOUR HOST, not the target you are analyzing.
Document ONLY what you can cite from a file under SOURCE_DIR.
Before writing any structural claim (build tooling, versioning scheme,
directory layout, curation/lifecycle model, CI gates), verify it with a
concrete check — `ls`, reading package.json, reading the config file.
If you cannot cite it, write "not present" — never substitute a mechanism
you know from elsewhere, and never describe the target as a variant of
another repo.Do not soften this to "be careful." The failure mode is confident and fluent; only a citation requirement catches it.
⚠️ Absent-referent rule (the biggest single cause)
A mandated section with no material in the target is what actually produces
contamination. TESTING.md was demanded for a repo with zero tests; the
agent correctly wrote "no test infrastructure" — then filled the rest of the
page with our CalVer, our bun run compile, our "public shelf". The two docs
whose topics were fully sourced from the target's README came back spotless.
So: every agent must be told the section may legitimately be empty.
If the target has little or nothing for your assigned topic, say so plainly
in one or two lines and STOP. A short accurate doc is correct output. Do NOT
pad, and do NOT reach for mechanisms from any other repo to fill the page.⚠️ Never let SOURCE_DIR read as "inside us"
origin is a symlink living under our own ψ/, so the target's absolute
path is nested in ours. An agent given only that path modeled the target as
"this origin version" — an upstream variant of our repo — and inherited our
architecture wholesale. Resolve the symlink and hand agents the real path:
SOURCE_DIR="$(readlink "$ROOT/ψ/learn/$OWNER/$REPO/origin")" # → the ghq pathState the target's identity explicitly too: "You are analyzing the
independent repository OWNER/REPO, which has no relationship to the repo
you are running inside."
If URL (http* or owner/repo format)
Clone, create docs dir, symlink origin, update manifest:
# Replace [URL] with actual URL
URL="[URL]"
ROOT="$(pwd)" # CRITICAL: Save current directory!
ghq get -u "$URL" && \
GHQ_ROOT=$(ghq root) && \
OWNER=$(echo "$URL" | sed -E 's|.*github.com/([^/]+)/.*|\1|') && \
REPO=$(echo "$URL" | sed -E 's|.*/([^/]+)(\.git)?$|\1|') && \
mkdir -p "$ROOT/ψ/learn/$OWNER/$REPO" && \
ln -sf "$GHQ_ROOT/github.com/$OWNER/$REPO" "$ROOT/ψ/learn/$OWNER/$REPO/origin" && \
echo "$OWNER/$REPO" >> "$ROOT/ψ/learn/.origins" && \
sort -u -o "$ROOT/ψ/learn/.origins" "$ROOT/ψ/learn/.origins" && \
echo "✓ Ready: $ROOT/ψ/learn/$OWNER/$REPO/origin → source"Verify:
ls -la "$ROOT/ψ/learn/$OWNER/$REPO/"Note: Grep tool doesn't follow symlinks — which is precisely why agents get the resolved
SOURCE_DIR(readlink ... /origin) rather than the symlink path. On the resolved ghq path, plainrg "pattern" "$SOURCE_DIR"works and no-Lis needed. (Historical: an oracle hit this symlink friction, switched to the direct path for unrelated reasons, and accidentally produced the only uncontaminated run — see BUG 2.)
Then resolve path:
# Find by name (searches origin symlinks)
find ψ/learn -name "origin" -type l | xargs -I{} dirname {} | grep -i "$INPUT" | head -1Scope
For external repos: Clone with script first, then explore via origin/
For local projects (in specs/, ψ/lib/): Read directly
Step 1: Detect Mode & Calculate Paths
Check arguments for --fast or --deep:
--fast→ Single overview agent--deep→ 5 parallel agents- (neither) → 3 parallel agents (default)
Calculate ACTUAL paths (replace variables with real values):
TODAY = YYYY-MM-DD (e.g., 2026-02-04)
TIME = HHMM (e.g., 1349)
REPO_DIR = [ROOT]/ψ/learn/[OWNER]/[REPO]/
DOCS_DIR = [ROOT]/ψ/learn/[OWNER]/[REPO]/[TODAY]/ ← date folder
SOURCE_DIR = $(readlink [ROOT]/ψ/learn/[OWNER]/[REPO]/origin) ← RESOLVED ghq path.
Never pass the ψ/-nested symlink path to an agent (see BUG 2 above).
FILE_PREFIX = [TIME]_ ← time prefix for files
Example:
- ROOT = /home/user/ghq/github.com/my-org/my-oracle
- OWNER = acme-corp
- REPO = cool-library
- TODAY = 2026-02-04, TIME = 1349
- DOCS_DIR = .../ψ/learn/acme-corp/cool-library/2026-02-04/
- Files: 1349_ARCHITECTURE.md, 1349_CODE-SNIPPETS.md, etc.⚠️ CRITICAL: Create symlink AND date folder FIRST, then spawn agents!
- Run the clone + symlink script in Step 0 FIRST
- Capture TIME:
date +%H%M(e.g., 1349) - Create the date folder:
mkdir -p "$DOCS_DIR" - Capture DOCS_DIR, SOURCE_DIR, and TIME as literal values
- THEN spawn agents with paths including TIME prefix
Multiple runs same day? Each run gets unique TIME prefix → no overwrites.
Mode: --fast (1 agent)
Single Agent: Quick Overview
Prompt the agent with (use LITERAL paths, not variables!):
You are exploring a codebase.
READ source code from: [SOURCE_DIR]
WRITE your output to: [DOCS_DIR]/[TIME]_OVERVIEW.md
⚠️ IMPORTANT: Write to DOCS_DIR (the date folder), NOT inside origin/!
Analyze:
- What is this project? (1 sentence)
- Key files to look at
- How to use it (install + basic example)
- Notable patterns or techSkip to Step 2 after agent completes.
Mode: Default (3 agents)
Launch 3 agents in parallel. Each prompt must include (use LITERAL paths!):
READ source code from: [SOURCE_DIR]
WRITE your output to: [DOCS_DIR]/[TIME]_[filename].md
⚠️ IMPORTANT: Write to DOCS_DIR (the date folder), NOT inside origin/!Agent 1: Architecture Explorer → [TIME]_ARCHITECTURE.md
- Directory structure
- Entry points
- Core abstractions
- Dependencies
Agent 2: Code Snippets Collector → [TIME]_CODE-SNIPPETS.md
- Main entry point code
- Core implementations
- Interesting patterns
Agent 3: Quick Reference Builder → [TIME]_QUICK-REFERENCE.md
- What it does
- Installation
- Key features
- Usage patterns
Skip to Step 2 after all agents complete.
Mode: --deep (5 agents)
Launch 5 agents in parallel. Each prompt must include (use LITERAL paths!):
READ source code from: [SOURCE_DIR]
WRITE your output to: [DOCS_DIR]/[TIME]_[filename].md
⚠️ IMPORTANT: Write to DOCS_DIR (the date folder), NOT inside origin/!Agent 1: Architecture Explorer → [TIME]_ARCHITECTURE.md
- Directory structure & organization philosophy
- Entry points (all of them)
- Core abstractions & their relationships
- Dependencies (direct + transitive patterns)
Agent 2: Code Snippets Collector → [TIME]_CODE-SNIPPETS.md
- Main entry point code
- Core implementations with context
- Interesting patterns & idioms
- Error handling examples
Agent 3: Quick Reference Builder → [TIME]_QUICK-REFERENCE.md
- What it does (comprehensive)
- Installation (all methods)
- Key features with examples
- Configuration options
Agent 4: Testing & Quality Patterns → [TIME]_TESTING.md
- Test structure and conventions
- Test utilities and helpers
- Mocking patterns
- Coverage approach
Agent 5: API & Integration Surface → [TIME]_API-SURFACE.md
- Public API documentation
- Extension points / hooks
- Integration patterns
- Plugin/middleware architecture
Skip to Step 2 after all agents complete.
Step 1.9: Contamination check (REQUIRED — before the hub file)
Agents that leak are fluent and confident; you cannot spot it by reading. Grep for our distinctive vocabulary appearing in docs about their repo:
# Terms distinctive to THIS oracle repo. A hit means the doc is describing us.
rg -n --stats "src/skills|split-brain|bun run compile|public shelf|CalVer|G-SKLL|zombie|lefthook" \
"$DOCS_DIR"/${TIME}_*.mdAny hit → verify that specific claim against the target before trusting the doc. Cheap structural checks settle most of them instantly:
ls -d "$SOURCE_DIR/src" 2>&1 # does the vault exist?
python3 -c "import json;print(json.load(open('$SOURCE_DIR/package.json')).get('scripts'))"If a doc is contaminated, prepend a correction banner naming each false
claim and its verified reality — do not silently delete, and do not just
warn generically. Check every doc: a partial pass leaves a poisoned file
looking clean by omission (this happened — TESTING.md was missed on the
first pass and read as verified for 25 minutes).
Step 2: Create/Update Hub File ([REPO].md)
# [REPO] Learning Index
## Source
- **Origin**: ./origin/
- **GitHub**: https://github.com/$OWNER/$REPO
## Explorations
### [TODAY] [TIME] ([mode])
- [[YYYY-MM-DD/HHMM_ARCHITECTURE|Architecture]]
- [[YYYY-MM-DD/HHMM_CODE-SNIPPETS|Code Snippets]]
- [[YYYY-MM-DD/HHMM_QUICK-REFERENCE|Quick Reference]]
- [[YYYY-MM-DD/HHMM_TESTING|Testing]] <!-- --deep only -->
- [[YYYY-MM-DD/HHMM_API-SURFACE|API Surface]] <!-- --deep only -->
**Key insights**: [2-3 things learned]
### [TODAY] [EARLIER-TIME] ([mode])
...Output Summary
After learning completes, print the hub + generated file paths.
announce-mode → absolute path (no ψ/, no ~/, no $VAR, no ...).
Use: echo "marker: $RESOLVED_PATH" — bash substitutes. See CONVENTIONS.md.
echo "📚 Hub: $REPO_DIR/$REPO.md"
echo "📚 Files: $DOCS_DIR/${TIME}_*.md"
ls "$DOCS_DIR"/${TIME}_*.mdFiles generated depend on mode (--fast → 1 overview; default → 3 docs; --deep → 5 docs). Add a 2–3 line "Key Insights" summary after the file listing.
.gitignore Pattern
For Oracles that want to commit docs but ignore symlinks:
# Ignore origin symlinks only (source lives in ghq)
# Note: no trailing slash - origin is a symlink, not a directory
ψ/learn/**/originAfter running /learn, check your repo's .gitignore has these patterns so docs are committed but symlinks are ignored.
Trace Connection
After writing docs, log the learning to Oracle so it's discoverable via /trace:
Save the lesson (two-layer pattern)
- Write to
ψ/memory/learnings/YYYY-MM-DD_<slug>.mdwith frontmatter:--- pattern: "Learned [REPO]: [2-3 key insights]" date: <today> source: learn: OWNER/REPO concepts: ["learn", "codebase", <relevant-tags>] --- # Learned [REPO] <2-3 key insights in body> - The Oracle's auto-memory layer picks up new files in
ψ/memory/learnings/automatically — no separate API call needed.
This connects /learn to the shared knowledge layer — future /trace queries find what was learned.
Notes
--fast: 1 agent, quick scan for "what is this?"- Default: 3 agents in parallel, good balance
--deep: 5 agents, comprehensive for complex repos- Haiku for exploration = cost effective
- Main reviews = quality gate
origin/structure allows easy offload.originsmanifest enables--initrestore
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.

