Index of every page on this site: llms.txt
All skills
ataraxy-labs avatar

/agent-skill

@1ab7cfb
by Ataraxy Labs Inc.ataraxy-labs/sem3.5k stars
111
Run it yourself

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.

  • 8 files
  • 48.2 KB
  • License
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/ataraxy-labs/sem/agent-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈965 tokens on demand. Your agent reads this file only when SKILL.md points to it.

@ataraxy-labs/sem-skill

One-command setup of sem (entity-level code intelligence) for coding agents.

npx @ataraxy-labs/sem-skill

This:

  1. Installs the sem skill into ~/.claude/skills/sem/ so the agent knows when and how to reach for sem (find, grep, impact, check, certify) instead of grep for structural code questions.
  2. Registers the sem MCP server (sem mcp) at user scope, so the sem_find / sem_impact / sem_check / sem_certify / ... tools are available in every session.

Optional: a live sem badge in your statusline

npx @ataraxy-labs/sem-skill --badge

Adds a live badge to your Claude Code statusline. The moment your agent triggers sem you see an animated spinner with the entity being analyzed (⊕ sem ⠹ impact validateToken…), flipping to the result and running savings when it completes. It shows in real time: how many structural queries this session, the last command and the entity it analyzed, its latency, a sparkline of recent latencies, and a rotating stat (distinct entities analyzed, top command) (⊕ sem ×12 impact validateToken 9ms ▁▂▃▅▂ · 7 entities analyzed). It picks up sem whether the agent uses the MCP tools or the sem CLI, and falls back to recent activity so it never gets stuck on "idle". It is opt-in and non-destructive: it backs up your settings, and if you already have a statusline it leaves it untouched and just tells you how to add the badge yourself. To remove it, delete the statusLine key and the mcp__sem__.* and Bash PostToolUse entries from ~/.claude/settings.json.

Everything renders inside the session: sem MCP calls show as proper tool widgets with compact entity trees, and the statusline badge tracks live time/token savings. No extra processes needed. Optionally, for a dedicated terminal pane, the install also drops ~/.claude/sem-live.py:

python3 ~/.claude/sem-live.py

It redraws an ASCII blast-radius graph every time sem runs (the analyzed entity, its direct callers, transitive count), plus a savings meter — a running, honestly-estimated tally of the grep+read round-trips, time, and tokens sem saved you this session, and a lifetime counter that grows across sessions. The estimates are anchored to a measured benchmark and labelled ≈.

Optional: the sem guard (always sem, never grep/read/sed on code)

npx @ataraxy-labs/sem-skill --guard

The skill makes sem the agent's preference; the guard makes it the rule. It installs a PreToolUse hook that denies grep, file reads, and sed/cat on code files, with a reason that redirects the agent to the right sem tool (sem_find with mode=context to read an entity, sem_find with text= or intent= to search, sem_impact for blast radius). The agent can't fall back out of habit.

It is calibrated, not a wall:

  • Pre-edit reads still work: editors require reading a file first, so the second Read of the same path always passes.
  • Non-code files (markdown, JSON, TOML, YAML, ...) are never touched.
  • Pipe filtering is fine: cargo test | grep FAILED passes; grep -rn foo src/ does not.
  • Files outside a git repo pass (sem needs git).
  • Escape hatch: prefix a command with SEM_GUARD=0, or set it in your env to disable the guard entirely.

To remove it, delete the sem-guard.py PreToolUse entries from ~/.claude/settings.json.

It's idempotent, re-run it any time. It needs the sem CLI on PATH (npm i -g @ataraxy-labs/sem or see the install docs); if sem isn't installed yet, the skill and MCP registration still go in and work once it is.

Restart the agent session afterward to load the MCP tools.

Skill content originally contributed by @linhlban150612 (sem PR #376).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 1ab7cfb. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "homepage": "https://github.com/Ataraxy-Labs/sem"
}
Other metadata
compatibility
Requires the sem CLI (https://github.com/Ataraxy-Labs/sem) on PATH and a Git repository

README badge

README badge for ataraxy-labs/sem/agent-skill