# 07 Command Generate

> Generate a flat slash command across the host AI tools a project uses. Use when the user wants to create, scaffold, or refactor a one-shot slash command. Not for multi-step skills or other artifacts like rules, agents, hooks.

- Skill: `ai-driven-dev/07-command-generate` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add ai-driven-dev/07-command-generate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ai-driven-dev/07-command-generate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ai-driven-dev (https://skillmd.com/u/ai-driven-dev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ai-driven-dev/07-command-generate

---


# Command Generate

Write one canonical slash command from intent and render it per confirmed host tool that supports commands, or once as a plugin source.

## Actions

| #   | Action            | Role                                      | Input        |
| --- | ----------------- | ----------------------------------------- | ------------ |
| 01  | `capture-command` | Capture the goal, location, and arguments | user request |
| 02  | `write-command`   | Write the command file per supported tool | the goal     |
| 03  | `validate`        | Check each command file                   | the files    |

Run the actions in order, `01 → 03`, and run each action's `## Test` before the next.
Before running an action, read its file in `actions/`, not only the table or assets.

## References

- `references/command-authoring.md`: the contract (forms, placement, frontmatter, arguments, conventions).
- `references/tool-paths.md`: per-tool command path, frontmatter, unsupported tools, the gate.

## Assets

- `assets/command-template.md`: command file scaffold.

