Optimize an existing framework skill (or sweep a set of them) by applying the restructuring patterns proven on the security-skill suite: split an oversized SKILL.md into linked sibling docs, lift concrete/project-specific values out of the body into <project-config> placeholders, replace in-agent-context body reads with out-of-context tool calls, batch per-item fetches into a single upfront pass, and add a deterministic pre-flight no-op classifier ahead of LLM passes. Every change is a behavior- preserving proposal the maintainer signs off on; the skill validator must stay green before and after. The refactoring sibling of write-skill (which authors net-new skills).
$npx -y skills add apache/magpie --skill optimize-skillInstalls into the current project.
Run `npx skills use "https://github.com/apache/magpie" --skill "apache/magpie/optimize-skill"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/apache/magpie" that are relevant to the current task. Run `npx skills add "https://github.com/apache/magpie"` and select the relevant skills, then follow their instructions.