Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] Claude command transform drops frontmatter keys Claude Code supports on commands

Open Beginner friendly
#3,067 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli, tooling

Research direction

Start in src/apm_cli/integration/command_integrator.py, especially _PRESERVED_COMMAND_KEYS and the Claude command transformation path. Reproduce with a prompt containing disable-model-invocation, when_to_use, and effort, then run apm install --target claude. Done means Claude-supported command frontmatter reaches .claude/commands/, while only name and paths are dropped.

Written by the indexing model from the issue text.

Description

area/multi-target status/accepted theme/portability triage/recommended type/bug

Describe the bug
The Claude command transformer keeps only description, allowed-tools, model, argument-hint and input (_PRESERVED_COMMAND_KEYS). Claude Code documents that .claude/commands/*.md accept the skill frontmatter schema except name and paths (docs). So keys that Claude Code honours on commands are dropped when deploying to Claude itself, e.g. disable-model-invocation, user-invocable, when_to_use, context, agent, effort, disallowed-tools, hooks, shell, and an authored arguments.

To Reproduce

  1. .apm/prompts/p.prompt.md with frontmatter description: d, disable-model-invocation: true, when_to_use: x, effort: low
  2. apm install --target claude
  3. Warning: frontmatter keys not supported for claude commands and were dropped: disable-model-invocation, effort, when_to_use; .claude/commands/p.md keeps only description.

Expected behavior
Keys that Claude Code documents for commands reach .claude/commands/. Only keys the target does not accept (name, paths) are dropped.

Environment

  • OS: macOS
  • APM Version: 0.30.0 (8c2e0d9); the allowlist is unchanged on main

Additional context
Related: #2106 (command semantics across vendors). This issue is narrower: loss on the Claude target for Claude-native keys.

Dominant language
Python
Stars
4k
Forks
393
Avg merge
4d 12h
Merged PRs (30d)
58

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/apm

All issues in microsoft/apm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.