From agents-architect
Write or refactor Claude Code slash commands (files in commands/<ns>/<cmd>.md). Use when the user asks to "create a slash command", "add /<name>", "write a command file", "make a /command", "turn this workflow into a command", "argument hints", "allowed-tools", or when packaging a repeatable workflow as a one-keystroke invocation. Covers frontmatter, $ARGUMENTS parsing, @-imports for context files, and orchestration patterns.
npx claudepluginhub ibrahim-3d/agents-architect --plugin agents-architectThis skill uses the workspace's default tool permissions.
A slash command is a markdown file at `commands/<namespace>/<name>.md`. Invoked as `/namespace:name [args]`.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
A slash command is a markdown file at commands/<namespace>/<name>.md. Invoked as /namespace:name [args].
---
name: <namespace>:<cmd>
description: One-line what the command does. Shows in /help.
argument-hint: "[arg1] [arg2]" # what $ARGUMENTS will contain
allowed-tools:
- Read
- Write
- Bash
- Task
- AskUserQuestion
---
allowed-tools is an allowlist — if set, the command runs with only these. Omit to inherit the session's tools. Prefer allowlists for safety.
<objective>
One paragraph: what the command produces and what files it touches.
</objective>
<execution_context>
@${CLAUDE_PLUGIN_ROOT}/<plugin>/references/<doc>.md
@${CLAUDE_PLUGIN_ROOT}/<plugin>/templates/<template>.md
</execution_context>
<context>
Arguments: $ARGUMENTS
Parse as: <describe>
</context>
<process>
Numbered steps. Each step is either:
- Read a file
- AskUserQuestion to fill a gap
- Task-spawn a specialist (by subagent_type)
- Write an output file
</process>
<output>
Files created/modified + a 5-line summary.
</output>
@-imports@<path> in the body loads the file contents inline at command expansion time. Use ${CLAUDE_PLUGIN_ROOT} for plugin-relative paths. Use this to pull in long reference docs, templates, and few-shot examples so the command body itself stays short.
Raw string of everything after the command name. Parse it in the body prose — the model handles extraction. For multi-arg commands, document the expected format in argument-hint.
/note, /status)./agents-architect:new, GSD's /gsd:plan-phase). Includes gates, approvals, and aggregates specialist output.Orchestrators should always use the Task tool, not inline the specialist's work.
AskUserQuestion confirmation.@-imported references..planning/STATE.md, .arch/state.json) rather than relying on context.Produce commands/<ns>/<name>.md with correct frontmatter, XML-structured body, @-imports for heavy context, and a short exit summary spec.