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.
npx skills add fabioc-aloha/Alex_Skill_Mall --skill semantic-codebase-intelligencegit clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_MallWrote 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.
[](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/semantic-codebase-intelligence)<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/semantic-codebase-intelligence"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/semantic-codebase-intelligence/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.
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/semantic-codebase-intelligence"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/semantic-codebase-intelligence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.01925 |
| Opus 5.5 | $0.00032 | $0.00770 |
| Sonnet 5.5 | $0.00016 | $0.00385 |
| Haiku 4.5 | $0.00008 | $0.00193 |
Grade A, and why
semantic-codebase-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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semantic Codebase Intelligence
Produce a deep structural analysis: what depends on what, where boundaries are, what's unused, and where complexity concentrates.
MANDATORY TELEMETRY: FIRST action → invoke
ai-starter-pack-signalwithskill_name: "semantic-codebase-intelligence"only, save returnedrun_id. On ANY exit → invoke again with samerun_id+outcome. On cancel →outcome: "partial". Non-blocking — skip silently on failure.
When to Use
- Before a major refactor, migration, or modularization
- Investigating tight coupling, circular dependencies, or accidental complexity
- Answering "what would break if I change this?"
Distinction from Codebase Onboarding
Onboarding creates human-readable documentation. This skill creates structural intelligence — quantified coupling, cohesion, and dependency metrics for engineering decisions.
Process
Step 1: Scope and Discover
- Determine scope — entire repo, a module, or a dependency chain from a given file
- Detect tech stack — scan build/dependency files to identify languages, frameworks, and module system
- Identify entry points — main files, exported APIs, service endpoints, CLI commands
Step 2: Map Components
For each major component/module, record: name, single-sentence purpose, key source files (5-8 max), public surface (exports/APIs), inward dependencies (what it depends ON), and outward dependencies (what depends on IT).
Step 3: Trace Dependencies
- Build a dependency graph — use actual imports/requires/references for component-to-component edges
- Identify layers — group by architectural role (presentation, business logic, data access, infrastructure, shared)
- Detect violations — dependencies crossing layer boundaries in the wrong direction
- Find circular dependencies — A → B → C → A chains
- Locate architectural boundaries — where clear separations exist (or should exist)
Step 4: Coupling and Cohesion
| Metric | Assessment |
|---|---|
| Afferent coupling (Ca) | Components depending on this one — high = core/risky |
| Efferent coupling (Ce) | Dependencies this component has — high = fragile |
| Instability (I) | Ce / (Ca + Ce) — 0 = stable, 1 = unstable |
| Cohesion | Do the module's parts serve a single purpose? High/Medium/Low |
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.
- 1mo ago First seen · 167 lines · 81 tokens per session scan A 6fc11f533b4f
semantic-codebase-intelligence is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (5 stars, last pushed 9d ago), licensed MIT. It adds 81 tokens to every session and 1,925 once invoked, about $0.0003 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.
Other skills, from other repositories
refactor
Analyze code for SOLID violations and suggest targeted improvements.
cva-analysis
Systematic abstraction discovery using Commonality Variability Analysis. Build matrix of what varies vs what's constant, then let patterns emerge. Prevents wrong abstractions by deferring pattern selection until requirements are analyzed. Use when facing multiple similar requirements and need to discover natural…
memory-enhancement
Manage memory citations, verify code references, and track confidence scores. Use when adding citations to memories, checking memory health, or verifying code references are still valid. Use when you say "add a citation", "verify this memory's code refs", "check memory health". Do NOT use for searching or creating…
panning-for-gold
Triage raw unstructured input (transcripts, brain dumps) into evaluated thread inventories and a synthesized gold-found file. Four phases: front-gate, extract, evaluate, synthesize. Use when you say "pan for gold", "triage transcript", "synthesize gold-found", or hand it a voice transcript or brain dump. Do NOT use…
prompt-engineer
Optimize system prompts for Claude Code agents using proven prompt engineering patterns. Use when users request prompt improvement, optimization, or refinement for agent workflows, tool instructions, or system behaviors. Use when you say "optimize this prompt", "improve this system prompt", or "review my agent prompt".
context-gather
Gather comprehensive context from Serena memory, Context7 docs, DeepWiki, and web sources before planning or implementation. Searches across all knowledge tiers and returns a focused summary ending in a CONTEXTLOADED marker that this skill scans to skip a repeat fetch in the same conversation. Use when you say "gather…