Skip to content

Commit 81ffd49

Browse files
committed
skill description improvements
1 parent 314950d commit 81ffd49

27 files changed

Lines changed: 68 additions & 40 deletions

File tree

.claude/skills/skill-authoring/SKILL.md

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,43 @@ description: Brief description of what the skill does
3131
```
3232

3333
- **name**: Unique identifier (lowercase, hyphens)
34-
- **description**: One-line summary (loaded at startup for all skills)
34+
- **description**: Rich description for skill discovery (1-1024 characters)
35+
36+
### Writing Effective Descriptions
37+
38+
The description field is **critical for skill discovery** by coding agents. It should include:
39+
40+
1. **What the skill does** - Core functionality
41+
2. **When to use it** - Trigger scenarios
42+
3. **Keywords** - Task-oriented phrases that help agents connect questions to skills
43+
44+
**Format:**
45+
```yaml
46+
description: "[What it does]. Use when [scenarios]. Keywords/phrases."
47+
```
48+
49+
**Good examples:**
50+
```yaml
51+
# Task-oriented phrases help agents connect "how do I" questions
52+
description: Search and read B2C Commerce Script API documentation and XSD schemas. Use when writing B2C scripts, looking up classes like URLUtils/ProductMgr/CustomerMgr, or answering "how do I" questions about generating URLs, querying products, processing orders, or any dw.* API task.
53+
54+
# Include common error scenarios
55+
description: View and debug B2C CLI configuration. Use when authentication fails, connection errors occur, wrong instance is used, or you need to verify dw.json settings, environment variables, or OAuth credentials.
56+
57+
# Disambiguation helps agents choose the right skill
58+
description: Run and monitor existing jobs, import/export site archives. Use when executing batch jobs, importing site data, or checking job status. For creating new job code, use b2c-custom-job-steps instead.
59+
```
60+
61+
**Bad examples:**
62+
```yaml
63+
# Too brief - no discovery keywords
64+
description: Using the b2c CLI for documentation
65+
66+
# Action-oriented instead of problem-oriented
67+
description: Using the b2c CLI to search and read Script API documentation
68+
```
69+
70+
**Key insight:** Include **task-oriented phrases** ("generating URLs", "querying products") not just class names, since users ask about tasks they want to accomplish.
3571
3672
### Instructions Body
3773
@@ -40,21 +76,13 @@ The body contains markdown instructions that tell the agent how to perform the t
4076
```markdown
4177
---
4278
name: my-skill
43-
description: Does something useful
79+
description: Does something useful. Use when [scenarios]. Keywords: [task phrases].
4480
---
4581

4682
# Skill Title
4783

4884
Brief overview of what this skill helps accomplish.
4985

50-
## When to Use
51-
52-
Describe scenarios when this skill applies.
53-
54-
## How to Use
55-
56-
Step-by-step instructions or patterns.
57-
5886
## Examples
5987

6088
Concrete examples demonstrating usage.
@@ -64,6 +92,8 @@ Concrete examples demonstrating usage.
6492
- [Detailed Reference](references/REFERENCE.md) - Link to additional docs
6593
```
6694
95+
Note: The description frontmatter is the **only** discovery mechanism. "When to Use" sections in the body are not used for discovery. Put all discovery-relevant information in the description.
96+
6797
## Progressive Disclosure
6898
6999
Structure skills for efficient context usage:

plugins/b2c-cli/skills/b2c-code/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-code
3-
description: Using the b2c CLI for code version deployment and management
3+
description: Deploy and manage code versions on B2C Commerce instances. Use when uploading cartridges, activating code versions, watching for file changes during development, or syncing local code to sandbox.
44
---
55

66
# B2C Code Skill

plugins/b2c-cli/skills/b2c-config/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-config
3-
description: Using the b2c CLI to view and debug current configuration for instance, SCAPI, oauth and MRT settings.
3+
description: View and debug B2C CLI configuration and understand where credentials come from. Use when authentication fails, connection errors occur, wrong instance is used, or you need to verify dw.json settings, environment variables (SFCC_*), or OAuth credentials are loaded correctly.
44
---
55

66
# B2C Config Skill

plugins/b2c-cli/skills/b2c-docs/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-docs
3-
description: Using the b2c CLI to search and read Script API documentation and XSD schemas
3+
description: Search and read B2C Commerce Script API documentation and XSD schemas. Use when writing B2C scripts, looking up classes like URLUtils/ProductMgr/CustomerMgr, or answering "how do I" questions about generating URLs, querying products, processing orders, or any dw.* API task. Also use for import/export XML format reference.
44
---
55

66
# B2C Docs Skill

plugins/b2c-cli/skills/b2c-ecdn/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-ecdn
3-
description: Using the b2c CLI for eCDN (embedded Content Delivery Network) management
3+
description: Manage eCDN (embedded Content Delivery Network) settings. Use when purging cache, configuring WAF rules, managing SSL certificates, setting rate limits, or creating CDN zones for storefronts.
44
---
55

66
# B2C eCDN Skill

plugins/b2c-cli/skills/b2c-job/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: b2c-job
3-
description: Using the b2c CLI to run and monitor existing jobs, import/export site archives (IMPEX). Use this for executing jobs, not creating new job step code.
4-
keywords: [run job, execute job, import data, export data, site archive, IMPEX, job status, job log]
3+
description: Run and monitor existing jobs, import/export site archives (IMPEX). Use when executing batch jobs, importing site data, running search indexing, checking job status, or viewing job logs. For creating new job code, use b2c-custom-job-steps instead.
54
---
65

76
# B2C Job Skill

plugins/b2c-cli/skills/b2c-mrt/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-mrt
3-
description: Using the b2c CLI for Managed Runtime (MRT) project and deployment management
3+
description: Deploy and manage Managed Runtime (MRT) PWA storefronts. Use when deploying bundles, managing environments, setting environment variables, configuring redirects, or working with CDN for PWA Kit projects.
44
---
55

66
# B2C MRT Skill

plugins/b2c-cli/skills/b2c-ods/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-ods
3-
description: Using the b2c CLI for on-demand sandbox (ODS) management
3+
description: Create and manage on-demand sandboxes (ODS). Use when provisioning development instances, starting/stopping sandboxes, checking sandbox status, or managing sandbox lifecycle. Only create or delete sandboxes when explicitly requested.
44
---
55

66
# B2C ODS Skill

plugins/b2c-cli/skills/b2c-scapi-custom/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-scapi-custom
3-
description: Using the b2c CLI for Custom SCAPI endpoint management
3+
description: Check Custom SCAPI endpoint registration status. Use when verifying custom API deployment, debugging "endpoint not found" errors, or checking if code activation registered new APIs. For creating new custom APIs, use b2c-custom-api-development instead.
44
---
55

66
# B2C SCAPI Custom APIs Skill

plugins/b2c-cli/skills/b2c-scapi-schemas/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: b2c-scapi-schemas
3-
description: Using the b2c CLI to browse and retrieve SCAPI schema specifications
3+
description: Browse and retrieve SCAPI OpenAPI schemas. Use when exploring available SCAPI endpoints, checking API request/response formats, understanding SCAPI data models, or finding the right API for a task.
44
---
55

66
# B2C SCAPI Schemas Skill

0 commit comments

Comments
 (0)