agentpacks 0.9.0 → 1.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.
Files changed (67) hide show
  1. package/README.md +41 -14
  2. package/dist/api.js +403 -179
  3. package/dist/cli/export-cmd.js +58 -5
  4. package/dist/cli/generate.js +268 -59
  5. package/dist/cli/import-cmd.js +203 -95
  6. package/dist/cli/install.js +1 -0
  7. package/dist/cli/models-explain.js +56 -0
  8. package/dist/cli/pack/list.js +56 -0
  9. package/dist/cli/pack/validate.js +143 -18
  10. package/dist/cli/publish.js +1 -0
  11. package/dist/core/config.d.ts +1 -1
  12. package/dist/core/config.js +1 -0
  13. package/dist/core/index.js +56 -0
  14. package/dist/core/metarepo.js +1 -0
  15. package/dist/core/pack-loader.js +56 -0
  16. package/dist/exporters/cursor-plugin.js +109 -22
  17. package/dist/exporters/index.js +109 -22
  18. package/dist/features/index.d.ts +1 -1
  19. package/dist/features/index.js +59 -0
  20. package/dist/features/skills.d.ts +22 -0
  21. package/dist/features/skills.js +60 -1
  22. package/dist/importers/cursor.js +122 -26
  23. package/dist/importers/opencode.js +138 -24
  24. package/dist/importers/rulesync.js +147 -33
  25. package/dist/index.js +484 -244
  26. package/dist/node/api.js +403 -179
  27. package/dist/node/cli/export-cmd.js +58 -5
  28. package/dist/node/cli/generate.js +268 -59
  29. package/dist/node/cli/import-cmd.js +203 -95
  30. package/dist/node/cli/install.js +1 -0
  31. package/dist/node/cli/models-explain.js +56 -0
  32. package/dist/node/cli/pack/list.js +56 -0
  33. package/dist/node/cli/pack/validate.js +143 -18
  34. package/dist/node/cli/publish.js +1 -0
  35. package/dist/node/core/config.js +1 -0
  36. package/dist/node/core/index.js +56 -0
  37. package/dist/node/core/metarepo.js +1 -0
  38. package/dist/node/core/pack-loader.js +56 -0
  39. package/dist/node/exporters/cursor-plugin.js +109 -22
  40. package/dist/node/exporters/index.js +109 -22
  41. package/dist/node/features/index.js +59 -0
  42. package/dist/node/features/skills.js +60 -1
  43. package/dist/node/importers/cursor.js +122 -26
  44. package/dist/node/importers/opencode.js +138 -24
  45. package/dist/node/importers/rulesync.js +147 -33
  46. package/dist/node/index.js +484 -244
  47. package/dist/node/targets/claude-code.js +56 -1
  48. package/dist/node/targets/codex-cli.js +56 -1
  49. package/dist/node/targets/copilot.js +56 -1
  50. package/dist/node/targets/cursor.js +56 -5
  51. package/dist/node/targets/index.js +268 -59
  52. package/dist/node/targets/mistral-vibe.js +661 -0
  53. package/dist/node/targets/opencode.js +56 -1
  54. package/dist/node/targets/registry.js +267 -59
  55. package/dist/node/utils/model-allowlist.js +6 -2
  56. package/dist/targets/claude-code.js +56 -1
  57. package/dist/targets/codex-cli.js +56 -1
  58. package/dist/targets/copilot.js +56 -1
  59. package/dist/targets/cursor.js +56 -5
  60. package/dist/targets/index.d.ts +1 -0
  61. package/dist/targets/index.js +268 -59
  62. package/dist/targets/mistral-vibe.d.ts +13 -0
  63. package/dist/targets/mistral-vibe.js +661 -0
  64. package/dist/targets/opencode.js +56 -1
  65. package/dist/targets/registry.js +267 -59
  66. package/dist/utils/model-allowlist.js +6 -2
  67. package/package.json +15 -3
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  **Composable AI agent configuration manager.**
9
9
 
10
- Write your rules, commands, skills, hooks, models, and MCP configs once — in a pack — and sync them automatically to OpenCode, Cursor, Claude Code, Codex CLI, Gemini CLI, GitHub Copilot, and 13 more tools. Discover and share packs via the **agentpacks registry**.
10
+ Write your rules, commands, skills, hooks, models, and MCP configs once — in a pack — and sync them automatically to OpenCode, Cursor, Claude Code, Codex CLI, Gemini CLI, GitHub Copilot, and 14 more tools. Discover and share packs via the **agentpacks registry**.
11
11
 
12
12
  ---
13
13
 
@@ -19,7 +19,7 @@ AI coding tools are proliferating fast. Every tool has its own config format:
19
19
  - Claude Code wants `CLAUDE.md` and `.claude/rules/*.md`
20
20
  - OpenCode wants `.opencode/agent/*.md`, `.opencode/skill/*.md`, `opencode.json`
21
21
  - Codex wants `.codex/memories/*.md`
22
- - And so on for 20+ tools…
22
+ - And so on for 21+ tools…
23
23
 
24
24
  **Maintaining all of these by hand means:**
25
25
 
@@ -31,7 +31,7 @@ AI coding tools are proliferating fast. Every tool has its own config format:
31
31
 
32
32
  1. Write your rules/commands/agents/skills once, in plain Markdown with simple frontmatter
33
33
  2. Group them into a _pack_ (a folder with a `pack.json` manifest)
34
- 3. Run `agentpacks generate` — all 20 supported tools get their configs, properly formatted
34
+ 3. Run `agentpacks generate` — all 21 supported tools get their configs, properly formatted
35
35
 
36
36
  ### vs rulesync
37
37
 
@@ -97,15 +97,16 @@ This reads your `.rulesync/` directory and `rulesync.jsonc`, and creates an equi
97
97
 
98
98
  ### Core targets — full feature support
99
99
 
100
- | Target | ID | Rules | Commands | Agents | Skills | Hooks | Plugins | MCP | Ignore |
101
- | -------------- | ------------ | :---: | :------: | :----: | :----: | :---: | :-----: | :-: | :----: |
102
- | OpenCode | `opencode` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
103
- | Cursor | `cursor` | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ | ✓ |
104
- | Claude Code | `claudecode` | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ | ✓ |
105
- | Codex CLI | `codexcli` | ✓ | | | ✓ | ✓ | | ✓ | |
106
- | Gemini CLI | `geminicli` | ✓ | ✓ | | ✓ | ✓ | | ✓ | ✓ |
107
- | GitHub Copilot | `copilot` | ✓ | ✓ | ✓ | ✓ | | | ✓ | ✓ |
108
- | AGENTS.md | `agentsmd` | ✓ | | | | | | | |
100
+ | Target | ID | Rules | Commands | Agents | Skills | Hooks | Plugins | MCP | Ignore |
101
+ | -------------- | ------------- | :---: | :------: | :----: | :----: | :---: | :-----: | :-: | :----: |
102
+ | OpenCode | `opencode` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
103
+ | Cursor | `cursor` | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ | ✓ |
104
+ | Claude Code | `claudecode` | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ | ✓ |
105
+ | Codex CLI | `codexcli` | ✓ | | | ✓ | ✓ | | ✓ | |
106
+ | Mistral Vibe | `mistralvibe` | ✓ | ✓ | ✓ | ✓ | | | ✓ | ✓ |
107
+ | Gemini CLI | `geminicli` | ✓ | ✓ | | ✓ | ✓ | | ✓ | ✓ |
108
+ | GitHub Copilot | `copilot` | ✓ |||| | |||
109
+ | AGENTS.md | `agentsmd` | ✓ | | | | | | | |
109
110
 
110
111
  ### Additional targets — rules, MCP, and more
111
112
 
@@ -136,7 +137,7 @@ agentpacks supports 9 feature types inside a pack:
136
137
  | **rules** | Project/coding guidelines injected as context | `rules/security.md`, `rules/style.md` |
137
138
  | **commands** | Slash commands (e.g. `/lint`, `/review`) | `commands/lint.md`, `commands/deploy.md` |
138
139
  | **agents** | Named sub-agents with specific personas | `agents/reviewer.md`, `agents/architect.md` |
139
- | **skills** | Step-by-step skill guides (with structured SKILL.md) | `skills/migrate/SKILL.md` |
140
+ | **skills** | Step-by-step skill guides (AgentSkills-compatible) | `skills/migrate/SKILL.md` |
140
141
  | **hooks** | Shell commands triggered by agent events | `hooks.json` |
141
142
  | **plugins** | Raw TypeScript plugin files (OpenCode) | `plugins/my-plugin.ts` |
142
143
  | **mcp** | MCP server definitions | `mcp.json` |
@@ -302,6 +303,8 @@ agentpacks pack list
302
303
 
303
304
  Validate pack manifests and feature files for schema errors.
304
305
 
306
+ For skills, validation also checks AgentSkills requirements (`name`, `description`, naming rules, and `skills/<name>/SKILL.md` alignment).
307
+
305
308
  ```bash
306
309
  agentpacks pack validate
307
310
  ```
@@ -464,13 +467,14 @@ Created at your project root by `agentpacks init`.
464
467
  // Temporarily disable a pack without removing it
465
468
  "disabled": [],
466
469
 
467
- // Which AI tools to generate configs for (* = all 20)
470
+ // Which AI tools to generate configs for (* = all 21)
468
471
  "targets": [
469
472
  "opencode",
470
473
  "cursor",
471
474
  "claudecode",
472
475
  "geminicli",
473
476
  "codexcli",
477
+ "mistralvibe",
474
478
  "copilot",
475
479
  ],
476
480
 
@@ -562,6 +566,29 @@ description: 'Run a code review'
562
566
  Review the selected code for correctness, style, and potential bugs.
563
567
  ```
564
568
 
569
+ ### Skill frontmatter (AgentSkills-compatible)
570
+
571
+ `SKILL.md` follows the [AgentSkills](https://agentskills.io/home.md) metadata model.
572
+
573
+ - Required: `name`, `description`
574
+ - `name` must match the `skills/<name>/` directory and use lowercase letters, numbers, and single hyphens
575
+ - Optional fields like `allowed-tools`, `compatibility`, and other metadata are preserved during generation/export
576
+
577
+ ```markdown
578
+ ---
579
+ name: migrate-component
580
+ description: Migrate a component to design-system primitives
581
+ allowed-tools:
582
+ - read
583
+ - edit
584
+ compatibility:
585
+ cursor: '>=0.50.0'
586
+ targets: ['*']
587
+ ---
588
+
589
+ Step-by-step migration workflow...
590
+ ```
591
+
565
592
  ### MCP config — `mcp.json`
566
593
 
567
594
  ```json