玉澜
f86d10ae63
feat(schema): add --compact mode and update SKILL.md schema guide
- Add --compact flag to schema command (canonical.go)
- Implement stripSchemaPayloadCompact to recursively remove provenance/
debug/redundant fields (runtime_schema.go)
- Strip 27 top-level keys (agent_metadata_source, agent_source_refs,
interface_ref, primary_cli_path, etc.) and 3 per-parameter keys
(interface_description, interface_type, property)
- Add 3 tests covering leaf/overview/product compact modes
- Replace stale SKILL.md schema section with progressive query guide,
compact field reference, and schema-vs-help decision table
- Regenerate schema artifacts (make generate-schema)
Size reduction:
leaf: 9.5KB -> 6.0KB (36%)
--all: 644KB -> 414KB (36%)
2026-07-11 13:41:19 +08:00
..
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 13:41:19 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00
2026-07-11 12:23:55 +08:00