| name | skill-creator |
| description | Create, test, and improve skills for the Storybook Astro development workflow. Use when users want to create a new skill for the project, improve existing skills, or validate skill functionality against project-specific patterns. |
Storybook Astro Skill Creator
A skill for creating and validating new AI skills customized for the Storybook Astro monorepo.
Overview
This skill guides you through creating skills that integrate with Storybook Astro's development workflow. Skills should be:
- Project-aware: Understand monorepo structure (workspace protocol, ES modules, Yarn 4+)
- Testing-compatible: Leverage portable stories and Vitest patterns
- Framework-aware: Reference the 6 supported UI frameworks (React, Vue, Svelte, Preact, Solid, Alpine.js)
- CI-aligned: Compatible with linting, testing, and publishing workflows
- Accessible: Work for both Warp app users and Claude users
Creating a Skill
Step 1: Define Intent
Start by understanding what the skill should do:
- What user action triggers this skill? (e.g., "I need a code review for my component")
- What should the skill produce? (e.g., feedback, code, documentation)
- Are outputs objectively verifiable? (Yes → include test cases; No → focus on quality guidance)
- Which project patterns does it reference? (e.g., portable stories, integrations, Yarn commands)
Step 2: Research Project Context
Before writing the skill, gather context:
- Project Structure: Consult
.claude/references/project-structure.md
- Testing Patterns: Review
.claude/references/testing-guidelines.md
- Framework Standards: Read
.claude/references/framework-standards.md
- Architecture: Check
AGENTS.md for technical design
- Existing Skills: Look at other
.claude/skills/*/SKILL.md files for patterns
Step 3: Write SKILL.md
Create your skill in .claude/skills/[skill-name]/SKILL.md:
---
name: skill-name
description: [2-3 sentences. Include when to trigger and what it does.]
allowed-tools: [List tools this skill uses, if restrictive]
---
[What this skill enables]
[Specific triggers and contexts]
[Any domain knowledge needed]
[Step-by-step procedure]
[Realistic usage scenarios]
[Expected results and structure]
Keep SKILL.md under 500 lines. If longer, break into reference files.
Step 4: Include Project-Specific Guidance
For Storybook Astro skills, always include:
- Monorepo navigation: Which workspaces are relevant?
- Yarn commands: Use
workspace:* protocol correctly
- Testing: Reference portable stories, Vitest patterns
- Frameworks: Mention affected frameworks (React, Vue, etc.)
- ESLint/TypeScript: Align with
.eslintrc.js and tsconfig.base.json
Step 5: Create Supporting Files (Optional)
For complex skills, organize supporting files:
.claude/skills/[skill-name]/
├── SKILL.md # Main instructions (required)
├── references/ # Detailed references
│ ├── pattern1.md
│ └── pattern2.md
└── scripts/ # Optional executables
└── helper.js
Reference files from SKILL.md:
See `references/detailed-pattern.md` for advanced configuration.
Storybook Astro Skill Template
Use this template for project-specific skills:
---
name: [skill-name]
description: [How to trigger, what it does. Mention Storybook Astro context.]
---
[What problem does this solve in Storybook Astro development?]
This skill operates within:
- **Project**: Storybook Astro monorepo (Yarn 4+, ES modules)
- **Packages**: Framework and renderer packages
- **Frameworks**: React, Vue, Svelte, Preact, Solid.js, Alpine.js
- **Testing**: Vitest + portable stories
- **CI**: ESLint, TypeScript, Vitest, yarn build:packages
- `AGENTS.md` - Technical architecture
- `.claude/references/project-structure.md` - Workspace navigation
- `.claude/references/testing-guidelines.md` - Test patterns
- `.claude/references/framework-standards.md` - Framework integration patterns
[Specific triggers]
1. [Step 1]
2. [Step 2]
...
[Realistic scenarios]
[Expected structure]
Testing Skills
For skills with objectively verifiable outputs (code generation, validation, transformations):
- Create test cases in
SKILL.md with realistic examples
- Test against current codebase: Run skill against actual project files
- Verify outputs: Do generated files pass
yarn lint? yarn test?
- Test edge cases: What if user provides partial info? Wrong framework?
Validation Checklist
Before finalizing a skill:
Common Skill Patterns
Code Review/Validation Skill
Checks code against project standards:
- Reference
AGENTS.md for conventions
- Check TypeScript, ESLint compliance
- Validate framework patterns
- Suggest fixes
Documentation Skill
Writes or improves documentation:
- Maintain consistency with AGENTS.md style
- Update cross-references
- Include code examples from actual source
Test Generation Skill
Creates tests using portable stories:
- Reference
testing-guidelines.md
- Generate
.test.ts files
- Use
composeStories, renderStory patterns
- Ensure Vitest compatibility
Generation Skill
Generates code files:
- Follow existing code patterns
- Use workspace imports correctly
- Include proper file extensions in imports
- Add TypeScript types
Skill Lifecycle
- Creation: Write SKILL.md following this guide
- Documentation: Add to
.claude/skills/[name]/
- Testing: Validate against real project scenarios
- Integration: Reference in appropriate agent (if any)
- Maintenance: Update if project patterns change
Dos and Don'ts
Do
✓ Make skills specific to Storybook Astro patterns
✓ Reference the monorepo structure correctly
✓ Include examples from the actual codebase
✓ Keep descriptions concise but comprehensive
✓ Test skills against real scenarios
✓ Use project terminology (portable stories, workspace protocol, etc.)
Don't
✗ Create generic skills that ignore project structure
✗ Make assumptions about monorepo organization
✗ Reference internal-only resources without documentation
✗ Include outdated Astro/Storybook version assumptions
✗ Assume all frameworks work the same (they don't)
✗ Skip edge case handling
References
For guidance on skill writing:
AGENTS.md - Project architecture and conventions
- Existing skills in
.claude/skills/*/ - Pattern examples
.claude/references/ - Project-specific documentation
- Anthropic Skills Guide - General skill patterns
"