Skip to main content

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":

ForkTemplate
HistoryCarries the upstream historyStarts with a clean history
Upstream syncgit merge upstream/main pulls in new APM releasesNo upstream link; later changes need manual diffing
Best forCustomisation that keeps up with APM releasesDeep divergence, using APM as a starting point

The workflow:

  1. Fork or template the repository.
  2. Change the templates, add skills, adjust procedures.
  3. Run npm ci in the repository, then build with VERSION=1.3.0 npm run build:release, using your intended template version.
  4. Inspect the ZIPs and apm-release.json in dist/: check installed paths, resolved placeholders and references. Try changed instructions in a separate project.
  5. Create a version tag and GitHub Release, and attach the ZIPs and manifest. Adapt the repository's release workflow before using it.
  6. 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.json lists target IDs, display names, bundle names, skill and guide directories, and the minimum CLI version. Official targets are agents and claude, plus the research-preview agents-single-skill and claude-single-skill, which set format to single-skill and build from the entry skill in templates/entrypoints/. A target can declare older IDs it replaces so updates consolidate them, and targets it conflictsWith so the CLI refuses to install both.
  • build/processors/placeholders.js resolves {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​

WhatWhereEffect
Procedurestemplates/guides/How each procedure runs, from Context Gathering to Task Review
Commandstemplates/skills/apm-<N>-<action>/SKILL.mdEach agent's role, what it reads, and how it initialises
Communicationtemplates/skills/apm-communication/The Message Bus protocol and how agents address you
Initial documentstemplates/apm/The starting structure of the Spec, the Plan, the Tracker, and the Index
New skillstemplates/skills/<name>/SKILL.mdProtocols your agents can load. Map shared skills in build/processors/paths.js when building single-skill layouts
DelegationRole initiation skills and templates/guides/task-assignment.mdWhen 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.

Security

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.