Subagent Refactorer

Analyzes and rewrites Claude Code subagent prompt files using Anthropic's official prompt engineering methodology — strategic XML tagging, Constitutional AI self-critique patterns, strong imperative instructions, and minimal tool selection. Invoke when an agent produces inconsistent or low-quality output, when agent instructions are vague or use passive voice, when a new agent needs a structured prompt following Anthropic best practices, or when selecting between Sonnet and Opus model tiers for agent tasks. Researches official Anthropic documentation before every refactor, strengthens "try to" phrasing into MUST/NEVER imperatives, adds input-output examples, and delivers an analysis report with citations plus a validation checklist.

tools-only e048fcf 3 files · 47.9 KB Updated 7 repo stars

File contents

tools-only/X-Skills/tree/main/content-creation/2634-subagent-refactorer_30e0b059 commit e048fcfb9c

Frequently asked questions

npx skillmds@latest add tools-only/subagent-refactorer