static-code-analysis

static-code-analysis is a skill for Claude Code, Codex from soulcodex/agentic. It costs 65 tokens per session (1,209 once invoked), scanned A, original, MIT.

A setup guide for static code analysis, which checks source code for likely errors, bad patterns, and style problems without running the program.

In plain words
What is it for?
Use it to add linting, configure rules, connect checks to CI, fix current findings, or set up pre-commit checks. It supports TypeScript/JavaScript, Go, Python, PHP, and Rust projects.
Why use it?
It removes the guesswork from choosing and configuring a checking tool for each programming language. It also covers bringing existing violations under control and running checks automatically before code is committed or in CI.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex; mentions OpenCode.

Good fit Use it to add linting, configure rules, connect checks to CI, fix current findings, or set up pre-commit checks. It supports TypeScript/JavaScript, Go, Python, PHP, and Rust projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/static-code-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 soulcodex/agentic --skill static-code-analysis
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/static-code-analysis"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/static-code-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 139
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00065 $0.01209
Opus 5.5 $0.00026 $0.00484
Sonnet 5.5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

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

Security

Grade A, and why

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

skills/development/static-code-analysis/SKILL.md · 171 lines

How it starts

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

Static Code Analysis Skill

Step 1 — Detect Language and Choose Tool

Language Recommended tool Config file
TypeScript / JavaScript Rslint (@rslint/core) for new projects; ESLint when already entrenched or plugin coverage requires it rslint.config.ts or eslint.config.ts
Go golangci-lint .golangci.yml
Python Ruff ruff.toml or pyproject.toml
PHP PHPStan phpstan.neon
Rust Clippy (built-in) clippy.toml

If a tool is already present, audit its configuration before making changes. Do not replace an established ESLint setup with Rslint unless migration is part of the task or the repo has no rules that Rslint cannot cover yet.

Step 2 — Configure Rules

Apply a strict baseline. If you use import/* rules, ensure eslint-plugin-import is installed and configured.

TypeScript (Rslint)

pnpm add -D @rslint/core
pnpm exec rslint --init

Use pnpm lint as the project script. For repositories that want lint and type checking in one pass, configure parser projects and use:

pnpm exec rslint --type-check .

TypeScript (ESLint fallback)

{
  "rules": {
    "@typescript-eslint/no-explicit-any": "error",
    "@typescript-eslint/no-unused-vars": "error",
    "import/no-commonjs": "error",
    "no-console": "warn",
    "eqeqeq": ["error", "always"]
  }
}

Go (golangci-lint)

linters:
  enable:
    - errcheck
    - gosimple
    - govet
    - ineffassign
    - staticcheck
    - unused
linters-settings:
  govet:
    enable-all: true

Python (Ruff)

[tool.ruff]
select = ["E", "F", "I", "N", "UP", "S", "B"]
ignore = []
line-length = 100

Step 3 — Integrate with CI

Add a lint job that runs before tests and fails on any error (exit code 1):

# .github/workflows/ci.yml
lint:
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v4
    - name: Run linter
      run: <lint-command>   # e.g., pnpm lint, golangci-lint run, ruff check .

Read the full file on GitHub · 171 lines

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 Changed · +23 lines 1c3dd98397dc
  2. 1mo ago First seen · 148 lines · 65 tokens per session scan A 8a3ec286c269

Subscribe to this mod's changes

static-code-analysis is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 28d ago), licensed MIT. It adds 65 tokens to every session and 1,209 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-08-31.

Related

Other skills, from other repositories

lint-and-validate

Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis.

GetSkill-Agent/getskill-skills · 48 tokens

codegraph

Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection…

QwenLM/qwen-code · 0 tokens

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens

structured-debugging

Hypothesis-driven debugging methodology for hard bugs. Use this skill whenever you're investigating non-trivial bugs, unexpected behavior, flaky tests, or tracing issues through complex systems. Activate proactively when debugging requires more than a quick glance — especially when the first attempt at a fix didn't…

QwenLM/qwen-code · 85 tokens

memory-leak-debug

Diagnose memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Use when investigating high memory usage, unbounded growth, or suspected object retention issues.

QwenLM/qwen-code · 42 tokens

bugfix

Fix a bug from a GitHub issue, following the reproduce-first workflow. Use when the user asks to fix a bug, investigate a GitHub issue, or debug a user-reported problem. Takes a GitHub issue URL or number as input.

QwenLM/qwen-code · 53 tokens