weavatrix-js

weavatrix-js is a skill for Claude Code, Codex from Weavatrix/weavatrix-js. It costs 60 tokens per session (6,277 once invoked), scanned A, original, MIT.

A local code-analysis layer that builds a bounded graph of a repository, meaning a map of its files and relationships. It helps inspect structure, history, health, duplication, dead code, endpoints, and change impact.

In plain words
What is it for?
Use it to explore repositories, trace API endpoints, assess refactoring risk, find dead or duplicated code, enforce a target architecture, and check changes before a pull request.
Why use it?
It reduces the repeated effort of learning unfamiliar codebases and checking whether a change affects other parts of the application.

Skill for Claude CodeCodex

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/weavatrix/weavatrix-js/skill
Any agent
npx skills add Weavatrix/weavatrix-js --skill skill
Clone the repo
git clone --depth 1 https://github.com/Weavatrix/weavatrix-js

Made for: Claude Code, Codex.

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 weavatrix-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/weavatrix/weavatrix-js/skill.svg)](https://agentmods.dev/skills/weavatrix/weavatrix-js/skill)
Your own site
<a href="https://agentmods.dev/skills/weavatrix/weavatrix-js/skill"><img src="https://agentmods.dev/badge/skills/weavatrix/weavatrix-js/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,277 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.00060 $0.06277
Opus 5 $0.00030 $0.03138
Sonnet 5 $0.00012 $0.01255
Haiku 4.5 $0.00006 $0.00628

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

Security

Grade A, and why

weavatrix-js 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 3d 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.

skill/SKILL.md · 375 lines

How it starts

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

weavatrix MCP

Structure-analysis tools over a prebuilt code graph plus the weavatrix analysis engines. The default offline profile contains no HTTP tool and permits repository switching only through an explicit local open_repo call. Use pinned when a shared MCP process must never change or inspect outside its startup repository.

Step 0 — if the tools are missing

Tools are named mcp__weavatrix__…. If none are available, ask the user to register the server (claude mcp add -s user weavatrix-js -- npx -y weavatrix-js <repoRoot>; Codex: codex mcp add weavatrix-js -- npx -y weavatrix-js <repoRoot>), then retry.

First compare the selected profile with the graph_stats runtime line. Expected catalogs are 31 tools for pinned and 34 for offline. Weavatrix refuses initialize, tools/list, and tool calls when the running package version differs from the package.json version on disk, with a loud STALE_RUNTIME error; restart/reconnect rather than using an old daemon. WEAVATRIX_ALLOW_STALE_RUNTIME=1 is only for deliberate source development. A custom capability list needs crossrepo for trace_api_contract. Legacy network profile names fail loudly and direct the user to the separate weavatrix-online package.

Profiles use the same npm package and binary:

  • offline (default): all local analysis and explicit open_repo; no HTTP tools.
  • pinned: local analysis with no open_repo, no global/cross-repository graph access, and no HTTP tools.

Intent router

Weavatrix is not one report or three fixed workflows. Its 34 methods expose different bounded views and analyses over the same reusable graph. Start from the task and choose the smallest sufficient projection; expand only when the answer requires it.

Graph views and application understanding

  • Confirm repository, graph freshness and build mode: graph_stats; use rebuild_graph only for a reported fallback/error or an intentional mode/precision change.
  • Switch or inventory local repositories: list_known_repos -> open_repo -> graph_stats.
  • See production module topology: module_map; use this first for a large unfamiliar application.
  • See discovered communities and their members: list_communities -> get_community.
  • Find high-coupling hubs: god_nodes; repeated call sites do not inflate unique connectivity.
  • Inspect one graph entity: get_node; pass an exact node ID when labels are ambiguous.
  • Inspect direct one-hop relations: get_neighbors; do not confuse it with transitive impact.
  • Find a connectivity path between two concepts: shortest_path. It traverses the graph as undirected reachability, so it is not proof of call/dependency direction; confirm direction with get_neighbors and read_source.
  • Explore an unknown entry point or architectural question: query_graph; pin seed_files or exact seed_symbols when known. Use relation_filter plus flow_direction for a bounded event, worker, queue, cron, CLI, or data-flow view; keep a broad natural-language result as orientation evidence.
  • Inspect one exact symbol deeply: context_bundle for the bounded edit workset; inspect_symbol for the raw point query and on-demand JS/TS reference evidence.
  • Confirm graph evidence in source: read_source; use search_code only for a narrow regex/glob check. Search is supporting evidence, not the repository-intelligence layer.

Read the full file on GitHub · 375 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. 3d ago First seen · 375 lines · 60 tokens per session scan A 92f5811d0d1e

Subscribe to this mod's changes

weavatrix-js is a skill published in the GitHub repository Weavatrix/weavatrix-js (0 stars, last pushed 9d ago), licensed MIT. It adds 60 tokens to every session and 6,277 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

weavatrix-refactor-js

Apply hash-verified refactoring edit plans: a weavatrix-refactor-js plan producer computes and proves a plan against the read-only core, then applyeditplan previews it (issuing a confirm token), applies with automatic rollback, and verifiedchange proves it. The only Weavatrix component that writes code.

Weavatrix/weavatrix-refactor-js · 70 tokens

lint-js

Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).

denoland/deno · 29 tokens

electron-node-upgrade

Guide for performing Node.js version upgrades in the Electron project. Use when working on the roller/node/main branch to fix patch conflicts during e sync --3. Covers the patch application workflow, conflict resolution, analyzing upstream Node.js changes, building, running the Node.js test suite, and proper commit…

electron/electron · 69 tokens

git-cleanup

Clean up local git branches and remotes accumulated from PR reviews. Use when the user asks to clean branches, remove stale remotes, or tidy up the local git state.

alibaba/page-agent · 39 tokens

Shade dropdown surface contract

DropdownMenu, Select, and Popover share one visual recipe (bg-surface-elevated-2 + border-border/60 dark:border-border/30 + shadow-md). Change them together. Trigger when editing any of those three Shade files.

TryGhost/Ghost · 54 tokens

Shade ShadCN install

Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.

TryGhost/Ghost · 72 tokens