Bmad promote

From vanja-emichi/bmad_method · View interactive version

Bmad promote is an AI agent skill from the GitHub repository vanja-emichi/bmad_method. Promotes agents and skills from project scope to plugin scope for global availability. Use when the user says 'promote agent', 'promote workflow', 'promote skill', 'make agent global', 'make skill global', '/promote-agent', '/promote-workflow', '/promote-skill'.

How to use this skill

Skill file

BMad Promote — Project → Plugin Scope

Copy an agent or workflow skill from the current project's .a0proj/ scope to the BMad plugin's global scope so it is available across all projects.

Scope explained

- Project scope: .a0proj/agents/{name}/ and .a0proj/skills/{name}/ — available only within the current project.

- Plugin scope: /a0/usr/plugins/bmad_method/agents/{name}/ and /a0/usr/plugins/bmad_method/skills/{name}/ — available globally to every project that loads the BMad plugin.

Preflight

Commands

`/promote-agent {name}`

Promotes an agent from project scope to plugin scope.

  1. Source: {project_root}/.a0proj/agents/{name}/
  2. Target: /a0/usr/plugins/bmad_method/agents/{name}/
  3. Run the promotion script:

```bash

bash {skill-root}/scripts/promote.sh agent "{name}" "{project_root}"

```

`/promote-workflow {name}`

Promotes a workflow (skill) from project scope to plugin scope.

  1. Source: {project_root}/.a0proj/skills/{name}/
  2. Target: /a0/usr/plugins/bmad_method/skills/{name}/
  3. Run the promotion script:

```bash

bash {skill-root}/scripts/promote.sh workflow "{name}" "{project_root}"

```

`/promote-skill {name}`

Promotes a skill from project scope to plugin scope.

  1. Source: {project_root}/.a0proj/skills/{name}/
  2. Target: /a0/usr/plugins/bmad_method/skills/{name}/
  3. Run the promotion script:

```bash

bash {skill-root}/scripts/promote.sh skill "{name}" "{project_root}"

```

Safety Checks

Before running the script, the agent MUST:

  1. Verify source exists: Check that {project_root}/.a0proj/{agents|skills}/{name}/ is a directory. If not, inform the user and stop.
  2. Check target doesn't already exist: If /a0/usr/plugins/bmad_method/{agents|skills}/{name}/ already exists:
  1. Confirm before copying: Always ask the user for confirmation before proceeding. Show the source and target paths clearly.

Step-by-Step Execution

Step 1: Parse the command

Extract the type (agent or workflow) and the name from the user's command.

If the user says something ambiguous like "promote my-thing", ask them to clarify whether it's an agent or workflow.

Step 2: Validate source

Check that the source directory exists in project scope:

ls -la "{project_root}/.a0proj/{agents|skills}/{name}/"

If it doesn't exist, list what IS available in that scope to help the user:

ls "{project_root}/.a0proj/agents/" 2>/dev/null
ls "{project_root}/.a0proj/skills/" 2>/dev/null

Step 3: Check target and confirm

Check if the target already exists:

ls -la "/a0/usr/plugins/bmad_method/{agents|skills}/{name}/" 2>/dev/null

Present the operation to the user:

Step 4: Execute promotion

Run the promotion script:

bash {skill-root}/scripts/promote.sh {type} "{name}" "{project_root}"

If overwriting, set the force flag:

PROMOTE_FORCE=true bash {skill-root}/scripts/promote.sh {type} "{name}" "{project_root}"

Step 5: Verify and summarize

After the script completes:

  1. Verify the target exists: ls -la /a0/usr/plugins/bmad_method/{agents|skills}/{name}/
  2. Confirm the contents match the source
  3. Summarize:

Complete When

Error Handling

When This Skill Can't Help

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.