validate-context-routes

validate-context-routes is a skill for Claude Code, Codex from bgreenwell/dotagents. It costs 44 tokens per session (139 once invoked), scanned A, original, MIT.

A validator for literal project-relative file paths written in a root `AGENTS.md` file, which gives coding agents project instructions. It checks whether those referenced paths exist.

In plain words
What is it for?
Use it after changing `AGENTS.md` routing or moving documentation and `.agents` resources. URLs, globs, dynamic paths, and unmarked references still need manual checking.
Why use it?
It helps find broken links in agent instructions after documentation or shared-resource files move.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

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/bgreenwell/dotagents/validate-context-routes
Any agent
npx skills add bgreenwell/dotagents --skill validate-context-routes
Clone the repo
git clone --depth 1 https://github.com/bgreenwell/dotagents

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 validate-context-routes

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgreenwell/dotagents/validate-context-routes.svg)](https://agentmods.dev/skills/bgreenwell/dotagents/validate-context-routes)
Your own site
<a href="https://agentmods.dev/skills/bgreenwell/dotagents/validate-context-routes"><img src="https://agentmods.dev/badge/skills/bgreenwell/dotagents/validate-context-routes.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 139 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.1 $0.00044 $0.00139
Opus 5 $0.00022 $0.00069
Sonnet 5 $0.00009 $0.00028
Haiku 4.5 $0.00004 $0.00014

Measured 6d ago against content hash bc69ebb47858, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

validate-context-routes 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.sh), 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.

.agents/skills/validate-context-routes/SKILL.md · 19 lines

What it actually says

Validate context routes

Run the bundled validator from the project root:

.agents/skills/validate-context-routes/scripts/validate.sh

Pass another project root as the first argument when needed.

Review every reported missing path. Treat dynamic paths, globs, URLs, and references without backticks as requiring manual review because the script validates only literal project-relative paths enclosed in backticks.

Do not modify files during validation.

Files

What ships with it

1 file 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. 6d ago First seen · 19 lines · 44 tokens per session scan A bc69ebb47858

Subscribe to this mod's changes

validate-context-routes is a skill published in the GitHub repository bgreenwell/dotagents (87 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 139 once invoked, about $0.0002 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

synap

Add persistent, structured long-term memory to AI agents using Maximem Synap. Use this skill whenever the user is building, debugging, or evaluating an AI agent and mentions any of: "memory", "long-term memory", "persistent memory", "agent memory", "remember across sessions", "context window", "agent forgets", "user…

maximem-ai/maximem_synap_sdk · 0 tokens

synap

Add persistent, structured long-term memory to AI agents using Maximem Synap. Use this skill whenever the user is building, debugging, or evaluating an AI agent and mentions any of: "memory", "long-term memory", "persistent memory", "agent memory", "remember across sessions", "context window", "agent forgets", "user…

maximem-ai/maximem_synap_sdk · 0 tokens

acontext-installer

Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.

memodb-io/Acontext · 22 tokens

save-context

Use this skill at milestone handoff, session close, or when the user asks Atlas to preserve state.

pioneerjeff-labs/packwright · 0 tokens

chroma-hybrid-search

Local hybrid retrieval (BM25 + ChromaDB vector + BGE-Reranker) over /.deep-memory hot and cold stores. Use when high-accuracy code/solution retrieval is needed and hallucination must be minimized. Typically invoked by deep-memory.

masteryee-labs/Tool.Agent-Harness-Deploy · 57 tokens

error-log

Apply when learning from a mistake. Central memory of past errors and derived rules; consult before logging a new error to avoid duplicates.

sordi-ai/skill-everything · 29 tokens