brok-context
Skill12 starsChanged 28 days agoApache-2.0View on GitHub
Explore a codebase through the Brokspace index. Use when you need to find where something is implemented, understand a concept across files, locate callers or similar code, or gather context before changing code, in any repo with a .brokspace/ directory or the brok_search tool.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ask-brokSkill
- code-reviewSkill
- commit-messageSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grill-with-docsSkill
- implementSkill
- prSkill
- retroSkill
- setup-brokspaceSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- write-shardSkill
- write-skillSkill
- grillingSkill
- grill-meSkill
- handoffSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Start with the default limit.
- Very specific: line 29
Read each hit's header: score path:start-end kind symbol.
- Distinctive: line 35
When hits come from a submodule partition, keep that in mind for build and test commands, which may run inside the submodule.
- Very specific: line 52
If neither brok nor brok_search is available, say so once and fall back to grep and directory listings.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Brokspace context
Brokspace keeps a local index of the workspace (every git submodule included): code cut along its syntax tree, one function, method, class or section per chunk, searchable by meaning and by words. Use it before reading files blindly.
Which tool
| Need | Use |
| A concept or behavior ("where are tokens validated") | brok search "<question>" or the brok_search tool |
| An identifier you half remember | brok search "parse config" (matches parseConfig, parse_config) |
| An exact string, regex or every occurrence | grep / rg, not the index |
| A summarized answer with sources | brok ask "<question>" (needs brok run) |
| Is the index current? | brok status |
Searching well
- Phrase the query as the code would describe itself: the behavior plus
domain terms from
GLOSSARY.md. - Start with the default limit. Add
-n 15only when results look relevant but incomplete. - Read each hit's header:
score path:start-end kind symbol. Amethodhit with aparenttells you the class or impl it belongs to. - Need the whole chunk? Re-run with
--full, or open the file at those lines. Need machine-readable output?--json. - Two queries with different wording beat one long query. Try the user's words, then the code's words.
- When hits come from a submodule partition, keep that in mind for build and test commands, which may run inside the submodule.
Freshness
brok run re-indexes changed files within seconds. Without it, results may
lag edits made in this session: run brok index (incremental, usually fast)
before trusting a search for code you just changed. If brok status shows
"bm25" instead of "hybrid", semantic matching is off; prefer exact identifier
words in queries.
Reporting
Cite every claim about the code as path:line (or path:start-end). Say
which queries you ran when you conclude something does not exist, so the
user can judge how hard you looked.
If neither brok nor brok_search is available, say so once and fall back to
grep and directory listings.
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.

