language-support

language-support is a skill for Claude Code, Codex from Goldziher/basemind. It costs 6 tokens per session (651 once invoked), scanned A, original, MIT.

A guide for adding another programming language to basemind, a code-analysis tool. It uses tree-sitter, a system that reads source code structure, to find symbols and references.

In plain words
What is it for?
Use it to add a language’s file extensions, detect functions and classes, find method calls, and test extraction against real code.
Why use it?
It gives you the required registry, file-scanning, and code-query changes needed for a new language.

Skill for Claude CodeCodex

Part of the basemind plugin — 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/goldziher/basemind/language-support
Any agent
npx skills add Goldziher/basemind --skill language-support
Clone the repo
git clone --depth 1 https://github.com/Goldziher/basemind

Made for: Claude Code, Codex.

Or install basemind, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server.

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 language-support

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldziher/basemind/language-support.svg)](https://agentmods.dev/skills/goldziher/basemind/language-support)
Your own site
<a href="https://agentmods.dev/skills/goldziher/basemind/language-support"><img src="https://agentmods.dev/badge/skills/goldziher/basemind/language-support.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 651 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00006 $0.00651
Opus 5 $0.00003 $0.00326
Sonnet 5 $0.00001 $0.00130
Haiku 4.5 $0.00001 $0.00065

Measured 5d ago against content hash a3b3e6306003, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

language-support 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 5d 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.

.ai-rulez/skills/language-support/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Language Support

Use this to add a new language to basemind's extraction. Supported languages today include Rust, Python, TypeScript/JSX, JavaScript, Go.

Inputs needed

  • A tree-sitter grammar crate (e.g. tree-sitter-elixir) reachable via the tree-sitter-language-pack umbrella crate basemind already depends on, or as a direct dep.
  • The grammar's upstream queries/tags.scm from the tree-sitter org repo — it's the canonical starting point for symbol + reference extraction.

Steps

  1. Register the language

    • Add the lang ID + file extensions to src/lang.rs's language registry.
    • Add the extensions to the scanner's accepted-extension set in src/scanner.rs (or the central glob if one exists).
  2. L1 (outline) queries

    • Adapt the upstream tags.scm to basemind's L1 capture shape: @symbol.function, @symbol.method, @symbol.class, etc. mapped to extract::SymbolKind.
    • Place query string in src/queries/<lang>.rs (or under src/extract/queries/, matching the existing layout).
    • Wire into extract::l1::extract's language dispatch.
  3. L2 (calls) queries

    • Add a call query: callees as @call.callee plus optional receiver / type info.
    • Wire into extract::l2::extract's dispatch. Remember to populate start_row / start_col on Call.
  4. Fixtures + smoke test

    • Add a synthetic file under tests/fixtures/<lang>/ exercising at least: one function def, one method, one call site, one import.
    • Add assertions in tests/mcp_smoke.rs (or a new tests/<lang>_smoke.rs) covering code mode outline + mode references for the fixture.
  5. Harden harness canary

    • Pick a real OSS repo for the language (criteria: stable, ≥ a few hundred files, well-known canary symbols). Add to the repo list in tests/harden.rs with a clone URL + optional --depth.
    • Add a >= N canary assertion (code mode references or mode symbols) — see the harness-canary-authoring skill.
  6. README

    • Update the supported-languages list with the new language and file extensions.

Read the full file on GitHub · 46 lines

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. 5d ago First seen · 46 lines · 6 tokens per session scan A a3b3e6306003

Subscribe to this mod's changes

language-support is a skill published in the GitHub repository Goldziher/basemind (98 stars, last pushed 3d ago), licensed MIT. It adds 6 tokens to every session and 651 once invoked, about $0.0000 per session on Opus 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-30.

Related

Other skills, from other repositories

debug-evals

Debug haiku.rag evaluation runs in Logfire. Use when asked to look at Logfire for an eval run, find failing or low-scoring eval cases, compare runs, check citation quality (citedmap) or judge pass rate (answerequivalent), or explain why an eval case failed. Drives the Logfire MCP against the evals service, or the…

ggozad/haiku.rag · 103 tokens

projectatlas

Use ProjectAtlas as the atlas-first orientation layer before broad source reads, with MCP-first task startup, short-alias worktree registration and routing, safe targeted initialization, ranked navigation, exact or federated graph evidence, purpose curation, health, lint, and repository-wide token reporting.

styler-ai/ProjectAtlas · 60 tokens

codex-coding-plugin

Build, review, or fix ProjectAtlas plugin/runtime installer integration for Codex, Claude Code, and OpenCode, especially version convergence, stale ProjectAtlas cache repair, MCP config generation, skill artifacts, host smoke tests, and fake-host tests for ProjectAtlas releases.

styler-ai/ProjectAtlas · 59 tokens

research

Performs deep research on a topic via deepresearch. Simulates a multi-step research process and returns a comprehensive research result as a string.

study8677/repobrain · 32 tokens

change-review

Use when reviewing a set of changes before they merge — a PR, a branch diff, or the working-tree changes you just made — in a Repowise-indexed codebase (.repowise/ directory exists). Activates for "review this PR", "is this safe to merge", "what's the blast radius of these changes", "did I miss anything", or "what…

repowise-dev/repowise · 87 tokens

lsp-refactor

End-to-end safe refactor workflow — blast-radius analysis, speculative preview, apply to disk, verify build, run affected tests. Inlines lsp-impact + lsp-safe-edit + lsp-verify + lsp-test-correlation into one coordinated sequence.

blackwell-systems/agent-lsp · 57 tokens