code-topic-walk

code-topic-walk is a skill for Claude Code, Codex from pranava0x0/Commonwealth-MCP. It costs 107 tokens per session (1,562 once invoked), scanned A, original, Apache-2.0.

A guide for finding a section of the Code of Virginia by subject when you do not know its citation. The Code of Virginia is Virginia's organised collection of state laws, arranged into titles, chapters, and sections.

In plain words
What is it for?
Use it to investigate what Virginia law says about topics such as zoning, annexation, public-records access, or other state-law subjects. It helps connect a question to the appropriate title, chapter, and section.
Why use it?
It avoids guessing a legal citation or answering from memory when a question names only a topic. It walks through the Code's own structure before reading the relevant section.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the commonwealth-mcp plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to investigate what Virginia law says about topics such as zoning, annexation, public-records access, or other state-law subjects. It helps connect a question to the appropriate title, chapter, and section.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pranava0x0/commonwealth-mcp/code-topic-walk
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 pranava0x0/Commonwealth-MCP --skill code-topic-walk
Clone the repo
git clone --depth 1 https://github.com/pranava0x0/Commonwealth-MCP

Made for: Claude Code, Codex.

Or install commonwealth-mcp, the plugin that ships this one along with the rest of its 6 skills, 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 code-topic-walk

README.md
[![agentmods](https://agentmods.dev/badge/skills/pranava0x0/commonwealth-mcp/code-topic-walk/github.svg)](https://agentmods.dev/skills/pranava0x0/commonwealth-mcp/code-topic-walk)
Your own site
<a href="https://agentmods.dev/skills/pranava0x0/commonwealth-mcp/code-topic-walk"><img src="https://agentmods.dev/badge/skills/pranava0x0/commonwealth-mcp/code-topic-walk/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 code-topic-walk

Your own site · 80×15
<a href="https://agentmods.dev/skills/pranava0x0/commonwealth-mcp/code-topic-walk"><img src="https://agentmods.dev/badge/skills/pranava0x0/commonwealth-mcp/code-topic-walk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,562 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.00107 $0.01562
Opus 5 $0.00053 $0.00781
Sonnet 5 $0.00021 $0.00312
Haiku 4.5 $0.00011 $0.00156

Measured yesterday against content hash 96e5892985e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

code-topic-walk 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 yesterday.

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.

plugins/commonwealth-mcp/skills/code-topic-walk/SKILL.md · 128 lines

How it starts

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

Code of Virginia, by topic

The publisher runs no full-text search operation. Its own search backend was down when this was checked, and its JSON API has no search at all. So a reader who says "what does Virginia law say about short-term rentals" cannot be answered by searching, and the two ways to fail here are equally bad: guessing a citation that sounds right, or answering the legal question from memory and dressing it in a section number afterwards.

What is available is the Code's own structure: titles, a title's chapters, a chapter's sections. That is a hierarchy a reader can be walked down, and each level's rows carry the arguments for the level below. This walk is that descent, and it states where the descent stopped.

1. Establish the frame

  • A title is a subject area, and the mapping from a question to a title is the hard step. Local government is Title 15.2. Motor vehicles is 46.2. Crimes is 18.2. That mapping is knowledge about the Code's organisation, not about the law, and it is the one place this walk reasons rather than reads.
  • A citation is title-section, and the section number carries the chapter: 15.2-2200 is in Title 15.2, chapter 22. Reading that structure off a citation is how a caller who has one skips straight to the text.
  • Sections are repealed, renumbered, and added. A citation that is not found is a fact about the Code as published today, not an error, and the publisher redirects rather than returning a not-found status.
  • The published text is the text. It is not the annotations, the case law, or the regulations promulgated under it, and none of those are here.

2. Minimum data walk

Step 1 — name candidate titles. From the subject, propose the titles that plausibly hold it, and say why each. Two or three, not one: a subject often sits in more than one, and land use touches both local-government authority and the enabling statutes for specific tools.

Step 2 — read the title list and check the names. Walk the contents from the top and read the titles as published. This is the step that catches a title that was renumbered or one that never existed under the name assumed. A title the Code does not have and a title with no chapters come back the same way, so say which question was asked.

Read the full file on GitHub · 128 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. yesterday First seen · 128 lines · 107 tokens per session scan A 96e5892985e7

Subscribe to this mod's changes

code-topic-walk is a skill published in the GitHub repository pranava0x0/Commonwealth-MCP (0 stars, last pushed today), licensed Apache-2.0. It adds 107 tokens to every session and 1,562 once invoked, about $0.0005 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-09-10.

Related

Other skills, from other repositories

find-the-public-record

Find which public record actually settles a question about a local market or a specific property in any US metro, then go and read it. Use before researching a local market, and whenever a question is about a place outside the Twin Cities where no dataset is loaded.

2016judea/small-business-intelligence-mcp · 57 tokens

vendor-management

Manage ServiceNow vendors and contracts — corecompany vendor records, astcontract with renewal alerts, astcontractsla performance tracking, vendorriskassessment scoring, and vendor scorecards.

serac-labs/serac · 40 tokens

affiliation-map

A company-affiliation map built from Russian business registry records. It links founders, managers, related companies, registration details, and bankruptcy information.

theYahia/WWmcp · 26 tokens

arcgis-portal-mcp

MCP server for ArcGIS Portal and ArcGIS Online. 70 tools for search, inspect, publish, query, manage, audit, and administer ArcGIS content. Use when: the user wants to work with feature services, web maps, layers, groups, users, webhooks, or portal administration through an AI assistant.

Asem-D/arcgis-portal-mcp · 73 tokens

bulk-campaign

Send a bulk SMS campaign in Turkey — balance check, opt-out filter, İYS consent, delivery report.

theYahia/WWmcp · 25 tokens

check-company

A company-checking workflow for Russian businesses using their tax or registration number. It gathers a brief report, financial statements, bankruptcy records, and court cases.

theYahia/WWmcp · 26 tokens