Expand description
v0.7.0 Cluster E API-2 (issue #767) — ai-memory skill <subcommand>
CLI surface.
Closes the CLI/HTTP parity gap surfaced by the v0.7.0 6-reviewer audit:
the L1-5 Agent Skills substrate landed with seven MCP tools
(memory_skill_*) but zero CLI subcommands and zero HTTP routes, so
HTTP-daemon operators and shell-driven workflows could not interact
with skills at all. This module adds the CLI surface; the matching
HTTP routes live in src/handlers/http.rs.
Each subcommand delegates to the same substrate handler the MCP
dispatch already uses (re-exported as crate::mcp::handle_skill_*).
No business logic is re-implemented here — the CLI is a clap-shaped
thin client over the existing handlers, so MCP / CLI / HTTP share a
single source of truth for skill semantics.
Verb mapping (CLI → MCP tool name):
ai-memory skill register→memory_skill_registerai-memory skill list→memory_skill_listai-memory skill get→memory_skill_getai-memory skill resource→memory_skill_resourceai-memory skill export→memory_skill_exportai-memory skill promote→memory_skill_promote_from_reflectionai-memory skill compose→memory_skill_compositional_context
All seven mirror the MCP tool surface 1:1. No new MCP tools land
here — the MCP surface stays at whatever
Profile::full().expected_tool_count() reports (canonical SSOT in
src/profile.rs; pinned by profile_full_matches_registry_all).
Structs§
- Compose
Args ai-memory skill compose- Export
Args ai-memory skill export- GetArgs
ai-memory skill get- List
Args ai-memory skill list- Promote
Args ai-memory skill promote- Register
Args ai-memory skill register— accepts EITHER--manifest <folder-or-file>OR--inline <text>.- Resource
Args ai-memory skill resource- Skill
Args - Top-level
ai-memory skill <subcommand>argument struct.
Enums§
- Skill
Action ai-memory skill ...sub-subcommands. One per MCPmemory_skill_*tool so the CLI surface is parity-checkable by name.
Functions§
- run
- Dispatch entry-point called from
daemon_runtime::run.