Skip to content

Docs: Clarify whether .github/ agent files should be committed to version control #288

Description

@dsayling

Problem

The quick-start docs state clearly what to commit after running apm install:

What to commit:

  • apm.yml and apm.lock.yaml — version-controlled, shared with the team.
  • apm_modules/ — add to .gitignore. Rebuilt from the lockfile on install.

However, it is silent on the .github/ directory — specifically the files APM deploys there during install, such as:

  • .github/instructions/
  • .github/prompts/
  • .github/skills/
  • .github/agents/
  • .github/hooks/

This creates ambiguity for teams, particularly around the contributor onboarding scenario: if a contributor clones the repo and does NOT run apm install, will the agent context files already be present in .github/?

The Gap

Unlike apm_modules/, APM does not automatically add .github/ APM-managed files to .gitignore. This means:

  • Teams may accidentally commit these files (treating them like source), or
  • Teams may accidentally not commit them (assuming they're ephemeral like apm_modules/), leaving contributors without the necessary context until they run apm install.

Questions Needing Clarification

  1. Should the files APM places in .github/ be committed to version control?

    • If yes (commit them): contributors don't need to run apm install to get agent context, but the files may drift out of sync if someone updates apm.yml without re-running apm install.
    • If no (gitignore them): the workflow is consistent with apm_modules/, but contributors must always run apm install for Copilot/Claude to pick up the configured skills/prompts/instructions.
  2. Is there a recommended pattern (e.g., a CI step or pre-commit hook) to keep .github/ integration files in sync?

  3. Should the docs or apm init suggest adding .github/instructions/, .github/prompts/, .github/skills/ etc. (the APM-managed subdirectories) to .gitignore, similar to how APM automatically adds apm_modules/ to .gitignore via _update_gitignore_for_apm_modules()?

Suggested Doc Fix

At minimum, the "What to commit" section in the quick-start should be expanded to address .github/ explicitly, e.g.:

What to commit:

  • apm.yml and apm.lock.yaml — version-controlled, shared with the team.
  • apm_modules/ — add to .gitignore. Rebuilt from the lockfile on install.
  • .github/instructions/, .github/prompts/, .github/skills/, .github/agents/, .github/hooks/[commit OR gitignore — clarification needed]

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedDeprecated: use status/accepted. Kept for issue history; will be removed in milestone 0.10.0.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions