@ahood/cli 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ahood
3
- description: How to use the ahood CLI (@ahood/cli), the registry for reusable AI-agent skills, subagent definitions (AGENT.md), and MCP server manifests (server.json). Load BEFORE running any ahood command; before writing a non-trivial reusable skill, subagent, or MCP integration from scratch (search the registry first); when installing, updating, removing, publishing, sharing, or unpublishing one; when wiring ahood into an MCP host; or when setting up headless/CI access with AHOOD_TOKEN. Triggers - ahood, skill registry, is there a skill for this, install a skill, install an agent, add an MCP server, publish a skill, ahood mcp, AHOOD_TOKEN.
3
+ description: How to use the ahood CLI (@ahood/cli), the registry for reusable AI-agent skills, subagent definitions (AGENT.md), MCP server manifests (server.json), docs (DOC.md), and project guides (PROJECT.md). Load BEFORE running any ahood command; before writing a non-trivial reusable skill, subagent, or MCP integration from scratch (search the registry first); when installing, updating, removing, publishing, sharing, or unpublishing one; when wiring ahood into an MCP host; or when setting up headless/CI access with AHOOD_TOKEN. Triggers - ahood, skill registry, is there a skill for this, install a skill, install an agent, add an MCP server, read a doc, project guide, publish a skill, ahood mcp, ahood doc, ahood project, AHOOD_TOKEN.
4
4
  ---
5
5
 
6
6
  # ahood
@@ -13,28 +13,37 @@ and only moves when someone runs an update.
13
13
  This guide ships inside the CLI itself (`ahood help useme`), so it matches the installed
14
14
  version (`ahood --version`). It needs no login or network to print.
15
15
 
16
- ## Three kinds, three command groups
16
+ ## Five kinds, five command groups
17
17
 
18
18
  | Kind | Root file | Installs to | Commands |
19
19
  |---|---|---|---|
20
20
  | skill | `SKILL.md` | `.claude/skills/<owner>@<skill>/` | `ahood skill <verb>` |
21
21
  | agent | `AGENT.md` | `.claude/agents/<owner>@<agent>.md` | `ahood agent <verb>` |
22
22
  | mcp | `server.json` | an entry merged into `.mcp.json` | `ahood mcp <verb>` |
23
+ | doc | `DOC.md` | `.claude/docs/<owner>@<doc>.md` | `ahood doc <verb>` |
24
+ | project | `PROJECT.md` | `.claude/project.md` (one per repository) | `ahood project <verb>` |
23
25
 
24
- All three groups take the same verbs: `search`, `list`, `view`/`show`, `read`, `versions`,
26
+ All five groups take the same verbs: `search`, `list`, `view`/`show`, `read`, `versions`,
25
27
  `diff`, `add`, `update`, `outdated`, `remove`, `edit`, `unpublish`, `star`, `unstar`,
26
28
  `share`, `unshare`, `init`, `publish`.
27
29
 
28
- - `ahood agent <verb>` and `ahood mcp <verb>` act on their own kind only. A target of another
29
- kind is refused (exit 2) before anything is downloaded, prompted for, written, or sent,
30
- and the error names the kind it found and the right command.
30
+ - `ahood agent <verb>`, `ahood mcp <verb>`, `ahood doc <verb>` and `ahood project <verb>` act on their own kind only.
31
+ A target of another kind is refused (exit 2) before anything is downloaded, prompted for,
32
+ written, or sent, and the error names the kind it found and the right command.
31
33
  - `ahood skill <verb>` is the **legacy, cross-kind** group in this CLI release: `skill search`
32
34
  and `skill list` include every kind, and `skill add`/`skill update` install whatever kind
33
- they resolve. Add `--kind skill` (or `agent`, `mcp`) to any verb to scope it to one kind;
35
+ they resolve, except a doc or project guide: `skill add` refuses one and points at
36
+ `ahood doc add` / `ahood project add`.
37
+ Add `--kind skill` (or `agent`, `mcp`, `doc`, `project`) to any verb to scope it to one kind;
34
38
  `--kind all` spells out the legacy behavior. Prefer the kind-specific form in anything new --
35
39
  a future major version makes `ahood skill` skills-only.
36
- - The registry also has a `doc` kind (documentation pages). This CLI has no `doc` group;
37
- browse those on the website.
40
+ - A doc is a documentation page. `ahood doc read alice/setup-guide` prints it without
41
+ installing anything; `ahood doc add alice/setup-guide` saves it as one pinned file under
42
+ `.claude/docs/`, which `ahood doc update` and `ahood doc remove` manage like any other pin.
43
+ - A project guide is how to work in one repository: conventions, verification, traps. Run bare
44
+ `ahood project` inside a repository to list the guides naming its git remote;
45
+ `ahood project add alice/acme-api` saves one to `.claude/project.md` (pinned, one per
46
+ repository) and never touches `CLAUDE.md` or `AGENTS.md` -- point those at it yourself.
38
47
 
39
48
  ## Find, inspect, then install
40
49
 
@@ -84,7 +93,7 @@ ahood skill update --dry-run --json # preview, machine-readable
84
93
  ahood agent remove alice/code-reviewer # local uninstall; prompts unless --yes
85
94
  ```
86
95
 
87
- With no target, `agent`/`mcp` `update` and `outdated` consider only installed pins of that
96
+ With no target, `agent`/`mcp`/`doc`/`project` `update` and `outdated` consider only installed pins of that
88
97
  kind; the legacy `skill update` covers every pin. Updates only affect the current project.
89
98
  An `.mcp.json` entry you edited by hand is refused rather than overwritten.
90
99
 
@@ -96,13 +105,15 @@ Scaffold a valid starter, edit it, then publish an immutable semver version:
96
105
  ahood skill init pdf-tools # ./pdf-tools/SKILL.md
97
106
  ahood agent init code-reviewer # ./code-reviewer/AGENT.md
98
107
  ahood mcp init github-server # ./github-server/server.json (placeholder URL)
108
+ ahood doc init setup-guide # ./setup-guide/DOC.md
109
+ ahood project init acme-api # ./acme-api/PROJECT.md, `project:` filled from git origin
99
110
 
100
111
  ahood agent publish alice/code-reviewer@1.0.0 --path code-reviewer --name "Code Reviewer"
101
112
  ahood skill publish alice/pdf-tools@1.1.0 --path pdf-tools --changelog "Adds split"
102
113
  ```
103
114
 
104
115
  - `--name` is required only on the first publish, which creates the entry under your
105
- account. `agent publish`/`mcp publish` imply the kind and refuse a contradictory `--kind`
116
+ account. `agent publish`/`mcp publish`/`doc publish`/`project publish` imply the kind and refuse a contradictory `--kind`
106
117
  or an existing entry of another kind before uploading anything.
107
118
  - **New entries are private.** Make one discoverable explicitly:
108
119
  `ahood skill edit alice/pdf-tools --visibility public`.
@@ -149,7 +160,7 @@ ahood skill publish alice/pdf-tools@1.1.0 --path pdf-tools --changelog "Adds spl
149
160
  3. **The hosted registry MCP endpoint**, `https://www.ahood.dev/api/mcp`: Streamable HTTP,
150
161
  stateless (POST only), `Authorization: Bearer <token>`. It has write tools too:
151
162
  `search_skills`, `get_skill`, `fetch_skill`, `read_skill`, `list_skill_versions`,
152
- `list_my_skills`, `search_collections`, `get_collection`, `create_skill`, `update_skill`,
163
+ `list_my_skills`, `search_collections`, `get_collection`, `get_project_guide`, `create_skill`, `update_skill`,
153
164
  `report_skill`, `delete_skill`, `yank_version`, and snap tools (`create_snap`,
154
165
  `list_snaps`, `get_snap`, `set_snap_tags`, `delete_snap`, `share_snap`, `unshare_snap`).
155
166
  A client that opens with a legacy-SSE `GET` gets a 405 -- use a Streamable HTTP client.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahood/cli",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "CLI for ahood, a registry for installing and publishing Claude Code skills.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/AlexKay28/ahood-cli",