Skip to content

Commit 2834948

Browse files
authored
refactor(nuxt-i18n): move skills to standard path and update CLAUDE.md (#122)
* refactor(nuxt-i18n): move skills from .agents/skills/ to skills/ Align with skills.sh convention used by other plugins (e.g. nuxt-ui). * docs: add skills directory and agent-memory guidelines to CLAUDE.md
1 parent 14c03cc commit 2834948

13 files changed

Lines changed: 10 additions & 3 deletions

CLAUDE.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,17 @@ When integrating an existing MCP server or tool as a Claude Code plugin:
365365

366366
**Directory Structure:**
367367
- `.claude-plugin/plugin.json` must be at this exact path
368-
- `hooks/`, `commands/`, `agents/` directories at plugin root
368+
- `hooks/`, `commands/`, `agents/`, `skills/` directories at plugin root
369369
- Use `${CLAUDE_PLUGIN_ROOT}` for all path references
370370

371+
**Skills Directory:**
372+
- Built-in plugins (`plugins/`) use `skills/` at plugin root (default path, no need to set `"skills"` in plugin.json)
373+
- `.agents/skills/` is used by skills.sh (`bunx skills add`) — same convention, different path
374+
- Do NOT create a `skills/<name>/` directory at the repository root for built-in plugins
375+
376+
**Agent Memory:**
377+
- Review agents create memory files in `.claude/agent-memory/`. These are NOT auto-committed — commit them after review sessions
378+
371379
**Hooks Auto-Loading:**
372380
- `hooks/hooks.json` is auto-loaded by Claude Code — do NOT reference it in `plugin.json`'s `hooks` field
373381
- `plugin.json`'s `hooks` field should only reference ADDITIONAL hook files beyond the standard path

plugins/nuxt-i18n/.claude-plugin/plugin.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
"internationalization",
1616
"vue-i18n",
1717
"localization"
18-
],
19-
"skills": "./.agents/skills/"
18+
]
2019
}
File renamed without changes.
File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/advanced-domains.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/advanced-domains.md

File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/advanced-server-hooks.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/advanced-server-hooks.md

File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/api-reference.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/api-reference.md

File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/core-configuration.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/core-configuration.md

File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/core-routing.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/core-routing.md

File renamed without changes.

plugins/nuxt-i18n/.agents/skills/nuxt-i18n/references/features-detection-switching.md renamed to plugins/nuxt-i18n/skills/nuxt-i18n/references/features-detection-switching.md

File renamed without changes.

0 commit comments

Comments
 (0)