Amp Replaces Custom Commands with Skills — Migration Guide

Amp is deprecating custom commands in favor of a unified skills model. You can migrate automatically with Amp’s migration prompt or manually by moving .md files into .agents/skills//SKILL.md with frontmatter and placing executables in a scripts/ subfolder.

amp cover

TL;DR

  • Custom commands deprecated; consolidated into skills now that skills are user-invokable, removing the historical invocation scope difference.
  • Amp can migrate automatically using a prompt that creates skill directories, renames markdown to SKILL.md with frontmatter, moves executables into scripts/, and deletes originals (also handles global commands).
  • Manual migration: move .md to .agents/skills/<name>/SKILL.md with frontmatter; move executables to .agents/skills/<name>/scripts/ and add a SKILL.md documenting how to run them.
  • Global path change: ~/.config/amp/commands~/.config/agents/skills.
  • Post-migration layout: all command functionality under .agents/skills/ (and ~/.config/agents/skills/), SKILL.md frontmatter for metadata, executables in scripts/, aligning with the single skills model.
  • Full announcement and details: https://ampcode.com/news/slashing-custom-commands

Amp is deprecating custom commands in favor of skills; full details are available in the announcement at https://ampcode.com/news/slashing-custom-commands. The change consolidates two overlapping mechanisms—custom commands and skills—into a single model now that users can invoke skills directly. The migration can be performed automatically with an Amp prompt or carried out manually; both approaches are documented below.

Why this change matters

Custom commands and skills provided the same core capability, but with different invocation scopes: historically only the user could invoke custom commands, while only the agent could invoke skills. With user-invokable skills, that distinction no longer applies, so the tooling is being simplified by removing custom commands.

Migration options

Projects with existing custom commands in .agents/commands/ or ~/.config/amp/commands/ have two straightforward migration paths.

Let Amp migrate commands

Amp can handle the migration. Use the following migration prompt with Amp to convert existing commands into skills:

Migrate my custom commands from .agents/commands/ to skills in .agents/skills.

For each command:

  1. Create a new skill directory in .agents/skills/ named after the command
  2. If it's a markdown file, rename it to SKILL.md and add frontmatter with name and description
  3. If it's an executable, create a SKILL.md that describes when and how to run the script, and move the executable to a scripts/ subdirectory
  4. Delete the original command file

Also do this for global custom commands in ~/.config/amp/commands (which should be migrated to skills ~/.config/agents/skills).

This preserves existing content while reorganizing it under the .agents/skills/ convention and converting global commands from ~/.config/amp/commands/ to ~/.config/agents/skills/.

Manual migration steps

For teams preferring hands-on control, the manual process is simple and brief.

  • Markdown commands: move the .md file into a skill directory and rename it to SKILL.md.
    Example:

    • Before: .agents/commands/code-review.md
    • After: .agents/skills/code-review/SKILL.md
      Add frontmatter at the top of SKILL.md:

    name: code-review
    description: Review code for quality and best practices

    Then include the existing content below the frontmatter.

  • Executable commands: move the executable into a scripts/ subdirectory inside a new skill folder, and include a SKILL.md that documents usage.
    Example layout:

    • Before: .agents/commands/deploy
    • After:
      • .agents/skills/deploy/SKILL.md
      • .agents/skills/deploy/scripts/deploy
        The SKILL.md should include frontmatter:

    name: deploy
    description: Deploy the application

    and a short instruction such as: Run {baseDir}/scripts/deploy to deploy.

What to expect

After migration, all previously custom command functionality will live under .agents/skills/ (and ~/.config/agents/skills/ for global items), with markdown-based skills using SKILL.md frontmatter for metadata and executables moved into a scripts/ subtree with usage instructions. This aligns repository layout and agent behavior around a single, unified skill model (skills).

For full reference and the original announcement, see: https://ampcode.com/news/slashing-custom-commands

Continue the conversation on Slack

Did this article spark your interest? Join our community of experts and enthusiasts to dive deeper, ask questions, and share your ideas.

Join our community