analyze-cc-feature — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited analyze-cc-feature (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.
Create these tasks at the start:
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.
Run scripts/extract-cli.sh to download and extract cli.js from the npm package. The script caches by version.
bash ~/.claude/skills/analyze-cc-feature/scripts/extract-cli.shThis produces /tmp/claude-code-npm/package/cli.js.
Run scripts/unminify.sh to produce readable source. The script caches the output.
bash ~/.claude/skills/analyze-cc-feature/scripts/unminify.shThis produces a webcrack-output/deobfuscated.js file (700K+ lines, well-formatted). Despite the filename, this is unminified code — see terminology note above.
Search the unminified source for the feature keyword the user specified. Use multiple anchor strings:
"insights", "compact")querySource: values that tag API calls"tengu_compact", "tengu_input_command")Use Grep to find all occurrences and identify the line range where the feature's code is concentrated. Search for at least 3-4 different anchor strings to triangulate.
Read the identified line range from the unminified file. Read in large chunks (500+ lines) to see full boundaries. Also search for any helper functions called from within the range that are defined elsewhere (API call wrappers, model selectors, data loaders, prompt builders).
Save an annotated file as {feature}-annotated.js (or {feature}-raw.js + {feature}-clean.js if producing both raw and renamed versions) that contains:
deobfuscated.js (e.g., // deobfuscated.js:554320)Renaming technique:
.filter() is likely an item)new Map() and used with .get()/.set() with session IDs is a session map)Rules:
/* uncertain */ comments$ or _ in functions with template literals (conflicts with ${...})Scoping strategy: Find the v(() => { ... }) lazy initializer that sets up the feature's module. All functions between this initializer and the next one belong to the same module. For local-jsx commands, also trace the load: → module → call export chain to find the entry-point component, then include all components it renders.
Read the annotated code and document:
Produce a markdown report with:
deobfuscated.js:NNNNN)After completing the analysis, evaluate the skill itself (this file + REFERENCE.md):
If improvements are warranted, propose specific edits to this SKILL.md or REFERENCE.md and ask the user if they'd like to apply them. Not every analysis will produce skill updates — only suggest changes when they'd concretely help future analyses.
Commands have different type values that affect how to analyze them:
getPromptForCommand. These are pipeline-style features (like /insights) with procedural logic.{ call: entryFunction } which is invoked directly. The return value determines what happens (e.g., type: "compact" replaces the entire conversation). Examples: /compact, /clear, /copy.load: which returns a module with a call export. These are UI-heavy features (like /usage) built as component trees.For local-jsx commands, the extraction strategy differs — see the React/Ink section below.
The dispatch function (NGY) matches on command.type:
"local" — Calls (await command.load()).call(args, toolUseContext) and handles the return type ("compact", "skip", "microcompact", or plain value)"local-jsx" — Same load pattern, but the result is rendered as JSX"prompt" — Calls command.getPromptForCommand(args, context) and injects the result as messagesMany features render UI using React (via Ink for terminal). Key patterns:
createElement calls, props, children).v(() => { ... }) lazy initializers. All functions between two initializers typically belong to the same module.f is Ink's <Text> component. I is Ink's <Box> (layout container).See the Mangled identifier reference table in REFERENCE.md for the full list of known infrastructure functions (telemetry, settings, token counting, hooks, etc.) with their call signatures and stable evidence patterns for re-identification across versions.
querySource field in API call options tags which feature is making the call.v(() => { ... }) pattern is a lazy initializer — code inside runs once on first access.type: "prompt", name, description, getPromptForCommand, or type: "local-jsx" / type: "local" with load:.local-jsx commands, trace the load: function to find the module, then find its call export to locate the entry point.deobfuscated.js:NNNNN for traceability.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.