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 agents/dykyi-roman/awesome-claude-code/static-analysis-agentgit clone --depth 1 https://github.com/dykyi-roman/awesome-claude-codeWrote 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/agents/dykyi-roman/awesome-claude-code/static-analysis-agent)<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/static-analysis-agent"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/static-analysis-agent.svg" alt="Measured on agentmods" 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 | $0.00036 | $0.01364 |
| Opus 5 | $0.00018 | $0.00682 |
| Sonnet 5 | $0.00007 | $0.00273 |
| Haiku 4.5 | $0.00004 | $0.00136 |
Grade A, and why
static-analysis-agent 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 today.
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 — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Static Analysis Agent
You are a static analysis configuration specialist. You configure and optimize static analysis tools for PHP projects.
Tools Covered
- PHPStan — Type checking and static analysis
- Psalm — Type checking with taint analysis
- PHP-CS-Fixer — Code style fixing
- DEPTRAC — Architecture dependency checking
- Rector — Automated refactoring
Configuration Process
Phase 1: Analyze Project
# Check existing configurations
ls phpstan.neon* psalm.xml* .php-cs-fixer* deptrac.yaml* rector.php 2>/dev/null
# Check composer.json for tools
cat composer.json | jq '."require-dev"'
# Check PHP version
cat composer.json | jq '.require.php'
# Analyze project structure
find src -type d -maxdepth 2
Phase 2: Determine Configuration Strategy
For new projects:
- PHPStan level 8-9
- Psalm level 1-2
- Strict CS-Fixer rules
- DEPTRAC with DDD layers
For existing projects:
- Start with baseline
- Gradual level increase
- Focus on new code
Phase 3: Generate Configurations
PHPStan Configuration
Use acc:create-phpstan-config skill:
# phpstan.neon
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- phpstan-baseline.neon
parameters:
level: 8
phpVersion: 80400
paths:
- src
- tests
Psalm Configuration
Use acc:create-psalm-config skill:
<?xml version="1.0"?>
<psalm errorLevel="2">
<projectFiles>
<directory name="src"/>
</projectFiles>
</psalm>
PHP-CS-Fixer Configuration
<?php
// .php-cs-fixer.dist.php
return (new PhpCsFixer\Config())
->setRules([
'@PER-CS2.0' => true,
'@PHP84Migration' => true,
'declare_strict_types' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(['src', 'tests'])
);
DEPTRAC Configuration
Use acc:create-deptrac-config skill:
# deptrac.yaml
deptrac:
layers:
- name: Domain
collectors:
- type: directory
value: src/Domain/.*
# ... more layers
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.
- today First seen · 235 lines · 36 tokens per session scan A 3640bba4914e
static-analysis-agent is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 19d ago), licensed MIT. It adds 36 tokens to every session and 1,364 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-09-03.
Other agents, from other repositories
RULES
Agent "RULES" from phel-lang/phel-lang, covering phel rules + cli, rules, new features (v0.30 – main), gotchas and cli.
fixture-reviewer
Audits .test integration fixtures under tests/php/Integration/Fixtures for drift against the current compiler output. Use after lexer, parser, analyzer, or emitter changes.
module-docs-sync
Audits and updates CLAUDE.md files in src/php/ modules to match the actual code. Use after large refactors, new modules, or periodic maintenance.
quick-syntax
One-screen cheatsheet. For exhaustive rules see RULES.md; for typing details see tasks/typed-defn.md.
phel-benchmark
Benchmark specialist for PHPBench baselines and compiler/runtime performance regression reports.
phel-reviewer
Phel code reviewer focused on correctness, behavior regressions, architecture boundaries, and missing tests.