semdex-mcp-server: Skill for Claude Code

.claude/skills/sdx-init/SKILL.md

sdx-init is a skill for Claude Code from raghavwahi/semdex-mcp-server. It costs 42 tokens per session (333 once invoked), scanned A, original, MIT.

Instructions for initializing Semdex in a repository, including indexing source files and downloading its embedding model.

In plain words
What is it for?
Use them after cloning a repository or when setting up a new one, optionally limiting indexed directories or previewing the work first.
Why use it?
They provide the first-time setup needed before Semdex can search the codebase.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is raghavwahi/semdex-mcp-server's own configuration. It tells Claude Code how to work on semdex-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything semdex-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to raghavwahi/semdex-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/raghavwahi/semdex-mcp-server/main/.claude/skills/sdx-init/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/raghavwahi/semdex-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sdx-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/raghavwahi/semdex-mcp-server/sdx-init/github.svg)](https://agentmods.dev/skills/raghavwahi/semdex-mcp-server/sdx-init)
Your own site
<a href="https://agentmods.dev/skills/raghavwahi/semdex-mcp-server/sdx-init"><img src="https://agentmods.dev/badge/skills/raghavwahi/semdex-mcp-server/sdx-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sdx-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/raghavwahi/semdex-mcp-server/sdx-init"><img src="https://agentmods.dev/badge/skills/raghavwahi/semdex-mcp-server/sdx-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00333
Opus 5.5 $0.00017 $0.00133
Sonnet 5.5 $0.00008 $0.00067
Haiku 4.5 $0.00004 $0.00033

Measured 2mo ago against content hash a62f801cc6ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sdx-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/sdx-init/SKILL.md · 43 lines

What it actually says

Initialize Semdex

First-Time Setup

# Index the entire repo
sdx init

# Index only specific directories (skip tests, fixtures)
sdx init --scope src/ --scope lib/

# Index with preview (show what would be indexed without storing)
sdx init --dry-run

# Force re-download of embedding model
sdx init --force-model-download

What It Does

  1. Creates .repoidentity/ directory structure
  2. Downloads embedding model (Xenova/all-MiniLM-L6-v2, ~45 MB q8) with progress bar
  3. Scans repo for source files (TypeScript + Python in MVP)
  4. Parses each file with Tree-sitter WASM grammars
  5. Extracts semantic chunks (functions, classes, interfaces, etc.)
  6. Computes XXH3 content hashes for each chunk
  7. Generates embeddings for each chunk (cached — skips if content hasn't changed)
  8. Stores everything in .repoidentity/index.db (SQLite + sqlite-vec)
  9. Generates manifest with detected languages and frameworks

After Init

  • Run sdx serve to start the MCP server
  • Run sdx inspect --stats to verify the index
  • Run sdx bench --quick to check performance
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 43 lines · 42 tokens per session scan A a62f801cc6ca

Subscribe to this mod's changes

sdx-init is a skill published in the GitHub repository raghavwahi/semdex-mcp-server (0 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 333 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sdx-init compared with skills from other repositories

sdx-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sdx-initraghavwahi/semdex-mcp-serverSkill03mo agoMITA42Claude Code
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code
agent-platform-rag-engine-managementgoogle/skillsSkill24kyesterdayApache-2.0A85Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill33ktodayMITA54Claude Code, Codex
9router-embeddingsdecolua/9routerSkill32ktodayMITA66Claude Code, Codex
embedding-strategiesforyourhealth111-pixel/Vibe-SkillsSkill3.8kyesterdayApache-2.0A37Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.8kyesterdayApache-2.0A30Claude Code, Codex