/builder:semfrom builder
Use sem for entity-level (function/class/method) code questions in any Git repo. Four questions, four verbs - where is it (sem find, sem grep), what does my change touch (sem impact), is it correct (sem check), what should a human review (sem certify). Trigger whenever the user asks where something is defined or called, what a change breaks or which tests to run, whether a change is correct, what changed in a commit or PR, or what to review; also use it proactively before refactors and in code review, where line-level git output is noisy.
Ships in builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
sem parses 30+ languages with tree-sitter and answers questions about entities
(functions, classes, methods) and the calls between them. Instead of "lines
43-51 changed" it says "function validateToken in src/auth.ts was
modified, and these 3 callers and 2 tests reach it". It works in any Git repo
with no setup. Answers are deterministic; when a caller set may be incomplete,
sem says so.
| Question | CLI | MCP tool |
|---|---|---|
| Where is it? | sem find NAME, sem grep TEXT | sem_find, sem_grep |
| What does my change touch? | sem impact NAME, sem impact --diff HEAD --tests | sem_impact |
| Is it correct? | sem check | sem_check |
| What should a human review? | sem certify main..HEAD | sem_certify |
Also: sem diff (which entities changed), sem graph (how the code is
connected), sem history (how an entity changed; --blame for a file).
Every verb takes --json.
If the agent has the sem MCP server (tools named mcp__sem__*), call those
instead of running sem in a shell. They return compact results and carry
elapsed_ms. If they are deferred, load them first rather than falling back
to Bash.
| Task | MCP call |
|---|---|
where is X defined | sem_find with query: "X" |
read and understand X | sem_find with query: "X", mode: "context": body plus callers and callees, one call, no file needed |
who calls X | sem_find with mode: "callers" |
what X calls | sem_find with mode: "refs" |
| what is in this file or directory | sem_find with in: "src/auth.ts" |
| find code by intent, name unknown | sem_find with intent: "where retries are scheduled" |
| a string, error message, config key | sem_grep, or sem_find with text (hits named by entity) |
| what breaks / which tests to run | sem_impact (mode: "tests" for tests only) |
| is the change correct | sem_check |
| what to review in a range | sem_certify with range: "main..HEAD" |
| what changed | sem_diff |
how X evolved / who changed it | sem_history (blame: true with file_path for a file) |
When you know or can guess the name, one sem_find call with mode
context replaces a grep followed by a file read. Ambiguous names return a
short candidate list; pass in only then.
# where is it?
sem find validateToken # definition: type name file:line
sem find validateToken --callers # who calls it
sem find validateToken --refs # what it calls
sem find validateToken --context # its code plus callers and callees, token-budgeted
sem find validateToken --context --budget 4000 --hops 1
sem find --in src/auth.ts # every entity in a file or directory
sem grep "token expired" # text, rg-style file:line:text
# what does my change touch?
sem impact validateToken # dependents, deps, transitive impact, tests
sem impact validateToken --tests # only the tests to run
sem impact --diff HEAD --tests # tests for the uncommitted change
sem impact --diff main..HEAD --json # one report per changed entity
# is it correct?
sem check # the project's compiler, type checker, linter, tests: exit 0 pass, 1 fail, 2 could not decide
sem check --checkers ts,tests # only these checkers
# what should a human review?
sem certify main..HEAD # review certificate (markdown)
sem certify main..HEAD --arch # the architecture view
sem certify main..HEAD --json
# more
sem diff # working tree changes, by entity
sem diff --from HEAD~5 --to HEAD --format json
sem graph --json # entity graph; --modules, --dataflow, --system for other layers
sem history validateToken # how it evolved
sem history --blame src/auth.ts # who last changed each entity
Older names (sem callers, sem context, sem entities, sem log,
sem blame, sem arch-diff, sem topology, ...) still work with the same
output.
When an impact result drives your answer (a refactor decision, a "what breaks" question), render it as a small ASCII tree in the response:
◉ validateToken · src/auth.ts
│ 8 direct → 23 transitive
├─▶ refreshToken src/auth.ts
├─▶ loginHandler src/routes/login.ts
├─▶ SessionMiddleware src/middleware/session.ts
╰─▶ … +5 more (12 tests)
Real callers first, tests collapsed into a count, no invented entries: draw only what the tool returned. Skip the drawing when impact was incidental.
sem_find (context mode) and sem_impact return elapsed_ms. When one sem
call replaces several grep/read steps, or catches something text search
cannot (a transitive caller in another file), say so in one terse clause,
e.g. (sem_impact: 9ms, 2 transitive callers grep would miss). Once per
non-obvious win, never a sales pitch. If you fall back to grep or a file read
on a structural question, say why.
sem --version # confirm sem (not GNU Parallel's sem) is on PATH
If there's a conflict with GNU Parallel, add alias sem="$HOME/.cargo/bin/sem"
to the shell profile, or use npx sem / bunx sem if installed via npm/bun.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub thimslugga/agent-plugins --plugin builder43 skills in this plugin
/adrCreate and maintain Architecture Decision Records (ADRs). Use when the user proposes a significant architectural change, records a refactoring decision, resolves a technical debate, or asks to write, update, deprecate, or supersede an ADR./asd-ste100Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy./ast-grepGuide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics./ast-grep-outlineUse when exploring or modifying a codebase and you need a cheap structural map of files, directories, imports, exports, or direct members before reading full source./autoresearch'Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.'/browser39Use this skill whenever you need to search the web using browser39's MCP tools. Handles CAPTCHA avoidance via automatic search engine rotation and optimises browsing speed using browser39's content preselection system. Triggers when using browser39_search, browser39_fetch, or any browser39 tool to retrieve web content. Replaces naive single-engine searches with a resilient, token-efficient strategy.