Claude-skill-registry advanced-features-2025
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/advanced-features-2025" ~/.claude/skills/majiayu000-claude-skill-registry-advanced-features-2025 && rm -rf "$T"
manifest:
skills/data/advanced-features-2025/SKILL.mdsafety · automated scan (low risk)
This is a pattern-based risk scan, not a security review. Our crawler flagged:
- references API keys
Always read a skill's source content before installing. Patterns alone don't mean the skill is malicious — but they warrant attention.
source content
Advanced Plugin Features (2025)
Quick Reference
| Feature | Location | Purpose |
|---|---|---|
| Agent Skills | | Dynamic knowledge loading |
| Hooks | | Event automation |
| MCP Servers | | External integrations |
| Team Config | | Repository plugins |
| Hook Event | When Fired | Use Case |
|---|---|---|
| PreToolUse | Before tool | Validation |
| PostToolUse | After tool | Testing, linting |
| SessionStart | Session begins | Logging, setup |
| SessionEnd | Session ends | Cleanup |
| UserPromptSubmit | Prompt submitted | Preprocessing |
| PreCompact | Before compact | State save |
| Notification | Notification shown | Custom alerts |
| Stop | User stops | Cleanup |
| SubagentStop | Subagent ends | Logging |
| Variable | Purpose |
|---|---|
| Plugin installation path |
| Tool input parameters |
Agent Skills
Concept
Skills are dynamically loaded based on task context, enabling:
- Unbounded capacity: Knowledge split across files
- Context efficiency: Only load what's needed
- Progressive disclosure: Three-tier loading
Three-Tier Loading
- Frontmatter: Loaded at startup (triggers)
- SKILL.md body: Loaded on activation
- references/: Loaded when detail needed
Structure
skills/ └── skill-name/ ├── SKILL.md # Core content ├── references/ # Detailed docs │ └── deep-dive.md ├── examples/ # Working code │ └── example.md └── scripts/ # Utilities └── tool.sh
SKILL.md Format
--- name: skill-name description: | When to activate this skill. Include: (1) Use case 1 (2) Use case 2 Provides: what it offers --- # Skill Title ## Quick Reference [Tables, key points] ## Core Content [Essential information - keep lean] ## Additional Resources See `references/` for detailed guidance.
Hooks
Configuration
Inline in plugin.json:
{ "hooks": { "PostToolUse": [{ "matcher": "Write|Edit", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/lint.sh" }] }] } }
Separate hooks.json:
{ "PostToolUse": [{ "matcher": "Write", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/format.sh", "timeout": 5000 }] }] }
Matchers
- File writesWrite
- File editsEdit
- Shell commandsBash
- Multiple toolsWrite|Edit
- Any tool (use sparingly).*
Common Patterns
Auto-test after changes:
{ "PostToolUse": [{ "matcher": "Write|Edit", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-tests.sh" }] }] }
Validate before Bash:
{ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-cmd.sh" }] }] }
MCP Server Integration
Configuration
{ "mcpServers": { "server-name": { "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/mcp/server.js"], "env": { "API_KEY": "${API_KEY}" } } } }
External Services
{ "mcpServers": { "stripe": { "command": "npx", "args": ["-y", "@stripe/mcp-server"], "env": { "STRIPE_API_KEY": "${STRIPE_API_KEY}" } } } }
Repository Configuration
Team Distribution
Create
.claude/settings.json at repo root:
{ "extraKnownMarketplaces": [ "company/internal-plugins" ], "plugins": { "enabled": [ "deployment-helper@company", "code-standards@company" ] } }
Workflow
- Maintainer creates
.claude/settings.json - Team members clone repo
- Trust folder when prompted
- Plugins install automatically
Best Practices
Progressive Disclosure
- Keep SKILL.md under 500 lines
- Move details to
references/ - Use
for working codeexamples/ - Reference files with relative paths
Hooks
- Use specific matchers (avoid
).* - Set reasonable timeouts
- Use
for paths${CLAUDE_PLUGIN_ROOT} - Test scripts independently
MCP
- Document required env vars
- Provide setup instructions
- Use environment variables for secrets
- Test connection before distribution
Additional Resources
For detailed patterns, see:
- Complete hook patternsreferences/hooks-advanced.md
- MCP integration examplesreferences/mcp-patterns.md
- Repository configurationreferences/team-distribution.md
- Working hook scriptsexamples/hook-scripts.md