query
Skill7 starsChanged 19 days agoMITView on GitHub
Search across the OS with a multi-hop query. Say "what blocks <priority>", "what connects to <client>", "what history explains <decision>", or "search the OS for <topic>" (or run /founder-os:query). Traverses `brain/relations.yaml` plus core operating files. Three modes (index, timeline, full) for progressive disclosure.
38 other projects use a version of this.
Adopted by
Most recently taken up by
- hydra-db/hydradb-claude-codetheir own version, first seen Nov 8, 2026
- justmytwospence/strava-mcptheir own version, first seen Nov 8, 2026
- levi-qiao/obsidian-llm-wikitheir own version, first seen Nov 8, 2026
- prdlk/skillstheir own version, first seen Nov 1, 2026
- honeydew-ai/honeydew-ai-coding-agents-pluginstheir own version, first seen Nov 1, 2026
- aibtcdev/skillstheir own version, first seen Oct 26, 2026
Used with
Projects with it also use attach-db, install-duckdb and 6 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.
duckdbSkillattach-db
Attach a DuckDB database file for use with /duckdb-skills:query. Explores the schema (tables, columns, row counts) and writes a SQL state file so subsequent queries can restore this session automatically via duckdb -init.
Also in 3 projects that use this
carlopiSkillinstall-duckdb
Install or update DuckDB extensions. Each argument is either a plain extension name (installs from core) or name@repo (e.g. magic@community). Pass --update to update extensions instead of installing.
Also in 3 projects that use this
carlopiSkillread-file
Read and explore any data file (CSV, JSON, Parquet, Avro, Excel, spatial, …) by filename only — resolves the path automatically. Uses DuckDB + the magic extension for format auto-detection. Installs magic if needed.
Also in 4 projects that use this
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 4 projects that use this
MicrosoftSkilldoctor
Diagnose an Amplifier CLI environment through the CLI doctor agent. USE WHEN a user requests CLI runtime, settings or missing-capability inspection. DO NOT USE for project bugs or other hosts.
Also in 3 projects that use this
Microsoft AzureSkillreflect
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
Also in 3 projects that use this
Other versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- garrytan/gbrain★ 32ksame name
- facebookincubator/velox★ 4.3ksame name
- jason-effi-lab/karpathy-llm-wiki-vault★ 718same name
- duckdb/duckdb-skills★ 598same name
- ArtemXTech/claude-code-obsidian-starter★ 225same name
- HurricaHjz/SecondSelf★ 156same name
- romarayt/raytsystem-public-os★ 140same name
- HurricaHjz/second-yourself★ 105same name
- StarRocks/starrocks-debug-skills★ 77same name
- MetamusicX/zissa-wiki★ 58same name
28 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 repository100 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- notion-package/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- add-handsSkill
- add-mouthSkill
- add-voiceSkill
- approval-gatesSkill
- auditSkill
- backupSkill
- blind-spot-reviewSkill
- bottleneck-diagnosticSkill
- brain-logSkill
- brain-passSkill
- brain-snapshotSkill
- brand-interviewSkill
- brand-voice-interviewSkill
- business-context-loaderSkill
- campaign-from-themeSkill
- capture-sweepSkill
- catch-upSkill
- client-updateSkill
- connectSkill
- content-repurposerSkill
- content-startSkill
- context-persistenceSkill
- cross-linkSkill
- data-securitySkill
- decision-frameworkSkill
- decisions-startSkill
- delivery-startSkill
- email-drafterSkill
- employee-reviewSkill
- finance-importSkill
- forcing-questionsSkill
- founder-coachingSkill
- founder-next-moveSkill
- founder-os-setupSkill
- founder-reviewSkill
- founder-scope-challengeSkill
- github-opsSkill
- handoff-protocolSkill
- hireSkill
- historySkill
- housekeepingSkill
- ingestSkill
- knowledge-captureSkill
- legal-complianceSkill
- linkedin-brand-directionSkill
- linkedin-network-scanSkill
- linkedin-postSkill
- linkedin-power-auditSkill
- linkedin-startSkill
- linkedin-warm-revivalSkill
- lintSkill
- list-prunerSkill
- log-archiveSkill
- log-replySkill
- meeting-prepSkill
- memory-passSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If core/identity.md does not exist, stop with: Founder OS not set up here.
- Very specific: line 20
If brain/relations.yaml is missing, tell the user to run /founder-os:wiki-build first, then continue with keyword search if enough files …
- Very specific: line 22
If scripts/query.py exists, use it.
- Very specific: line 41
If the question has a line that reads exactly FOUNDER_OS_Q_END, do not run it.
- Very specific: line 54
If the anchor is a brain ID, the date is read from the ID itself.
- Very specific: line 83
Call index mode with the question.
- Very specific: line 85
Call timeline mode anchored on that slug to see surrounding context.
- Very specific: line 86
Call full mode with the specific IDs you want to read end to end.
- Distinctive: line 93
Read the boot files:
- Very specific: line 99
Read brain/patterns.md and brain/flags.md if they exist.
- Very specific: line 144
Read-only. Never write to relations.yaml or any brain file.
- Distinctive: line 145
No external dependencies. Pure Python stdlib.
- Distinctive: line 146
No embeddings or graph database in v1.7.
“Common” is measured: kept by at least 6 in 10 of the 31 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
Query
Runs on: local-exec - runs a local script; on a cloud surface I read the results, I do not run it.
This skill retrieves OS nodes for a question by walking markdown files and brain/relations.yaml. It uses plain files only. No vector database, no embeddings, no external service.
Pre-Flight
If core/identity.md does not exist, stop with: Founder OS not set up here. Run /founder-os:setup first.
If brain/relations.yaml is missing, tell the user to run /founder-os:wiki-build first, then continue with keyword search if enough files exist.
If scripts/query.py exists, use it. If not, perform the procedure manually.
Three Modes
The script has three modes for progressive disclosure. Start with index, drill in with timeline, pull specific bodies with full.
1. index (default)
Returns ~10 candidate nodes with ID, path, first heading, decay flag if present, and a 1-line context. Target ~50 tokens per hit. Hard cap 10 hits. Use this on the first call when you do not yet know which entries you need.
Pass the question through the quoted block below, never inside quotes on the command line. Inside double quotes $(...) and backticks still run, and inside single quotes an apostrophe ends the string. Put the question on its own line between the two marker lines, exactly as the user wrote it, with nothing escaped. Every line starts at the left edge with no spaces in front, or bash will not see the end marker:
python scripts/query.py "$(cat <<'FOUNDER_OS_Q_END'
<the user's question, verbatim>
FOUNDER_OS_Q_END
)"If the question has a line that reads exactly FOUNDER_OS_Q_END, do not run it. Ask the user to rephrase it without that line.
For explicit index mode, write --mode index before the quoted block, on the first line: python scripts/query.py --mode index "$(cat <<'FOUNDER_OS_Q_END'. The other lines stay as above. Flags and their values follow the token rule in .claude/commands/query.md: letters, digits and _ . / , : = - only.
2. timeline
Given an anchor (file slug or brain ID), returns entries within 7 days either side, ordered chronologically. Target ~150 tokens per hit. Hard cap 20 hits. Use after index when you want to see what was happening around a specific node.
python scripts/query.py --mode timeline --anchor brain/flags.md
python scripts/query.py --mode timeline --anchor log-2026-05-07-001If the anchor is a brain ID, the date is read from the ID itself. If the anchor is a file slug, the date is read from frontmatter (updated: or date:). If neither is present, file mtime is used as a fallback.
Definition: an "entry" in timeline mode is one markdown file (per-file granularity, dated by frontmatter or mtime). Per-heading granularity is parked for a later version.
3. full
Given a comma-separated list of IDs, returns the full body of each entry. No cap, the user explicitly asked for these. Use after timeline (or directly from index) when you want the actual content of a specific entry.
python scripts/query.py --mode full --ids log-2026-05-07-001,log-2026-05-07-002For each ID the script searches every markdown file in scope and matches the ID either as a frontmatter id: line or as a trailing parenthetical on a heading line (<id>). The body returned is the heading line plus all lines up to the next heading at the same depth or shallower. If no match is found, the output is id <X>: not found and the script continues with the next ID.
Operating against a non-default root
The script accepts --root <path> to point at another Founder OS-style folder, such as a vendored archive or a fixture corpus. Use it when the current shell is outside the folder you want to query. The flag and its path go before the quoted block:
python scripts/query.py --root /path/to/archive "$(cat <<'FOUNDER_OS_Q_END'
outreach stalled
FOUNDER_OS_Q_END
)"Progressive Flow
Recommended pattern for any non-trivial question:
- Call
indexmode with the question. Skim the 10 hits. - Pick one slug or ID that looks most relevant.
- Call
timelinemode anchored on that slug to see surrounding context. - Call
fullmode with the specific IDs you want to read end to end.
This keeps token cost low until the user commits to a deeper read.
Manual Procedure (if script is missing)
- Read
brain/relations.yaml. - Read the boot files:
CLAUDE.mdcore/identity.mdcontext/priorities.mdcontext/decisions.mdrules/operating-rules.md
- Read
brain/patterns.mdandbrain/flags.mdif they exist. - Identify candidate nodes by keyword match against the user's question.
- Walk curated and auto-generated edges up to 3 hops from each candidate.
- Rank by keyword match, edge count, and recency.
- Return the top 3 to 5 nodes with the path that connects each result to the question.
Output Formats
index mode
QUERY: <user question>
---
Top results:
1. <node> (id: <id>) [DECAY soon (YYYY-MM-DD)] - <one-line context> - reached via: <path>
2. <node> - <one-line context> - reached via: <path>
...
Recommend reading: <single highest-value node>timeline mode
TIMELINE: <anchor> (YYYY-MM-DD) +/- 7 days
---
YYYY-MM-DD - <node> (id: <id>)
<first heading>
<body lines, capped>full mode
FULL: id1, id2
---
=== id1 (path) ===
<body block>Rules
- Read-only. Never write to
relations.yamlor any brain file. - No external dependencies. Pure Python stdlib.
- No embeddings or graph database in v1.7.
indexmode output stays under ~500 tokens total even with a corpus of 1000 markdown files (10-hit cap, 200-char context).
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.

