---name: my-skilldescription: A brief description of what this skill does---# Skill InstructionsProvide detailed instructions, context, or guidelines here.This content will be included in the agent's context when the skill is mentioned.## Example UsageYou can include:- Best practices- Code examples- Links to documentation- Project-specific conventions
---name: architecturedescription: Our project's architecture and conventions---# Project Architecture## Directory Structure- `src/main/` - Electron main process- `src/renderer/` - React UI- `src/preload/` - Preload scripts- `src/shared/` - Shared types and utilities## Naming Conventions- **Components**: PascalCase (`UserProfile.tsx`)- **Utilities**: camelCase (`formatDate.ts`)- **Constants**: UPPER_SNAKE_CASE (`MAX_RETRIES`)- **Types**: PascalCase with `Type` suffix (`UserType`)## State ManagementWe use Jotai for state management:- Atoms in `src/renderer/lib/atoms/`- Keep atoms focused and composable- Use `atomFamily` for dynamic state## Error HandlingAll async operations should handle errors:```typescripttry { const result = await operation() return { success: true, data: result }} catch (error) { console.error("[Context]", error) return { success: false, error: error.message }}
## Slash CommandsSlash commands are shortcuts that trigger specific agent behaviors or insert predefined prompts.### Built-in Commands1Code includes several built-in slash commands:<AccordionGroup> <Accordion title="/clear" icon="broom"> Start a new conversation (creates new sub-chat) </Accordion> <Accordion title="/plan" icon="list-check"> Switch to Plan mode (creates plan before making changes) </Accordion> <Accordion title="/agent" icon="robot"> Switch to Agent mode (applies changes directly) </Accordion> <Accordion title="/compact" icon="compress"> Compact conversation context to reduce token usage </Accordion> <Accordion title="/review" icon="magnifying-glass"> Ask agent to review your code for quality, bugs, and improvements </Accordion> <Accordion title="/pr-comments" icon="comments"> Generate detailed PR review comments for current changes </Accordion> <Accordion title="/release-notes" icon="scroll"> Generate release notes summarizing codebase changes </Accordion> <Accordion title="/security-review" icon="shield"> Perform security audit to identify vulnerabilities and risks </Accordion> <Accordion title="/commit" icon="code-commit"> Commit staged changes without touching anything else </Accordion> <Accordion title="/worktree-setup" icon="tree"> Generate worktree setup config with AI assistance </Accordion></AccordionGroup>### Command ImplementationFrom `/home/daytona/workspace/source/src/renderer/features/agents/commands/builtin-commands.ts:6-44`:```typescriptexport const COMMAND_PROMPTS: Partial< Record<BuiltinCommandAction["type"], string>> = { review: "Please review the code in the current context and provide feedback on code quality, potential bugs, and improvements.", "pr-comments": "Generate detailed PR review comments for the changes in the current context.", "release-notes": "Generate release notes summarizing the changes in this codebase.", "security-review": "Perform a security audit of the code in the current context. Identify vulnerabilities, security risks, and suggest fixes.", commit: "Закоммить это аккуратно, не трогая больше ничего. Сделай коммит только для staged изменений.",}
---name: deploydescription: Deployment checklist and procedures---# Deployment ProcedureBefore deploying:1. **Run Tests** ```bash npm run test npm run lint
Build Production
npm run build
Version Bump
Update package.json version
Create git tag
Update CHANGELOG.md
Deploy
npm run deploy:prod
Verify
Check production URL
Test critical paths
Monitor error logs
Then use it: `@deploy Please prepare a deployment for v2.1.0`#### Example: Documentation Command```markdown ~/.claude/skills/docs/SKILL.md---name: docsdescription: Documentation standards and templates---# Documentation Standards## API DocumentationAll API endpoints must include:```typescript/** * Brief description of what this endpoint does * * @param {Type} paramName - Description * @returns {Type} Description of return value * @throws {ErrorType} When this error occurs * @example * ``` * const result = await myFunction(param) * ``` */
Share skills with your team:Option 1: Commit to repository
git add .claude/skills/git commit -m "Add team skills"git push
Option 2: Create a plugin
Package skills as a plugin for distribution across projects.Option 3: Export and share
Zip the skill directory and share manually:
tar -czf my-skill.tar.gz ~/.claude/skills/my-skill/