Skip to content

docs(skill): save CLI application Evidence and read a summary view - #1429

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
docs/cli-save-application-evidence
Oct 10, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
docs/cli-save-application-evidence

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Summary

The skill's CLI fallback tells agents to run analyze-javascript-application ... --json and read what it prints. On a real app, that output is the complete application Evidence, often hundreds of megabytes. An agent following the skill reads all of it into its context. This PR changes the fallback (and docs/cli.md) to save the Evidence to a file and read a summary view of it with inspect-analysis-view. Part of the context-cost work in #1065 / #723. Only docs change.

Measurements (local, current main)

Target Full Evidence on stdout Summary view
80-function fixture from #1065 (7.4 KB source) 1,821,503 bytes 9,355 bytes
Obsidian obsidian.asar (--integrity-policy record-and-continue) 333,759,089 bytes 10,601 bytes (2,533 tokens by --token-count)

A 32-module page view of the fixture measured 1,814 tokens.

Change

  • skill-src/reverse-engineer-anything/SKILL.md: the fallback now redirects --json to app-evidence.json, wraps it with jq as {source: {kind: "inline", evidence: .}, view: {kind: "summary"}}, and runs inspect-analysis-view. It names the module-page view and trace-application-feature as next steps. Skill metadata.version 34 → 35, and src/generatedPackageMetadata.ts is regenerated to match.
  • docs/cli.md: the same recipe under "Run a command", plus a link to the JavaScript application workflows guide.

No CLI/MCP behavior or schema changes. The English README quick start is unchanged because the README translations must match its bash blocks.

Verification

  • Ran the documented commands end-to-end on the fixture and on the real Obsidian ASAR (numbers above).
  • npm run docs:check (6/6 tasks)
  • npm run test:focused -- tests/boundary/filesystem/setupSkill.test.ts tests/conformance/readmeConsistency.test.ts
  • oxfmt --check on both docs

No real Hopper/Ghidra verification (not affected).

🤖 Generated with Claude Code

The skill's CLI fallback printed the complete application Evidence to
stdout. A real ASAR produces hundreds of megabytes (334 MB for Obsidian),
which an agent then reads into its context. Save the Evidence to a file
and project a summary or module page with inspect-analysis-view instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@kaoru0822-kitauji
kaoru0822-kitauji merged commit 0b9815b into main Oct 10, 2026
36 of 38 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the docs/cli-save-application-evidence branch October 10, 2026 04:38
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…orluto#1429)

The skill's CLI fallback printed the complete application Evidence to
stdout. A real ASAR produces hundreds of megabytes (334 MB for Obsidian),
which an agent then reads into its context. Save the Evidence to a file
and project a summary or module page with inspect-analysis-view instead.
@morluto morluto added documentation Improvements or additions to documentation area: cli CLI adapter and one-shot commands labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants