Customisation Guide
To customise APM, change its source templates in your own repository, build release bundles and install them with apm custom. Each bundle contains the files for one installation target, such as agents or claude.
Custom Repositories
The APM repository supports both a GitHub fork and "Use this template":
| Fork | Template | |
|---|---|---|
| History | Carries the upstream history | Starts with a clean history |
| Upstream sync | git merge upstream/main pulls in new APM releases | No upstream link; later changes need manual diffing |
| Best for | Customisation that keeps up with APM releases | Deep divergence, using APM as a starting point |
The workflow:
- Fork or template the repository.
- Change the templates, add skills, adjust procedures.
- Run
npm ciin the repository, then build withVERSION=1.3.0 npm run build:release, using your intended template version. - Inspect the ZIPs and
apm-release.jsonindist/: check installed paths, resolved placeholders and references. Try changed instructions in a separate project. - Create a version tag and GitHub Release, and attach the ZIPs and manifest. Adapt the repository's release workflow before using it.
- Install with
apm custom -r owner/repo.
The customisation skill can guide your assistant through these changes and checks.
For a working example, apm-atlassian adds Spec and Plan review in Confluence, Stage claims in Jira, teammate handoffs, and shared APM session documents in Bitbucket.
The Build
Two files configure the build:
build/build-config.jsonlists target IDs, display names, bundle names, skill and guide directories, and the minimum CLI version. Official targets areagentsandclaude, plus the research-previewagents-single-skillandclaude-single-skill, which setformattosingle-skilland build from the entry skill intemplates/entrypoints/. A target can declare older IDs itreplacesso updates consolidate them, and targets itconflictsWithso the CLI refuses to install both.build/processors/placeholders.jsresolves{VERSION},{SKILL_PATH:name},{SKILL_DIR:name},{GUIDE_PATH:name},{OTHER_SKILLS_DIR}(.agents/skills/in Claude Code bundles,.claude/skills/in the others),{START_MANAGER},{START_WORKER},{CHECK_TASKS},{CHECK_REPORTS}and{CLAUDE_ONLY:text}.
Set VERSION when building locally. The Release Templates workflow sets it from the version input, or increments the latest stable patch when the input is empty.
apm-release.json identifies the targets and their ZIP bundles for the CLI.
What You Can Change
| What | Where | Effect |
|---|---|---|
| Procedures | templates/guides/ | How each procedure runs, from Context Gathering to Task Review |
| Commands | templates/skills/apm-<N>-<action>/SKILL.md | Each agent's role, what it reads, and how it initialises |
| Communication | templates/skills/apm-communication/ | The Message Bus protocol and how agents address you |
| Initial documents | templates/apm/ | The starting structure of the Spec, the Plan, the Tracker, and the Index |
| New skills | templates/skills/<name>/SKILL.md | Protocols your agents can load. Map shared skills in build/processors/paths.js when building single-skill layouts |
| Delegation | Role initiation skills and templates/guides/task-assignment.md | When each role uses subagents and how it briefs them |
For example, a team that wants authentication changes checked for security can add that requirement to templates/guides/task-review.md. State which Tasks need the review and what evidence the Manager should check. If the assistant supports native subagents, the Manager can delegate the review and verify its findings.
Follow the authoring standards in templates/_standards/; they are not shipped in bundles. For workflow changes, update WORKFLOW.md there first, then the affected skills, guides, formats and examples.
Installing and Sharing
apm update uses the installed repository. Custom releases have no major-version filter, but manifest and minimum-CLI checks still apply. Custom templates used with --session-dir must support keeping .apm/ in a separate directory from the workspace. Private repositories need GITHUB_TOKEN or a signed-in gh CLI. See the CLI Guide for release selection and saved repositories.
When you share a repository, describe in its README what you changed, why, and how its behaviour differs from the official release.
Custom bundles can overwrite project files and change agent instructions. Review them before installing; see the Security Guide for the trust model and CLI safeguards.