@kurokeita/add-skill 1.21.0 → 2.1.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.
package/README.md CHANGED
@@ -94,35 +94,44 @@ Import a skill, agent, or workflow from GitHub into this repository.
94
94
  pnpm dev import https://github.com/owner/repo/tree/main/skills/skill-name
95
95
  ```
96
96
 
97
+ ## How Installs Work
98
+
99
+ `add` copies every item into a single canonical directory:
100
+
101
+ - **Global scope** → `~/.agents/{skills,agents,commands}`
102
+ - **Project scope** → `<project-root>/.agents/{skills,agents,commands}`
103
+
104
+ Skills go under `skills`, agents under `agents`, and workflows under `commands`. After copying, `add` can optionally wire each platform you select: it installs a session-start hook (under `.agents/hooks/`) and registers it in that platform's config. On each new session the hook symlinks the canonical `.agents/` entries back into the platform's own directories, so every tool sees the same set of items from one source of truth.
105
+
106
+ `list` and `remove` operate on the canonical `.agents/` dir. Removing an entry also prunes any platform symlink left pointing at it.
107
+
97
108
  ## Supported Platforms
98
109
 
99
- <!-- SUPPORTED_AGENTS_START -->
110
+ The tables below show where each platform consumes items from — i.e. the symlink destinations the session-start hook creates.
111
+
100
112
  | Platform | Agents Path | Skills Path | Workflows Path |
101
113
  | :--- | :--- | :--- | :--- |
102
114
  | Antigravity | *Not Supported* | `~/.gemini/antigravity/global_skills` | `~/.gemini/antigravity/global_workflows` |
103
- | Claude Code | `~/.claude/agents` | `~/.claude/skills` | `~/.claude/skills` |
115
+ | Claude Code | `~/.claude/agents` | `~/.claude/skills` | `~/.claude/commands` |
104
116
  | Codex | `~/.codex/skills` | `~/.codex/skills` | `~/.codex/skills` |
105
117
  | Gemini CLI | `~/.gemini/agents` | `~/.gemini/skills` | `~/.gemini/commands` |
106
118
  | GitHub Copilot | `~/.copilot/agents` | `~/.copilot/skills` | `~/.copilot/prompts` |
107
119
  | Windsurf | *Not Supported* | `~/.codeium/windsurf/skills` | `~/.codeium/windsurf/global_workflows` |
108
- <!-- SUPPORTED_AGENTS_END -->
109
120
 
110
- For Codex, this package installs skills directly and converts agents and workflows into Codex skill packages under `~/.codex/skills`.
121
+ Codex consumes skills, agents, and workflows from a single `~/.codex/skills` directory, so all three symlink there.
111
122
 
112
123
  ### Project-scope paths
113
124
 
114
- When you pick `--scope project`, items are written under the current working directory instead of `~`. The mapping below uses `<project-root>` to mean `process.cwd()` (no git-toplevel relocation: a monorepo subdirectory installs into that subdirectory, not the repo root).
125
+ When you pick `--scope project`, the canonical `.agents/` dir and the symlink destinations live under the current working directory instead of `~`. The mapping below uses `<project-root>` to mean `process.cwd()` (no git-toplevel relocation: a monorepo subdirectory installs into that subdirectory, not the repo root).
115
126
 
116
- <!-- PROJECT_SCOPE_PATHS_START -->
117
127
  | Platform | Agents Path | Skills Path | Workflows Path |
118
128
  | :--- | :--- | :--- | :--- |
119
129
  | Antigravity | *Not Supported* | `<project-root>/.gemini/antigravity/skills` | `<project-root>/.gemini/antigravity/workflows` |
120
- | Claude Code | `<project-root>/.claude/agents` | `<project-root>/.claude/skills` | `<project-root>/.claude/skills` |
130
+ | Claude Code | `<project-root>/.claude/agents` | `<project-root>/.claude/skills` | `<project-root>/.claude/commands` |
121
131
  | Codex | `<project-root>/.codex/skills` | `<project-root>/.codex/skills` | `<project-root>/.codex/skills` |
122
132
  | Gemini CLI | `<project-root>/.gemini/agents` | `<project-root>/.gemini/skills` | `<project-root>/.gemini/commands` |
123
133
  | GitHub Copilot | `<project-root>/.copilot/agents` | `<project-root>/.copilot/skills` | `<project-root>/.copilot/prompts` |
124
134
  | Windsurf | *Not Supported* | `<project-root>/.codeium/windsurf/skills` | `<project-root>/.codeium/windsurf/workflows` |
125
- <!-- PROJECT_SCOPE_PATHS_END -->
126
135
 
127
136
  Project scope is refused when `cwd` equals your home directory or `cwd` is not inside a git work tree. When refused interactively, you can fall back to global scope without losing your already-selected items and platforms.
128
137