source-analysis

source-analysis is a skill for Claude Code from prime-radiant-inc/greenfield. It costs 52 tokens per session (10,265 once invoked), scanned A, original, Apache-2.0.

A method for examining source code, packaged application files, or decompiled programs to determine how they behave. It breaks the target into smaller parts and records findings with evidence showing where each claim came from.

In plain words
What is it for?
Use it to map source trees, inspect JavaScript or Electron bundles, analyze decompiled binaries, and document what individual components do across supported programming languages.
Why use it?
It provides a repeatable way to understand unfamiliar or bundled code instead of relying on guesses. It also keeps behavioral conclusions tied to specific files or code locations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node /tmp/extract_funcs.js "$TARGET" workspace/raw/source/functions.

Part of the greenfield plugin — 22 skills, 2 commands, 2 agents shipped together

Good fit Use it to map source trees, inspect JavaScript or Electron bundles, analyze decompiled binaries, and document what individual components do across supported programming languages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/prime-radiant-inc/greenfield
agentmods
npx agentmods add skills/prime-radiant-inc/greenfield/source-analysis

Made for: Claude Code.

Or install greenfield, the plugin that ships this one along with the rest of its 22 skills, 2 commands, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/source-analysis/github.svg)](https://agentmods.dev/skills/prime-radiant-inc/greenfield/source-analysis)
Your own site
<a href="https://agentmods.dev/skills/prime-radiant-inc/greenfield/source-analysis"><img src="https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/source-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 source-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/prime-radiant-inc/greenfield/source-analysis"><img src="https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/source-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,265 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: 3 findings, up to high

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 →

  • high Tool Misuse · line 295
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Prompt Injection · line 930
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium MCP Rug Pull · line 216
    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.00052 $0.10265
Opus 5.5 $0.00021 $0.04106
Sonnet 5.5 $0.00010 $0.02053
Haiku 4.5 $0.00005 $0.01026

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

Security

Grade A, and why

source-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 3mo 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/source-analysis/SKILL.md · 1,052 lines

How it starts

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

Source Analysis Methodology

Extract behavioral intelligence from source code. Decompose the codebase into analyzable units, then systematically analyze each unit for behavioral claims with full provenance.

When to Use This Mode

Source analysis activates when:

  • The discovery inventory identifies source code files at the target path
  • Any source code needs behavioral analysis (any language, bundled or not)
  • Decompiled output exists at workspace/raw/source/decompiled/

General Approach

Source analysis takes three shapes depending on what the target looks like:

  • Source tree — a repository with a package manifest and conventional directory layout (Python, Rust, Go, Swift, Java, Node/TS, C++, etc.). Follow the Source Tree Pipeline below.
  • Bundle — a single-file minified or packed artifact (JavaScript bundle, Electron asar, webpack/esbuild output). Follow the Bundle Pipeline below.
  • Decompiled binary — a compiled artifact where source isn't directly available. Decompile first via the Decompilation Path, then analyze the decompiled output using whichever of the above shapes fits.

Regardless of shape, the pipeline follows the same logical steps:

  1. Assess the source. What language? How is it organized? How large is it?
  2. Decompose into analyzable units. Use the language's natural boundaries (modules, packages, files) when they exist. Split bundled artifacts into chunks when they don't.
  3. Analyze each unit exhaustively. Read every line. Identify every function, method, class. Understand what each does behaviorally.
  4. Extract behavioral specifications. Write what the code DOES (observable behavior), not how it's structured (implementation details). Every claim gets a provenance citation.

Phases 6-8 (per-unit analysis, per-function deep analysis, targeted extraction) are shape-agnostic and apply to all three paths.

Decompilation Path

When source code isn't directly available, decompile binaries into structured source before analysis.

Read the full file on GitHub · 1,052 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. 3mo ago First seen · 1,052 lines · 52 tokens per session scan A 6dbb3abafc4b

Subscribe to this mod's changes

source-analysis is a skill published in the GitHub repository prime-radiant-inc/greenfield (310 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 10,265 once invoked, about $0.0002 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-30.

Related

source-analysis compared with skills from other repositories

source-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
source-analysisprime-radiant-inc/greenfieldSkill3104mo agoApache-2.0A52Claude Code
memory-recallzilliztech/memsearchSkill3.0kyesterdayMITA38Claude Code, Codex
tidewave-integrationoliver-kriska/claude-elixir-phoenixSkill580todayMITA38Claude Code
planning-analysiscyberkaida/reverse-engineering-assistantSkill9973d agoApache-2.0A55Claude Code
debugsd0xdev/sd0x-harnessSkill1969d agoMITA67Claude Code
git-investigatesd0xdev/sd0x-harnessSkill1969d agoMITA53Claude Code
simplifysd0xdev/sd0x-harnessSkill1969d agoMITA16Claude Code