Guide for creating new skills in Kai's personal AI infrastructure. Use when user wants to create, update, or structure a new skill that extends capabilities with specialized knowledge, workflows, or tool integrations. Follows both Anthropic skill standards and PAI-specific patterns.
Framework for creating and updating skills in Kai's personal AI infrastructure. Guides through purpose definition, structure selection (simple vs complex), file creation, and global context integration. Use when user requests "create a new skill," "build a skill for X," or "update existing skill.
/plugin marketplace add danielmiessler/PAIPlugin/plugin install danielmiessler-pai@danielmiessler/PAIPluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
CLAUDE.mdtemplates/CLAUDE-template.mdtemplates/README.mdtemplates/complex-skill-template.mdtemplates/simple-skill-template.mdtemplates/skill-with-agents-template.mdAsk these questions:
Simple Skill (SKILL.md only):
Complex Skill (SKILL.md + CLAUDE.md + supporting files):
# Simple skill
${PAI_DIR}/skills/[skill-name]/
└── SKILL.md
# Complex skill
${PAI_DIR}/skills/[skill-name]/
├── SKILL.md # Quick reference
├── CLAUDE.md # Full context
└── [subdirectories]/ # Supporting resources
Use this structure:
---
name: skill-name
description: Clear description of what skill does and when to use it. Should match activation triggers.
---
# Skill Name
## When to Activate This Skill
- Trigger condition 1
- Trigger condition 2
- User phrase examples
## [Main Content Sections]
- Core workflow
- Key commands
- Examples
- Best practices
## Supplementary Resources
For detailed context: `read ${PAI_DIR}/skills/[skill-name]/CLAUDE.md`
Include:
Update ${PAI_DIR}/global/KAI.md available_skills section to include the new skill so it shows up in the system prompt.
create-skill, web-scrapingfabric-patterns not text-processingai-image-generation, chrome-devtoolsYour description should:
Good examples:
simple-skill-template.md - For straightforward capabilitiescomplex-skill-template.md - For multi-component skillsskill-with-agents-template.md - For skills using sub-agentsFor complete guide with examples: read ${PAI_DIR}/skills/create-skill/CLAUDE.md
For templates: ls ${PAI_DIR}/skills/create-skill/templates/
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.