static-analysis

static-analysis is a skill for Claude Code, Codex from d-o-hub/github-template-ai-agents. It costs 102 tokens per session (1,547 once invoked), scanned A, original, MIT.

A guide for investigating and fixing static-analysis findings. Static analysis means automated checks that inspect source code for errors, style problems, and risky patterns without running the program.

In plain words
What is it for?
Use it when running linters, handling CI quality failures, reviewing lint feedback, or adding checks for a programming language.
Why use it?
It helps sort lint and quality-check results by severity, apply safe fixes, and document or escalate findings that need deeper design work.

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 OpenCode.

Good fit Use it when running linters, handling CI quality failures, reviewing lint feedback, or adding checks for a programming language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-o-hub/github-template-ai-agents/static-analysis
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.

Any agent
npx skills add d-o-hub/github-template-ai-agents --skill static-analysis
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

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 static-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/static-analysis/github.svg)](https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/static-analysis)
Your own site
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/static-analysis"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/static-analysis/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.

agentmods 80×15 button for static-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/static-analysis"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/static-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00102 $0.01547
Opus 5.5 $0.00041 $0.00619
Sonnet 5.5 $0.00020 $0.00309
Haiku 4.5 $0.00010 $0.00155

Measured 1mo ago against content hash a71f29e90e9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

static-analysis 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.

.agents/skills/static-analysis/SKILL.md · 153 lines

How it starts

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

Static Analysis & Linter Triage

Expert skill for managing static analysis, PR triage, and linting feedback loops across any programming language.

Quick Check

  • Run pre-commit linters locally
  • Classify CI lint failures by severity
  • Auto-fix safe style/formatting issues
  • Document every suppression with a valid reason
  • File issues for complex architectural findings

When to Use

  • Before committing changes (local linting).
  • When CI quality gates or linting workflows fail.
  • During PR reviews to triage static analysis findings.
  • When integrating new languages or linters into a project.

Pre-commit Workflow

Always run local linters before pushing to minimize CI round-trips.

  1. Detect Changes: Identify files modified in the current session.
  2. Run Targeted Linters: Use tools like markdownlint, shellcheck, or language-specific linters (e.g., eslint, ruff) on changed files.
  3. Verify Quality Gate: Run ./scripts/quality_gate.sh (if available) to ensure all local checks pass.

CI Integration

Read linter output from CI artifacts and PR annotations to identify regressions.

  • Check CI Summary: Read ci-summary.md or GitHub Action logs.
  • Inspect Annotations: Look for line-specific comments from automated tools (Codacy, SonarCloud, GitHub Actions).
  • Match to Source: Map CI errors back to local files and line numbers.

Agent Triage Workflow

Follow this structured process when responding to analysis findings:

  1. Classify Severity:
    • Error: Must be fixed or formally suppressed. Blocks merge.
    • Warning: Should be fixed if possible. Indicates potential future issues.
  2. Auto-fix Safe Findings:
    • Immediately apply automated fixes for formatting (Prettier, gofmt), imports (ruff, isort), or simple style rules.
  3. Handle Complex Findings:
    • If a fix is non-trivial or requires architectural changes, file a follow-up issue and document the technical debt.
  4. Suppressions:

Read the full file on GitHub · 153 lines

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. 1mo ago First seen · 153 lines · 102 tokens per session scan A a71f29e90e9f

Subscribe to this mod's changes

static-analysis is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 1,547 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

slopmop

Trigger when you would normally reach for pytest, gh, mypy, black, or other raw repo tooling. Redirect to sm swab, sm scour, sm buff, sm sail, sm refit, or sm doctor so remediation follows the established rails. Also trigger when asked to "install" or "set up" slop-mop in a repo, or when you find a repo with sm…

ScienceIsNeato/slop-mop · 186 tokens

performance-patterns

Use when user asks about N+1 queries, performance optimization, query optimization, reduce API calls, improve render performance, fix slow code, optimize database, or reduce bundle size. Provides guidance on identifying and fixing performance anti-patterns across database, backend, frontend, and API layers.

hculap/better-code · 61 tokens

codebase-refactoring

Three-part workflow to improve overall codebase health with jscpd — find and fix duplicated code, find and remove or refactor dead code, then find and simplify the largest/most complex files. Starts from --dashboard/--health to prioritize and ends by re-measuring the score.

kucherenko/jscpd · 63 tokens

report-issue-local

File a bug or feature request against this MCP server's own repo. Use for server-specific issues — tool logic, service integrations, config problems, or domain bugs that aren't caused by the framework.

cyanheads/obsidian-mcp-server · 44 tokens

dorodango

Polishes working code through successive quality passes in fresh subagents. Use after tests pass when code needs multi-dimension refinement before release.

athola/claude-night-market · 31 tokens

ring:searching-code

Forensic code search and analysis with optional Chain of Draft (CoD) ultra-concise mode. Five-phase methodology (clarification, planning, execution, analysis, synthesis) with severity assessment. Use for targeted investigation of specific patterns, bugs, or vulnerabilities. Skip for broad architecture mapping (use…

LerianStudio/ring · 74 tokens