advanced-features-2025 — скилл для Claude Code: функции и установка
Скилл advanced-features-2025 для Claude Code настраивает хуки, MCP-серверы и распространение плагинов на уровне репозитория. Описывает сборку плагинов Claude Code для команды.
MIT 159 установок ★ 66 обновлён 2026-06-18
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a claude-codeЧто делает advanced-features-2025
Скилл описывает три уровня загрузки знаний: метаданные доступны при запуске, основное содержимое — при активации, а подробности из references/ — когда они нужны. Он также показывает, как разложить материалы по SKILL.md, references/, examples/ и scripts/.
Для автоматизации приводятся примеры хуков PreToolUse и PostToolUse: можно проверять команды до запуска или запускать тесты после изменений файлов. Отдельные разделы объясняют настройку MCP через .mcp.json и подключение плагинов команды через .claude/settings.json. Для MCP-примеров предусмотрены переменные окружения для ключей API.
В рекомендациях советуют задавать точные сопоставители хуков и проверять скрипты отдельно; универсальный .* предлагают использовать редко. Это важно: такой сопоставитель может запускать хук при работе с любым инструментом.
Какие задачи решает
- Разделить инструкции скилла на уровни загрузки
- Запускать проверки до или после вызова инструмента
- Подключить MCP-сервер через
.mcp.json - Подготовить установку плагинов для участников репозитория
Примеры запросов агенту
- Настрой хуки
PreToolUseиPostToolUseдля проверки команд и тестирования после правок. - Покажи, как подключить MCP-сервер через
.mcp.jsonс ключом API из переменной окружения. - Составь схему распространения плагинов команды через
.claude/settings.json.
Как установить advanced-features-2025
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a claude-code2Вручную: положить файлы
~/.claude/skills/advanced-features-2025/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/advanced-features-2025/
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a codex2Вручную: положить файлы
.agents/skills/advanced-features-2025/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a cursor2Вручную: положить файлы
.cursor/skills/advanced-features-2025/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install JosiahSiegel/claude-plugin-marketplace plugins/plugin-master/skills/advanced-features-20252Вручную: положить файлы
.github/skills/advanced-features-2025/SKILL.md1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a gemini-cli2Командой платформы
gemini skills install https://github.com/JosiahSiegel/claude-plugin-marketplace --path plugins/plugin-master/skills/advanced-features-2025Вручную: положить файлы
.devin/skills/advanced-features-2025/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об advanced-features-2025
Как установить advanced-features-2025 в Claude Code?
Выполните npx skills add JosiahSiegel/claude-plugin-marketplace --skill advanced-features-2025 -a claude-code. Файл скилла будет доступен по пути ~/.claude/skills/advanced-features-2025/SKILL.md.
Что делает advanced-features-2025?
Скилл объясняет настройку хуков, интеграцию MCP-серверов и распространение плагинов через конфигурацию репозитория. В нём также описана загрузка знаний с разной степенью подробности.
Как advanced-features-2025 предлагает настраивать хуки?
Для хуков рекомендуется выбирать конкретные сопоставители, например Write|Edit, и проверять скрипты отдельно. Сопоставитель .* советуют применять редко.
Исходный текст
SKILL.md · MIT
---
name: advanced-features-2025
description: |
Advanced Claude Code plugin features for hooks, MCP integration, team distribution, and progressive disclosure.
PROACTIVELY activate for: (1) progressive disclosure design, (2) hook automation, (3) PreToolUse and PostToolUse hooks, (4) MCP server integration, (5) .mcp.json configuration, (6) team plugin distribution, (7) repository-level plugin layouts, (8) context efficiency, (9) private marketplaces, (10) ${CLAUDE_PLUGIN_ROOT}.
Provides: hooks reference, MCP patterns, team distribution, and context-efficiency guidance.
---
# Advanced Plugin Features (2025)
## Quick Reference
| Feature | Location | Purpose |
|---------|----------|---------|
| Agent Skills | `skills/*/SKILL.md` | Dynamic knowledge loading |
| Hooks | `hooks/hooks.json` | Event automation |
| MCP Servers | `.mcp.json` | External integrations |
| Team Config | `.claude/settings.json` | 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 |
|----------|---------|
| `${CLAUDE_PLUGIN_ROOT}` | Plugin installation path |
| `${TOOL_INPUT_*}` | 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
1. **Frontmatter**: Loaded at startup (triggers)
2. **SKILL.md body**: Loaded on activation
3. **references/**: Loaded when detail needed
### Structure
```text
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
```markdown
---
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:**
```json
{
"hooks": {
"PostToolUse": [{
"matcher": "Write|Edit",
"hooks": [{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/lint.sh"
}]
}]
}
}
```
**Separate hooks.json:**
```json
{
"PostToolUse": [{
"matcher": "Write",
"hooks": [{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/format.sh",
"timeout": 5000
}]
}]
}
```
### Matchers
- `Write` - File writes
- `Edit` - File edits
- `Bash` - Shell commands
- `Write|Edit` - Multiple tools
- `.*` - Any tool (use sparingly)
### Common Patterns
**Auto-test after changes:**
```json
{
"PostToolUse": [{
"matcher": "Write|Edit",
"hooks": [{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-tests.sh"
}]
}]
}
```
**Validate before Bash:**
```json
{
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-cmd.sh"
}]
}]
}
```
## MCP Server Integration
### Configuration
```json
{
"mcpServers": {
"server-name": {
"command": "node",
"args": ["${CLAUDE_PLUGIN_ROOT}/mcp/server.js"],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}
```
### External Services
```json
{
"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:
```json
{
"extraKnownMarketplaces": [
"company/internal-plugins"
],
"plugins": {
"enabled": [
"deployment-helper@company",
"code-standards@company"
]
}
}
```
### Workflow
1. Maintainer creates `.claude/settings.json`
2. Team members clone repo
3. Trust folder when prompted
4. Plugins install automatically
## Best Practices
### Progressive Disclosure
- Keep SKILL.md under 500 lines
- Move details to `references/`
- Use `examples/` for working code
- Reference files with relative paths
### Hooks
- Use specific matchers (avoid `.*`)
- Set reasonable timeouts
- Use `${CLAUDE_PLUGIN_ROOT}` for paths
- 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:
- **`references/hooks-advanced.md`** - Complete hook patterns
- **`references/mcp-patterns.md`** - MCP integration examples
- **`references/team-distribution.md`** - Repository configuration
- **`examples/hook-scripts.md`** - Working hook scripts
© JosiahSiegel · MIT · JosiahSiegel/claude-plugin-marketplace