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 agentmods add skills/anastasiyaw/codex-claude-code-config/code-complexitynpx skills add AnastasiyaW/codex-claude-code-config --skill code-complexitygit clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-configWhat 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 | $0.00252 | $0.01634 |
| Opus 5 | $0.00126 | $0.00817 |
| Sonnet 5 | $0.00050 | $0.00327 |
| Haiku 4.5 | $0.00025 | $0.00163 |
Grade A, and why
code-complexity 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 2d 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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code complexity — keeping a unit comprehensible
Complexity is not how clever the code is. It is how much you must hold in your head to change one line safely. It accumulates by increments that each look acceptable, which is why it is never one bad commit's fault and always everyone's problem.
The two symptoms worth memorising
Change amplification — one decision, many edits. If changing a timeout means editing five files, that decision was not encapsulated anywhere.
Cognitive load — how much you must know to be safe. A function that is correct only if you know that the caller already took a lock has exported its complexity to everyone who reads it.
Both are properties of the interface, not the implementation. Which gives the rule:
Deep over shallow
A module's value is functionality it provides ÷ interface you must learn. Deep = small
interface, substantial behaviour behind it. Shallow = large interface, little behind it.
- A pass-through method that only calls one other method with the same arguments is negative value: it adds an interface without adding behaviour.
- "One class per concept, many tiny classes" is not automatically good. Many shallow classes cost more total interface than a few deep ones.
- The right question is never "is this class small?" but "how much do I need to know to use it?"
Information hiding — and its inverse
Every design decision that might change should be known to exactly one module. The inverse — information leakage — is when a decision shows up in two places: a file format known to both the reader and the writer, a status string parsed by three modules, a lock the caller has to remember.
Test: if this decision changed, how many files would I edit? More than one is leakage.
Names, functions, errors — the unit level
- Names: a name that needs a comment to explain it is the wrong name. If you cannot name it, you do not yet know what it does — that is information, not a naming problem.
- Functions: one job, one level of abstraction, few parameters. Three or more booleans in a signature is a sign that several functions are hiding in one.
- Comments: comment the why and the constraint, never the what. A comment that restates the code rots the moment the code changes. A comment that records a ceiling or a reason is the most durable thing in the file.
- Errors: define them out of existence where you can (an operation that cannot fail needs no error path); where you cannot, fail loudly and early. Silently swallowing is the failure that looks like success — the most expensive kind.
- Tests: one assertion of behaviour per test, named for the behaviour. A test that needs a comment to say what it proves is not proving it clearly.
What ships with it
21 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.
- references/clean-code-original.md 19 KB
- references/clean-code/code-smells.md 16 KB
- references/clean-code/comments-formatting.md 12 KB
- references/clean-code/error-handling.md 12 KB
- references/clean-code/functions-and-methods.md 12 KB
- references/clean-code/naming-conventions.md 11 KB
- references/clean-code/testing-principles.md 13 KB
- references/pragmatic-programmer-original.md 18 KB
- references/pragmatic-programmer/broken-windows.md 12 KB
- references/pragmatic-programmer/contracts-assertions.md 13 KB
- references/pragmatic-programmer/dry-orthogonality.md 11 KB
- references/pragmatic-programmer/estimation-portfolio.md 14 KB
- references/pragmatic-programmer/reversibility.md 14 KB
- references/pragmatic-programmer/tracer-bullets.md 12 KB
- references/software-design-philosophy-original.md 21 KB
- references/software-design-philosophy/comments-as-design.md 16 KB
- references/software-design-philosophy/complexity-symptoms.md 12 KB
- references/software-design-philosophy/deep-modules.md 13 KB
- references/software-design-philosophy/general-vs-special.md 13 KB
- references/software-design-philosophy/information-hiding.md 12 KB
- references/software-design-philosophy/strategic-programming.md 13 KB
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.
- 2d ago First seen · 129 lines · 252 tokens per session scan A a49b90abea04
code-complexity is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (147 stars, last pushed 7d ago), licensed MIT. It adds 252 tokens to every session and 1,634 once invoked, about $0.0013 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.
Other skills, from other repositories
swarms
Build agents and multi-agent systems with the Swarms framework — the Agent class, tools, autonomous loops, memory, and the 15+ multi-agent architectures (SequentialWorkflow, ConcurrentWorkflow, GraphWorkflow, HierarchicalSwarm, SwarmRouter, and more). Use whenever writing, reviewing, or debugging code that imports…
code-review
Perform comprehensive code reviews focusing on best practices, security vulnerabilities, performance optimization, and maintainability.
data-visualization
Create effective data visualizations using best practices for clarity, accuracy, and visual communication of insights.
financial-analysis
Perform comprehensive financial analysis including DCF modeling, ratio analysis, and financial statement evaluation for companies and investment opportunities.
ai-content-filter
Professional Ai Content Filter Expert skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
ai-engineer
Professional Ai Engineer skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.