agentleFS
Ataraxy-LabsAtaraxy-Labs/sem/agent-skill/SKILL.md

sem

Skill3.4k starsChanged 57 days agoApache-2.0View on GitHub

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.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 0 mentionsJun 2026: 3 mentionsJul 2026: 4 mentionsAug 2026: 0 mentionsSep 2026: 4 mentionsOct 2026: 5 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Ataraxy-Labs/sem repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Ataraxy-Labs/sem

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub, Bluesky and Hacker News (24 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 5

On Hacker News · 2

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every verb takes --json.

    line 30
  2. Very specific:

    If the agent has the sem MCP server (tools named mcp__sem__*), call those instead of running sem in a shell.

    line 34
  3. Very specific:

    When you know or can guess the name, one sem_find call with mode context replaces a grep followed by a file read.

    line 54
  4. Distinctive:

    When an impact result drives your answer (a refactor decision, a "what breaks" question), render it as a small ASCII tree in the response:

    line 99
  5. Very specific:

    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 …

    line 129

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

sem

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.

Four questions, four verbs

QuestionCLIMCP tool
Where is it?sem find NAME, sem grep TEXTsem_find, sem_grep
What does my change touch?sem impact NAME, sem impact --diff HEAD --testssem_impact
Is it correct?sem checksem_check
What should a human review?sem certify main..HEADsem_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.

Use the MCP tools first

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.

TaskMCP call
where is X definedsem_find with query: "X"
read and understand Xsem_find with query: "X", mode: "context": body plus callers and callees, one call, no file needed
who calls Xsem_find with mode: "callers"
what X callssem_find with mode: "refs"
what is in this file or directorysem_find with in: "src/auth.ts"
find code by intent, name unknownsem_find with intent: "where retries are scheduled"
a string, error message, config keysem_grep, or sem_find with text (hits named by entity)
what breaks / which tests to runsem_impact (mode: "tests" for tests only)
is the change correctsem_check
what to review in a rangesem_certify with range: "main..HEAD"
what changedsem_diff
how X evolved / who changed itsem_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.

CLI

# 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.

Draw the blast radius in your reply

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.

Make the leverage felt

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.

Install check

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.

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.