Skip to content

Commit e7a5e58

Browse files
hichanaclaude
andauthored
Add manual plugin validation fallback when CLI validator is unavailable (#63)
When running inside Cowork, `claude plugin validate` may not be available. This adds a manual verification checklist covering plugin.json structure, naming conventions, component directories, and expected file formats. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c43af45 commit e7a5e58

File tree

1 file changed

+8
-1
lines changed
  • cowork-plugin-management/skills/create-cowork-plugin

1 file changed

+8
-1
lines changed

cowork-plugin-management/skills/create-cowork-plugin/SKILL.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,14 @@ If the user says "whatever you think is best," provide specific recommendations
234234

235235
1. Summarize what was created — list each component and its purpose
236236
2. Ask if the user wants any adjustments
237-
3. Run `claude plugin validate <path-to-plugin-json>`; fix any errors and warnings
237+
3. Run `claude plugin validate <path-to-plugin-json>` to check the plugin structure. If this command is unavailable (e.g., when running inside Cowork), verify the structure manually:
238+
- `.claude-plugin/plugin.json` exists and contains valid JSON with at least a `name` field
239+
- The `name` field is kebab-case (lowercase letters, numbers, and hyphens only)
240+
- Any component directories referenced by the plugin (`commands/`, `skills/`, `agents/`, `hooks/`) actually exist and contain files in the expected formats — `.md` for commands/skills/agents, `.json` for hooks
241+
- Each skill subdirectory contains a `SKILL.md`
242+
- Report what passed and what didn't, the same way the CLI validator would
243+
244+
Fix any errors before proceeding.
238245
4. Package as a `.plugin` file:
239246

240247
```bash

0 commit comments

Comments
 (0)