Skip to content

docs(artifacts): compress skills/agents ~40%; fix 8 defects from review#390

Merged
HumanBean17 merged 1 commit into
masterfrom
docs/compress-skills-agents
Jul 6, 2026
Merged

docs(artifacts): compress skills/agents ~40%; fix 8 defects from review#390
HumanBean17 merged 1 commit into
masterfrom
docs/compress-skills-agents

Conversation

@HumanBean17

Copy link
Copy Markdown
Owner

Summary

skills/ and agents/ are shipped verbatim to consumers and load into an LLM's context at runtime — verbosity is a direct token/perf tax. This PR compresses all 5 files ~40% (1128 → 685 lines) and fixes 8 factual defects surfaced by a source-verified review.

Compression (Firm ~40%)

Applied uniformly:

  • Collapsed the Decision-Framework / Decision-tree / Workflow-Patterns triple-listing into one canonical table + tight sequences.
  • Cut generic Glob/Grep pattern-example boilerplate and the consumer-irrelevant "why CLI vs MCP" comparison.
  • Tightened all reference tables (edge taxonomy, NodeFilter, glossaries, traversal maps) — rows kept, surrounding prose cut.
  • Each file stays a standalone manual (skill and agent load via different mechanisms; one surface deployed per project).
File Before → After
skills/README.md (not shipped) 72 → 37
skills/explore-codebase/SKILL.md (MCP) 205 → 165
skills/explore-codebase-cli/SKILL.md (CLI) 252 → 183
agents/explorer-rag-enhanced.md (MCP) 307 → 152
agents/explorer-rag-cli.md (CLI) 292 → 148

8 factual defects fixed

Found by a 3-reviewer pass that verified every claim against jrag.py, mcp_v2.py, java_ontology.py, ladybug_queries.py. Only 1 was introduced by the compression; the other 7 were pre-existing and carried forward.

# Sev Surface Fix
1 MAJOR CLI routes/clients → real http-routes/http-clients subcommands
2 MAJOR CLI not_found exits 0, not 2 (only error exits 2)
3 MAJOR CLI impact is INJECTS/IMPLEMENTS/EXTENDS only (no CALLS)
4 MAJOR MCP+CLI route framework also accepts kafka/rabbitmq/jms/stream/feign
5 MINOR MCP restored "often" hedge on empty-string filter behavior (compression-introduced)
6 MINOR CLI added missing decompose command
7 MINOR CLI hierarchy walks both directions (parents + children)
8 MINOR CLI --service/--module are resolve-time filters on inspect/callers

Test-structure preserved

The MCP skill is statically pinned by test_agent_skills_static.py. Verified intact: frontmatter, all 6 required headings (Workflow Patterns, Decision Framework, Recovery Playbook, Edge taxonomy, Tool Inventory, Forced reasoning preamble), all 5 tool refs, and valid kinds/edges/directions.

Verification

.venv/bin/python scripts/sync_agent_artifacts.py          # install_data re-synced
.venv/bin/python -m pytest tests/test_agent_skills_static.py tests/test_install_data_sync.py tests/test_installer_surface.py -q
# 38 passed

Follow-ups (not in this PR)

🤖 Generated with Claude Code

Shipped consumer artifacts (skills/ + agents/) load into an LLM's context
at runtime, so verbosity is a direct token/perf tax. Compress all 5 files
~40% (1128 -> 685 lines) by collapsing the Decision-Framework / Decision-tree
/ Workflow-Patterns triple-listing into one canonical table, cutting generic
Glob/Grep boilerplate, and deduping repeated explanations. Each file stays a
standalone manual (skills and agents load via different mechanisms; one
surface deployed per project).

A parallel 3-reviewer pass against source (jrag.py, mcp_v2.py,
java_ontology.py, ladybug_queries.py) found 8 factual defects; only 1 was
introduced by the compression, the rest were pre-existing and carried forward:

- CLI: `routes`/`clients` -> real `http-routes`/`http-clients` subcommands
- CLI: `not_found` exits 0, not 2 (only `error` exits 2)
- CLI: `impact` is INJECTS/IMPLEMENTS/EXTENDS only (no CALLS)
- MCP+CLI: route `framework` also accepts kafka/rabbitmq/jms/stream/feign
- MCP: restored "often" hedge on empty-string filter behavior (compression-introduced)
- CLI: added missing `decompose` command; `hierarchy` walks both directions
- CLI: `--service`/`--module` are resolve-time filters on inspect/callers

install_data copies re-synced. The MCP skill keeps its 6 required headings,
5 tool refs, and valid kinds/edges (test-pinned).

Verified: test_agent_skills_static (21), test_install_data_sync (4),
test_installer_surface (13) = 38 passed.

Co-Authored-By: Claude <noreply@anthropic.com>
@HumanBean17 HumanBean17 merged commit 665e0a8 into master Jul 6, 2026
3 checks passed
@HumanBean17 HumanBean17 deleted the docs/compress-skills-agents branch July 6, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant