analyze-cc-feature

A guide for examining how a particular Claude Code feature works internally by analyzing its source code.

In plain words
What is it for?
It helps acquire the source, locate feature code, explain its behavior, and write an evidence-based analysis report.
Why use it?
It turns Claude Code’s minified source, which has compressed formatting and shortened names, into material that can be searched and studied.

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/prajwalsrinvas/claude-code-reverse-engineering/skill
Any agent
npx skills add Prajwalsrinvas/claude-code-reverse-engineering --skill skill
Clone the repo
git clone --depth 1 https://github.com/Prajwalsrinvas/claude-code-reverse-engineering

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,726 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.00044 $0.02726
Opus 5 $0.00022 $0.01363
Sonnet 5 $0.00009 $0.00545
Haiku 4.5 $0.00004 $0.00273

Measured 2d ago against content hash 0c4326fa27de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyze-cc-feature 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 2d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/extract-bun-cli.py, scripts/extract-cli.sh, scripts/unminify.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skill/SKILL.md · 167 lines

How it starts

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

Analyze Claude Code Feature

Reverse engineer a specific feature in Claude Code's source code.

Terminology note: Claude Code's cli.js is minified (whitespace removed, identifiers shortened for size), NOT obfuscated (intentionally made hard to read with control flow flattening, string encryption, etc.). webcrack's --no-deobfuscate flag is used because there is no obfuscation to reverse. The output file is called deobfuscated.js by webcrack convention, but it is more accurately "unminified" source.

IMPORTANT: Use the task list (TaskCreate/TaskUpdate) to track progress through the pipeline. Create all tasks upfront, then work through them sequentially, marking each in_progress when starting and completed when done.

Pipeline

Create these tasks at the start:

  1. Acquire source — Extract cli.js from the installed native Bun binary
  2. Unminify — Run webcrack + prettier to produce readable source
  3. Locate the feature — Search for anchor strings to find the code
  4. Extract & annotate — Pull out the feature's code, rename identifiers inline
  5. Analyze — Document what the feature does step by step
  6. Write report — Produce a markdown report with evidence
  7. Self-reflect — Evaluate whether the skill itself should be updated

If the user says to skip steps (e.g., "unminified source already exists at X, skip steps 1-2"), create those tasks as completed immediately.


Step 1: Acquire source

Run scripts/extract-cli.sh to extract cli.js from the installed native binary. The script caches by version.

bash ~/.claude/skills/analyze-cc-feature/scripts/extract-cli.sh

Important — the source is no longer in the npm package. Since v2.1.113 the npm package (@anthropic-ai/claude-code) is a ~170 KB thin installer; the real CLI ships as a per-platform native Bun standalone executable (~250 MB) with the JavaScript embedded in its module graph. extract-cli.sh locates the installed binary (~/.local/share/claude/versions/<version> or $(which claude)) and runs scripts/extract-bun-cli.py to pull cli.js out of the binary's module graph. It also drops the sibling modules (a precompiled Bun bytecode blob and two Rust NAPI addons — image-processor.node, audio-capture.node) into /tmp/claude-code-npm/bun-modules/.

Read the full file on GitHub · 167 lines

Files

What ships with it

5 files 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. 2d ago First seen · 167 lines · 44 tokens per session scan A 0c4326fa27de

Subscribe to this mod's changes

analyze-cc-feature is a skill published in the GitHub repository Prajwalsrinvas/claude-code-reverse-engineering (2 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 2,726 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

wakaru

Turn minified, bundled, or transpiled JavaScript back into readable modules. Use when you encounter unreadable production JS — a webpack/esbuild/Metro/Rollup bundle, a minified vendor script, Babel/TypeScript/SWC-transpiled output, or a single mangled .js file — and need to read, audit, debug it, or recover a…

pionxzh/wakaru · 99 tokens

vox-director

Turn ONE topic into a finished Vox-style paper-collage explainer / ad video, end to end on the Atlas Cloud API + local ffmpeg — script, collage keyframes, motion, voice-over, music, captions, all automated. Use this whenever the user wants a "Vox style" video, a paper/torn-paper collage animation, a "motion collage"…

Alisa0808/vox-director · 236 tokens

social-post

學習使用者的 Facebook/Instagram/YouTube/Threads/X 語氣與受眾,規劃、撰寫、確認後發佈內容;以已登入 Chrome 受控掃描、草擬及回覆 FB/IG/Threads 留言;並作為流量、留存與轉化的結構化帳本。使用者說「發文」「用我的口氣」「回覆留言」「自動回留言」「掃留言」「查流量」「演算法」「把數據訓練進去」「比較貼文」「優化 pattern」時使用。.

Hao0321/claude-skill-social-post · 135 tokens

privacy-eu

EU 사용자 대상 서비스용 Privacy Notice·Terms of Service·Consent Modal·Cookie Banner 자동 생성. GDPR (Regulation 2016/679) + ePrivacy Directive + Consumer Rights Directive 2011/83 + Digital Services Act + Digital Content Directive + Unfair Terms Directive 반영. 영문 인터뷰로 진행.

kimlawtech/korean-privacy-terms · 70 tokens

privacy-terms

처리방침·이용약관 자동 생성 진입점. 호출 즉시 6개 하위 스킬(privacy-kr·privacy-eu·privacy-us·privacy-jp·privacy-global·privacy-global-jp)을 번호 메뉴로 제시하고, 번호 입력 즉시 해당 스킬 인터뷰로 직행한다.

kimlawtech/korean-privacy-terms · 74 tokens

higgsfield-troubleshoot

Use when a Higgsfield generation fails, produces poor quality, looks wrong, doesn't match the prompt, or the user needs to fix or improve an output.

OSideMedia/higgsfield-ai-prompt-skill · 39 tokens