[PR #1429] [MERGED] docs(skill): save CLI application Evidence and read a summary view #2880

Closed
opened 2026-10-17 21:11:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/1429
Author: @kaoru0822-kitauji
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @kaoru0822-kitauji

Base: main ← Head: docs/cli-save-application-evidence


📝 Commits (1)

  • c550c12 docs(skill): save CLI application Evidence and read a summary view

📊 Changes

3 files changed (+31 additions, -7 deletions)

View changed files

📝 docs/cli.md (+17 -0)
📝 skill-src/reverse-engineer-anything/SKILL.md (+13 -6)
📝 src/generatedPackageMetadata.ts (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/1429 **Author:** [@kaoru0822-kitauji](https://github.com/kaoru0822-kitauji) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/10/2026 **Merged by:** [@kaoru0822-kitauji](https://github.com/kaoru0822-kitauji) **Base:** `main` ← **Head:** `docs/cli-save-application-evidence` --- ### 📝 Commits (1) - [`c550c12`](https://github.com/morluto/rea/commit/c550c1274e7b493544e26d48cf888211fb26c719) docs(skill): save CLI application Evidence and read a summary view ### 📊 Changes **3 files changed** (+31 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/cli.md` (+17 -0) 📝 `skill-src/reverse-engineer-anything/SKILL.md` (+13 -6) 📝 `src/generatedPackageMetadata.ts` (+1 -1) </details> ### 📄 Description ## 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-17 21:11:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#2880
No description provided.