agentleFS
brokspacebrokspace/brok/skills/engineering/brok-context/SKILL.md

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.

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
  1. Very specific:

    Start with the default limit.

    line 27
  2. Very specific:

    Read each hit's header: score path:start-end kind symbol.

    line 29
  3. Distinctive:

    When hits come from a submodule partition, keep that in mind for build and test commands, which may run inside the submodule.

    line 35
  4. Very specific:

    If neither brok nor brok_search is available, say so once and fall back to grep and directory listings.

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

NeedUse
A concept or behavior ("where are tokens validated")brok search "<question>" or the brok_search tool
An identifier you half rememberbrok search "parse config" (matches parseConfig, parse_config)
An exact string, regex or every occurrencegrep / rg, not the index
A summarized answer with sourcesbrok ask "<question>" (needs brok run)
Is the index current?brok status

Searching well

  1. Phrase the query as the code would describe itself: the behavior plus domain terms from GLOSSARY.md.
  2. Start with the default limit. Add -n 15 only when results look relevant but incomplete.
  3. Read each hit's header: score path:start-end kind symbol. A method hit with a parent tells you the class or impl it belongs to.
  4. Need the whole chunk? Re-run with --full, or open the file at those lines. Need machine-readable output? --json.
  5. Two queries with different wording beat one long query. Try the user's words, then the code's words.
  6. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.