mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-02 15:23:19 +08:00
- Created a new document for custom skills development (`custom.md`) detailing the structure, creation, implementation, and best practices for developing custom CCW skills. - Added an index document (`index.md`) summarizing all built-in skills, their categories, and usage examples. - Introduced a reference guide (`reference.md`) providing a quick reference for all 33 built-in CCW skills, including triggers and purposes.
Demo Components
This directory contains React components that are embedded in the documentation as interactive demos.
Creating a New Demo
- Create a new
.tsxfile in this directory (e.g.,my-demo.tsx) - Export a default React component
- Use it in markdown with
:::demo my-demo :::
Demo Template
import React from 'react'
/**
* Brief description of what this demo shows
*/
export default function MyDemo() {
return (
<div style={{ padding: '16px' }}>
{/* Your demo content */}
</div>
)
}
Demo Guidelines
- Keep it simple: Demos should be focused and easy to understand
- Use inline styles: Avoid external dependencies for portability
- Add comments: Explain what the demo is showing
- Test interactions: Ensure buttons, inputs, etc. work correctly
- Handle state: Use React hooks (
useState,useEffect) for interactive demos
Demo File Naming
- Use kebab-case:
button-variants.tsx,card-basic.tsx - Group by category:
ui/- UI component demosshared/- Shared component demospages/- Page-level demos
Using Props
If you need to pass custom props to a demo, use the extended markdown syntax:
:::demo my-demo
title: Custom Title
height: 300px
expandable: false
:::
Available Props
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | - | Demo component name (required) |
| title | string | name | Custom demo title |
| height | string | 'auto' | Container height |
| expandable | boolean | true | Allow expand/collapse |
| showCode | boolean | true | Show code tab |