smriti/cli/smriti_cli
Himanshu Dongre 7586e8ec6a Add skills CLI subcommand and smriti_install_skill MCP tool
CLI:
  smriti skills list                         — enumerate targets + version
  smriti skills show <target>                — print rendered content to stdout
  smriti skills install <target>             — write to target's default destination
  smriti skills install <target> --dry-run   — preview without writing
  smriti skills install <target> --force     — overwrite same-or-newer version
  smriti skills install <target> --destination PATH   — override default path

The skills group does not hit the backend; rendering is a local
package-data lookup. Version-aware refusal is already implemented in
the renderer — install prints a clear "Skipped: already has version X"
message and exits non-zero without --force.

MCP:
  smriti_install_skill(target: str) -> str

Returns the rendered skill pack wrapped in a fenced markdown block with
the suggested destination path at the top. Unlike the CLI, the MCP
tool does NOT write any files — the MCP server runs in the host's
arbitrary working directory, so the agent is expected to read the
suggested destination and write the file using its host's own file
tools (Edit/Write/Bash). This keeps the MCP server read-only from the
host filesystem's perspective.

Thirteen tools total now registered on the FastMCP instance.
2026-04-12 02:10:16 +05:30
..
skill_pack Add Smriti agent skill pack source and renderer 2026-04-12 02:07:47 +05:30
__init__.py Add CLI for agent and programmatic access 2026-04-11 11:10:01 +05:30
__main__.py Add CLI for agent and programmatic access 2026-04-11 11:10:01 +05:30
client.py Surface multi-branch state in CLI and MCP by default 2026-04-12 02:02:03 +05:30
formatters.py Surface multi-branch state in CLI and MCP by default 2026-04-12 02:02:03 +05:30
main.py Add skills CLI subcommand and smriti_install_skill MCP tool 2026-04-12 02:10:16 +05:30
mcp_server.py Add skills CLI subcommand and smriti_install_skill MCP tool 2026-04-12 02:10:16 +05:30