cli-agent-surface-work
Change the public agent-facing CLI surface while preserving registry-backed discovery, JSON envelopes, aliases, docs, and tests.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- cli-agent-surface-work
- keywords
- [ "cli", "claw", "agent", "json", "aliases", "help", "registry" ]
- description
- Change the public agent-facing CLI surface while preserving registry-backed discovery, JSON envelopes, aliases, docs, and tests.
03 SKILL.md 正文
cli-agent-surface-work
Work on the public claw CLI as an agent-facing contract.
Procedure
- Use
claw search,claw commands resolve, andclaw inspect commands|command-intents|why|schemas|storage|codebase --jsonwhen available. For governance-heavy CLI/doc work, start withclaw governance doctor --jsonto collect the current reads, skills, closing checks, external-pending lanes, and stale-doc risks. - Read the CLI ADR, decision map, naming guide, and the tests for the affected command.
- Keep stable JSON output in the accepted envelope shape unless the command is explicitly in migration debt.
- Add registry entries, generated/help docs, aliases, negative legacy tests, and smoke coverage with the behavior.
- For new CLI words or aliases, classify the phrase as
covered,candidate_alias,gap,future,blocked, orexternal_pending; record explicit demand throughclaw commands recordinstead of activating semantic routing by guess. - If the change adds durable docs, ADRs, guardrails, or harnesses, register
the discovery route in
docs/discoverability.registry.jsonperdocs/adr/0017-discoverability-and-meta-code-routing.md. - Treat aliases as thin portals; avoid semantic routers that guess intent.
- Update docs and examples in the same change when public usage changes.
- Before closure for canon, route, storage, permission, ADR, skill, or
Clawix/ClawJS integration changes, run
node scripts/discoverability-check.mjs closure --changed-file <path> --json. The closing report must cite the realclaw search ... --jsonandclaw inspect ... --jsonevidence plus the discovered artifact, or mark the workPARTIAL/BLOCKED.
Constraints
clawis the public CLI. Do not add new publicclawjs,clawix, or framework-domain CLIs.- Do not expose secret-bearing, destructive, cost-bearing, or native permission actions without host approval boundaries.
- Do not make source files the primary map when the CLI registry can answer.
- Do not report public CLI surface closure as complete when the affected
artifact cannot be found by
claw searchand inspected throughclaw inspect.
04 同仓库更多 Skills
visual-regression
Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
ui-performance-budget
Capture and compare Clawix UI performance budgets for critical flows before optimizing visible or runtime UI behavior.
ui-implementation
Implement functional Clawix UI wiring while respecting visual mutation boundaries, pattern contracts, protected surfaces, and debt baselines.
ui-canon-review
Review whether a Clawix UI pattern, visual decision, copy change, or component extraction belongs in canon, debt, exception, or protected-surface scope.
theme-factory
Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
template-render
Render a Template + data + Style into a final artifact in one of HTML, PDF, PNG, SVG or PPTX. Use whenever the user asks for a concrete deliverable like "make me a poster", "render a card", "give me a one-pager".