codebase-analyzer

codebase-analyzer is a skill for Claude Code from notque/vexjoy-agent. It costs 15 tokens per session (1,777 once invoked), scanned A, original, MIT.

A measurement-based tool for discovering common rules in Go codebases. It counts patterns in the code first, then uses those measurements to identify likely local conventions.

In plain words
What is it for?
Use it to study naming, signatures, structure, and coding idioms across Go repositories or to track how patterns change over time.
Why use it?
It replaces assumptions about how code should look with evidence from the project itself.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to study naming, signatures, structure, and coding idioms across Go repositories or to track how patterns change over time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notque/vexjoy-agent/codebase-analyzer
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.

Any agent
npx skills add notque/vexjoy-agent --skill codebase-analyzer
Clone the repo
git clone --depth 1 https://github.com/notque/vexjoy-agent

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 codebase-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/notque/vexjoy-agent/codebase-analyzer/github.svg)](https://agentmods.dev/skills/notque/vexjoy-agent/codebase-analyzer)
Your own site
<a href="https://agentmods.dev/skills/notque/vexjoy-agent/codebase-analyzer"><img src="https://agentmods.dev/badge/skills/notque/vexjoy-agent/codebase-analyzer/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 codebase-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/notque/vexjoy-agent/codebase-analyzer"><img src="https://agentmods.dev/badge/skills/notque/vexjoy-agent/codebase-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,777 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00015 $0.01777
Opus 5.5 $0.00006 $0.00711
Sonnet 5.5 $0.00003 $0.00355
Haiku 4.5 $0.00002 $0.00178

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

Security

Grade A, and why

codebase-analyzer 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cartographer_omni.py, scripts/cartographer_ultimate.py, scripts/cartographer.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/research/codebase-analyzer/SKILL.md · 186 lines

How it starts

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

Codebase Analyzer Skill

Statistical rule discovery through measurement of Go codebases. Python scripts count patterns to avoid LLM training bias, then statistics are interpreted to derive confidence-scored rules. The core principle is Measure First, Interpret Second -- what IS in the code is the local standard, not what an LLM thinks "should be" there.

Deep References

Load on demand when the corresponding signal appears.

Signal Reference Content
Three-lens methodology references/three-lenses.md Consistency, Signature, Idiom lens details
Phase banners, error catalog, reconciliation references/phase-details.md Phase templates, rule format, error catalog
100-metric catalog references/metrics-catalog.md All metrics across 25 categories
Worked examples references/examples.md Single repo, multi-repo, evolution tracking workflows

Instructions

Phase 1: CONFIGURE

Goal: Validate target and select analyzer variant.

Read and follow the repository's CLAUDE.md before doing anything else -- project instructions override default behaviors.

Step 1: Validate the target

  • Confirm path points to a Go repository root with .go files
  • Check for standard structure (cmd/, internal/, pkg/)
  • Verify sufficient file count: 50+ files for meaningful rules, 100+ ideal. Below 50 files, statistics produce high variance -- patterns that look consistent may be coincidence. For small repos, combine analysis across multiple team repos rather than treating thin data as definitive.

Step 2: Select cartographer variant

Variant Script Metrics Use When
Omni (recommended) cartographer_omni.py 100 across 25 categories Full codebase profiling
Basic cartographer.py ~15 categories Quick pattern overview
Ultimate cartographer_ultimate.py 6 focused categories Performance pattern detection

Step 3: Verify environment

  • Python 3.7+ available
  • No external dependencies needed (uses only Python standard library)
  • Output directories exist or can be created

Read the full file on GitHub · 186 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -169 lines · +4 tokens per session a19aa88f755a
  2. 1mo ago Changed · -17 lines b9bec5f585be
  3. 1mo ago First seen · 203 lines · 15 tokens per session scan A 24044a621d75

Subscribe to this mod's changes

codebase-analyzer is a skill published in the GitHub repository notque/vexjoy-agent (443 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,777 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

golang-rules

Go coding rules: style, patterns, security, testing. Triggers: .go, go.mod, go.sum, Gin, Echo, Gorilla, testing, gofmt.

softspark/ai-toolkit · 40 tokens

unit-test

A Go testing workflow for writing unit tests: small tests that check individual functions or components. It supports table-driven cases, where many inputs and expected results are organised in one test, and subtests.

johnqtcg/awesome-skills · 100 tokens

go-code-reviewer

Review Go code with a defect-first approach using repository policy (constitution.md first, then AGENTS.md fallback). Use for code review, PR review, quality checks, risk analysis, and regression detection.

johnqtcg/awesome-skills · 45 tokens

go-dependency-audit

Go dependency audit specialist for CVE scanning (govulncheck), license risk triage, outdated dependency detection, upgrade impact analysis, and supply chain security. ALWAYS use when auditing go.mod dependencies, running govulncheck, checking license compatibility, planning dependency upgrades, or investigating supply…

johnqtcg/awesome-skills · 102 tokens

go-review-lead

Orchestrate a comprehensive Go code review by triaging code changes, dispatching vertical review skills (security, concurrency, error, logic, performance, quality, test, observability) as parallel agents, then consolidating results into a unified report. Use for full Go PR review or comprehensive code review. Replaces…

johnqtcg/awesome-skills · 80 tokens

fuzzing-test

A Go testing guide for generating fuzz tests, which repeatedly try varied inputs to find crashes and unexpected behavior. It first checks whether the code is suitable for fuzzing.

johnqtcg/awesome-skills · 74 tokens