prompt-refactor
Scan a prompt file for layer violations and structural problems, then fix them. Use when user wants to clean up documentation files or mentions…
от rakovi4★ 54 звезды на GitHub
Установить prompt-refactor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/prompt-refactor - Scan & Fix Documentation Files
Orchestrates prompt-refactor-agent to find and fix structural and layer placement issues in documentation files.
Usage
/prompt-refactor refactor-agent.md # Scan specific file
/prompt-refactor .claude/agents/red-agent.md # Full path
/prompt-refactor # Scan all agents + skills
Workflow
- Parse user input (target file or "all")
- Load agent instructions from
.claude/agents/prompt-refactor-agent.md - Agent loads scan checklist from
.claude/templates/documentation/prompt-scan-checklist.md - Execute scan → identify smells → fix one at a time
- Return result: violations found, fixes applied, final state
Layer-Specific
- Classification rules:
.claude/guidelines/prompt-rules.md - Two-layer structure:
.claude/guidelines/technology-loading.md - Scan checklist:
.claude/templates/documentation/prompt-scan-checklist.md
Next Step
After refactoring: review the diff to confirm fixes are clean.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prompt-refactor?
Scan a prompt file for layer violations and structural problems, then fix them. Use when user wants to clean up documentation files or mentions /prompt-refactor command.
Как установить скилл prompt-refactor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-refactor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…