@kurokeita/add-skill 1.20.0 → 2.0.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 +17 -8
- package/dist/bin/cli.js +576 -792
- package/dist/skills/git-commit/SKILL.md +101 -37
- package/dist/skills/handoff/SKILL.md +16 -0
- package/dist/skills/init-agents-md/SKILL.md +51 -0
- package/dist/skills/init-agents-md/references/agents_template.md +42 -0
- package/dist/skills/init-agents-md/references/patterns_template.md +19 -0
- package/dist/skills/koreader-plugin-development/SKILL.md +141 -0
- package/dist/skills/koreader-plugin-development/examples/2-example-patch.lua +17 -0
- package/dist/skills/koreader-plugin-development/examples/_meta.lua +6 -0
- package/dist/skills/koreader-plugin-development/examples/helloworld.lua +36 -0
- package/dist/skills/koreader-plugin-development/references/debugging.md +92 -0
- package/dist/skills/koreader-plugin-development/references/events-and-widgets.md +102 -0
- package/dist/skills/koreader-plugin-development/references/patches.md +118 -0
- package/dist/skills/koreader-plugin-development/references/plugin-anatomy.md +97 -0
- package/dist/skills/statusline-setup/SKILL.md +211 -66
- package/dist/skills/universalize-agents/SKILL.md +245 -0
- package/dist/skills/universalize-agents/reference/hook-templates/README.md +30 -0
- package/dist/skills/universalize-agents/reference/hook-templates/claude-code.json +15 -0
- package/dist/skills/universalize-agents/reference/hook-templates/codex.toml +10 -0
- package/dist/skills/universalize-agents/reference/hook-templates/copilot.json +9 -0
- package/dist/skills/universalize-agents/reference/hook-templates/gemini.json +11 -0
- package/dist/skills/universalize-agents/reference/mapping.md +100 -0
- package/dist/skills/universalize-agents/scripts/agent-setup.ps1 +83 -0
- package/dist/skills/universalize-agents/scripts/agent-setup.sh +98 -0
- package/dist/skills/update-agents-md/SKILL.md +43 -0
- package/package.json +2 -5
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
|
-
|
|
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/
|
|
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
|
-
|
|
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`,
|
|
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/
|
|
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
|
|