query
Skill6 starsChanged 3 months 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.
27 other projects use a version of this.
Adopted by
Most recently taken up by
- HurricaHjz/second-yourselftheir own version, first seen Oct 1, 2026
- MetamusicX/zissa-wikitheir own version, first seen Sep 26, 2026
- eddmann/agent-toolkittheir own version, first seen Sep 22, 2026
- factor241/ketos-bottheir own version, first seen Sep 3, 2026
- johnfkoo951/cmds-llm-wikitheir own version, first seen Aug 26, 2026
- Kaalia0912/dsh-data-analysis-modetheir own version, first seen Aug 20, 2026
Used with
Projects with it also use read-file and research.
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.
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 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 4 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- duckdb/duckdb-skills★ 598same name
- ArtemXTech/claude-code-obsidian-starter★ 225same name
- romarayt/raytsystem-public-os★ 150same name
- HurricaHjz/second-yourself★ 105same name
- johnfkoo951/cmds-llm-wiki★ 90same name
- StarRocks/starrocks-debug-skills★ 77same name
- MetamusicX/zissa-wiki★ 58same name
- honeydew-ai/honeydew-ai-coding-agents-plugins★ 42same name
- owenliang60-ship-it/knowledge-mgmt★ 37same name
17 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
We split this skill into the rules it gives an agent
12 rules. 0 are common, 3 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
9
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 51
If the anchor is a brain ID, the date is read from the ID itself.
- Very specific: line 77
Call index mode with the question.
- Very specific: line 79
Call timeline mode anchored on that slug to see surrounding context.
- Very specific: line 80
Call full mode with the specific IDs you want to read end to end.
- Distinctive: line 87
Read the boot files:
- Very specific: line 93
Read brain/patterns.md and brain/flags.md if they exist.
- Very specific: line 138
Read-only. Never write to relations.yaml or any brain file.
- Distinctive: line 139
No external dependencies. Pure Python stdlib.
- Distinctive: line 140
No embeddings or graph database in v1.7.
“Common” is measured: kept by at least 6 in 10 of the 23 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.
python scripts/query.py "<the user's question, verbatim>"Or explicit:
python scripts/query.py --mode index "<question>"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.
python scripts/query.py --root /path/to/archive "outreach stalled"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.

