code-analysis

A code-review procedure for finding bugs, quality problems, performance issues, and security vulnerabilities in source files. It uses source inspection, pattern searches, and available static-analysis tools.

In plain words
What is it for?
Use it to review source code, inspect imports and tests, search for risky patterns, check test coverage, and run supporting analysis commands.
Why use it?
It gives developers a structured way to examine code and related tests or configuration instead of relying only on a quick read.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/rnixai/rnix/code-analysis
Any agent
npx skills add rnixai/rnix --skill code-analysis
Clone the repo
git clone --depth 1 https://github.com/rnixai/rnix

Made for: Claude Code, Codex.

Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00580
Opus 5 $0.00016 $0.00290
Sonnet 5 $0.00006 $0.00116
Haiku 4.5 $0.00003 $0.00058

Measured yesterday against content hash 49663eaba3ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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.

lib/skills/code-analysis/SKILL.md · 63 lines

How it starts

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

Code Analysis

When to use this skill

Use this skill when the user asks to analyze, review, or audit source code for quality issues, bugs, or security vulnerabilities.

How to analyze code

  1. Use Read to load the target file(s)
  2. Examine code structure, naming conventions, error handling patterns
  3. Use Grep to search for code patterns, and Bash to run static analysis tools if available
  4. If needed, use Read to load related files (imports, tests, configs) for context

Tool usage guide

Read / Grep / Glob — Source inspection

  • Read — load target files to get full source code; load related import or config files for context; load test files to evaluate test coverage
  • Grep — search for specific code patterns across files (prefer this over running grep through Bash)
  • Glob — enumerate related files by pattern (e.g. *.go); list a directory with pattern="*"

Bash — Shell command execution

Use for auxiliary analysis commands that have no dedicated tool:

  • wc -l to count file lines
  • find . -name "*.go" -type f to locate related files when a glob is insufficient

⚠️ Security constraint: Always append | head -N to limit Bash command output and avoid consuming context budget with large outputs.

Workflow

  1. Read target files — Use Read to load user-specified files
  2. Understand context — Analyze import dependencies, type definitions, interface contracts
  3. Analyze per dimension — Systematically check across all analysis dimensions
  4. Summarize findings — Organize all findings by severity level
  5. Output report — Output analysis results in structured format

Severity levels

  • Critical — Must fix immediately. Includes: security vulnerabilities, data corruption risks, program crashes
  • Warning — Should fix. Includes: potential bugs, performance issues, incomplete error handling
  • Info — Suggested improvements. Includes: code style, readability, best practice deviations

Common patterns to check

Read the full file on GitHub · 63 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. yesterday First seen · 63 lines · 32 tokens per session scan A 49663eaba3ac

Subscribe to this mod's changes

code-analysis is a skill published in the GitHub repository rnixai/rnix (5 stars, last pushed 23d ago), licensed MIT. It adds 32 tokens to every session and 580 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-08-31.

Related

Other skills, from other repositories

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens

python-development

Coding standards, conventions, and patterns for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files in the python/ directory.

microsoft/agent-framework · 35 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

trigger-authoring-tasks

Covers writing backend Trigger.dev tasks with @trigger.dev/sdk: defining task() and schemaTask(), the run function and its ctx, retries, waits, queues and concurrency, idempotency keys, run metadata, logging, triggering other tasks (and the Result shape), scheduled/cron tasks, and the essentials of trigger.config.ts.…

triggerdotdev/trigger.dev · 115 tokens

background

Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Read/manage .hyperflow/background/registry.json and the per-agent output buffers at .hyperflow/background/ .md. Standalone — never auto-invoked. Trigger with /hyperflow:background, "list background agents"…

jeremylongshore/tons-of-skills-marketplace · 89 tokens