Skip to content

Commit e167239

Browse files
gold-ak47claude
andcommitted
fix: correct skill frontmatter and hand-off invocation
Skills need name/description/version frontmatter (not command-style description/arguments). Updated all 5 skills to proper format with trigger descriptions. Fixed dev.md and cms.md hand-offs to use Skill tool invocation instead of slash command syntax. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be96865 commit e167239

7 files changed

Lines changed: 22 additions & 32 deletions

File tree

.claude-plugin/ui/commands/cms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ If `.treble/build-state.json` doesn't exist or has no `buildConfig`, fall back t
5656

5757
## Hand off
5858

59-
Once you know the platform, invoke the matching skill:
59+
Once you know the platform, hand off to the matching skill using the `Skill` tool:
6060

61-
- **sanity**invoke `/treble:cms-sanity`
62-
- **prismic**invoke `/treble:cms-prismic`
63-
- **wordpress**invoke `/treble:cms-wp`
61+
- **sanity**`Skill(skill: "treble:cms-sanity")`
62+
- **prismic**`Skill(skill: "treble:cms-prismic")`
63+
- **wordpress**`Skill(skill: "treble:cms-wp")`
6464

6565
Pass through any arguments the user provided (e.g. page name).

.claude-plugin/ui/commands/dev.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ This is your clean baseline. Every component build after this gets its own commi
229229

230230
## Hand off
231231

232-
Once the project is set up and runnable, hand off to the correct build skill:
232+
Once the project is set up and runnable, hand off to the correct build skill using the `Skill` tool:
233233

234-
- **shadcn** (Next.js or Astro) → invoke `/treble:dev-shadcn`
235-
- **wordpress** → invoke `/treble:dev-basecoat-wp`
234+
- **shadcn** (Next.js or Astro) → `Skill(skill: "treble:dev-shadcn")`
235+
- **wordpress** → `Skill(skill: "treble:dev-basecoat-wp")`
236236

237237
Pass through any arguments the user provided (e.g. component name).

.claude-plugin/ui/skills/cms-prismic/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
description: Make a React+shadcn build editable via Prismic Slice Machine
3-
arguments:
4-
- name: page
5-
description: Specific page/feature to make editable (optional, does all if omitted)
6-
required: false
2+
name: cms-prismic
3+
description: Make a React + shadcn/ui build editable via Prismic Slice Machine. Use this skill when /treble:cms determines the CMS platform is Prismic.
4+
version: 0.1.0
75
---
86

97
# Prismic CMS Integration (React + shadcn/ui)

.claude-plugin/ui/skills/cms-sanity/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
description: Make a React+shadcn build editable via Sanity Studio
3-
arguments:
4-
- name: page
5-
description: Specific page/feature to make editable (optional, does all if omitted)
6-
required: false
2+
name: cms-sanity
3+
description: Make a React + shadcn/ui build editable via Sanity Studio. Use this skill when /treble:cms determines the CMS platform is Sanity.
4+
version: 0.1.0
75
---
86

97
# Sanity CMS Integration (React + shadcn/ui)

.claude-plugin/ui/skills/cms-wp/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
description: Make a dev-wp build editable — WordPress CMS integration
3-
arguments:
4-
- name: page
5-
description: Specific page to make editable (optional, does all pages if omitted)
6-
required: false
2+
name: cms-wp
3+
description: Make a WordPress build editable with ACF fields, custom post types, and nav menus. Use this skill when /treble:cms determines the CMS platform is WordPress.
4+
version: 0.1.0
75
---
86

97
# /treble:cms-wp — WordPress CMS Editability

.claude-plugin/ui/skills/dev-basecoat-wp/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
description: Build loop for WordPress + Sage + Basecoat targets — invoked by /treble:dev
3-
arguments:
4-
- name: component
5-
description: Start from a specific component (optional, picks next planned)
6-
required: false
2+
name: dev-basecoat-wp
3+
description: Build loop for WordPress + Sage + Basecoat targets. Use this skill when /treble:dev determines the deployment target is WordPress, or when the user asks to build a WordPress theme.
4+
version: 0.1.0
75
---
86

97
# /treble:dev-basecoat-wp — Build Loop (WordPress + Sage + Basecoat)

.claude-plugin/ui/skills/dev-shadcn/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
description: Build loop for React + shadcn/ui targets — invoked by /treble:dev
3-
arguments:
4-
- name: component
5-
description: Start from a specific component (optional, picks next planned)
6-
required: false
2+
name: dev-shadcn
3+
description: Build loop for React + shadcn/ui targets. Use this skill when /treble:dev determines the deployment target is Next.js or Astro, or when the user asks to build components with shadcn/ui.
4+
version: 0.1.0
75
---
86

97
# /treble:dev-shadcn — Build Loop (React + shadcn/ui)

0 commit comments

Comments
 (0)