repository-intelligence

repository-intelligence is a skill for Claude Code, Codex from cmdr-chara/codex-toolkit. It costs 80 tokens per session (1,847 once invoked), scanned A, original, MIT.

A repository-analysis guide that maps a codebase’s structure, ownership, dependencies, boundaries, risk areas, and likely effects of a proposed change. A repository is the project’s stored source code and related files.

In plain words
What is it for?
Use it to document architecture, identify owners and dependency boundaries, assess change impact, find risky shared areas, and spot likely edit or merge conflicts.
Why use it?
It helps you understand where a change belongs and what it might affect before editing. The analysis is evidence-based and does not silently modify the repository.

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/cmdr-chara/codex-toolkit/repository-intelligence
Any agent
npx skills add cmdr-chara/codex-toolkit --skill repository-intelligence
Clone the repo
git clone --depth 1 https://github.com/cmdr-chara/codex-toolkit

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 repository-intelligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/repository-intelligence.svg)](https://agentmods.dev/skills/cmdr-chara/codex-toolkit/repository-intelligence)
Your own site
<a href="https://agentmods.dev/skills/cmdr-chara/codex-toolkit/repository-intelligence"><img src="https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/repository-intelligence.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,847 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.00080 $0.01847
Opus 5 $0.00040 $0.00924
Sonnet 5 $0.00016 $0.00369
Haiku 4.5 $0.00008 $0.00185

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

Security

Grade A, and why

repository-intelligence 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/repo_signal_scan.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/repository-intelligence/SKILL.md · 193 lines

How it starts

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

Repository Intelligence

Produce a decision-grade map before high-blast-radius work. Analyze; do not silently edit.

Trigger boundary

Use this skill for requests such as:

  • “Map the architecture and service boundaries before we change authentication.”
  • “What consumes this schema, and what is the blast radius?”
  • “Find ownership gaps, risky hubs, and likely merge-conflict surfaces.”
  • “Explain where a new capability belongs without modifying the repository.”

Do not trigger for:

  • assigning tasks or spawning agents—use multi-agent-work-coordinator after the map exists;
  • explaining one observed failure—use debugging-investigator;
  • executing a planned upgrade—use codebase-evolution-controller;
  • a narrow symbol lookup that does not need architecture or impact reasoning.

Required inputs

Obtain or state:

  1. repository root and current working-tree state;
  2. decision to inform or proposed change hypothesis;
  3. base/head refs when impact is diff-driven;
  4. depth and excluded areas, including generated or vendored code;
  5. evidence constraints, such as unavailable history or missing build tooling.

If the change is unspecified, map the repository generally but label change-impact conclusions as provisional.

Safety baseline

  • Inspect git status --short before analysis. Never assume a clean tree.
  • Do not checkout, reset, clean, stash, reformat, regenerate, or install dependencies.
  • Treat uncommitted files as user work and include them in conflict analysis when relevant.
  • Keep generated, vendored, cache, and dependency directories out of source statistics unless they are the subject.
  • Never infer ownership solely from directory names or a single git blame line.

Workflow

1. Frame the decision

Write a one-sentence intelligence question and an evidence threshold. Examples:

Question: Which components, contracts, and operational surfaces can be affected by changing session token rotation?
Threshold: Every high-confidence edge must cite a manifest, import, call site, schema, CI/deploy file, owner rule, or history sample.

Read the full file on GitHub · 193 lines

Files

What ships with it

4 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. 3d ago First seen · 193 lines · 80 tokens per session scan A a648c82a6c30

Subscribe to this mod's changes

repository-intelligence is a skill published in the GitHub repository cmdr-chara/codex-toolkit (2 stars, last pushed 6d ago), licensed MIT. It adds 80 tokens to every session and 1,847 once invoked, about $0.0004 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.