Compile apm package
Skill richfrem/agent-plugins-skills/plugins/agent-scaffolders/skills/compile-apm-package
repo for reusable plugins and skills
npx -y skills add richfrem/agent-plugins-skills --skill compile-apm-packageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Activate when the user wants to compile an APM package into top-level context documents such as AGENTS.md, CLAUDE.md, or GEMINI.md, especially for Codex, Gemini, OpenCode, or agents-protocol style hosts. Do not use when the user only needs per-skill installation; use install-apm-package instead.
SKILL.md
1.7 KB, as published. Nobody here has run it
compile-apm-package Skill ๐
Overview
This skill generates merged context documents from APM primitives. This is primarily required for harnesses that consume a single authoritative file (like Gemini's GEMINI.md) rather than distributed skill directories.
๐ซ Non-Negotiables
- Artifact Status โ Compiled files (
AGENTS.md, etc.) are generated artifacts. NEVER edit them directly if a.apm/source tree exists. - Conditional Use โ Do not run compile if the user's harness (e.g., Claude Code, Copilot Chat) supports native directory-based skills.
- Validation First โ Ensure the package is valid before merging primitives.
Decision Tree
- Target supports directory-based skills? -> Use
install-apm-package. - Target needs top-level context? (e.g., Gemini, Codex) -> Run
apm compile. - Authoring shared context? -> Use
apm compileto verify how fragments merge into the final doc.
Workflow
- Verify
apm.ymlexistence. - Execute
python scripts/validate_apm_package.py. - Identify target requirements.
- Run
apm compile [--target <slug>]. - Report the location of generated context files.
Anti-Patterns
- Unnecessary Compilation: Running
apm compilefor a Claude Code project (redundant work). - Direct Artifact Editing: Fixing a typo in
GEMINI.mdinstead of the source.prompt.md.