Create slash commands following @plugins/meta-work/docs/HOW_TO_PROMPT_ENGINEERING.md principles.
/plugin marketplace add otrebu/agents/plugin install meta-work@otrebu-dev-toolsCreate slash commands following @plugins/meta-work/docs/HOW_TO_PROMPT_ENGINEERING.md principles.
Parse $ARGUMENTS to determine creation mode:
$ARGUMENTS contains "for plugin" followed by plugin name
/create-command analyzes deployment logs for plugin development-lifecycle/create-command for plugin meta-work for doc VALIDATE_REFERENCES$ARGUMENTS contains "for doc {name}"
/create-command for doc CODE_REVIEW/create-command analyzes code size with clocCurrent state of the codebase:
ls commands/*.md 2>/dev/null | xargs -n1 basename | sed 's/.md$//' || echo "none"ls docs/HOW_TO_*.md 2>/dev/null | xargs -n1 basename | sed 's/HOW_TO_//' | sed 's/.md$//' || echo "none"cat .claude-plugin/marketplace.json 2>/dev/null | grep '"name"' | cut -d'"' -f4 | paste -sd ',' - || echo "none"From $ARGUMENTS, extract:
Bash(git status:*), Bash(cloc:*)Read, Write, Grep, Glob as neededIf plugin-scoped:
cat .claude-plugin/marketplace.json | grep '"name": "{plugin-name}"' && echo "exists" || echo "missing"test -d plugins/{plugin-name} && echo "exists" || echo "missing"/create-plugin firstIf "for doc" mode:
test -f docs/HOW_TO_{DOC_NAME}.md && echo "exists" || echo "missing"/create-docCheck name conflicts:
test -f commands/{name}.md && echo "conflict" || echo "available"test -f plugins/{plugin}/commands/{name}.md && echo "conflict" || echo "available"Determine output location:
commands/{name}.mdplugins/{plugin}/commands/{name}.mdCreate command with complete inline instructions:
---
allowed-tools: [specific bash patterns]
description: [One-sentence description]
argument-hint: [optional, e.g., "[file-pattern]" or "<required-arg>"]
---
## Context (if needed)
<!-- Use the !\`actual-command\` syntax with real bash commands for dynamic context -->
- Example: Use !\`ls commands/*.md 2>/dev/null | wc -l\` for dynamic data
## Your Task
[Brief task description. Use $ARGUMENTS if argument-hint is provided]
{Follow command template from @plugins/meta-work/docs/HOW_TO_PROMPT_ENGINEERING.md}
{Focus on: Purpose, Instructions, Constraints}
Follow @plugins/meta-work/docs/HOW_TO_PROMPT_ENGINEERING.md for structure and style.
Create command that references existing HOW_TO doc:
---
allowed-tools: [specific bash patterns]
description: [One-sentence description]
argument-hint: [optional]
---
## Context
<!-- Use the !\`actual-command\` syntax with real bash commands for dynamic context -->
- Example: Use !\`ls commands/*.md 2>/dev/null | wc -l\` for dynamic data
## Your Task
[Brief task description. Use $ARGUMENTS if argument-hint is provided]
See @docs/HOW_TO_{DOC_NAME}.md for detailed guidelines.
Before creating files, verify:
Bash(git status:*), not Bash(*))Use Write tool to create the command file.
Report what was created:
Pattern A (project):
Created command: {name}
Location: commands/{name}.md
This command has inline instructions and can be invoked with:
/{name}
Pattern A (plugin):
Created plugin command: {name}
Plugin: {plugin-name}
Location: plugins/{plugin}/commands/{name}.md
This command can be invoked with:
/{name}
Pattern D (project):
Created command: {name}
Location: commands/{name}.md
References: docs/HOW_TO_{DOC_NAME}.md
This command references existing documentation and can be invoked with:
/{name}
Pattern D (plugin):
Created plugin command: {name}
Plugin: {plugin-name}
Location: plugins/{plugin}/commands/{name}.md
References: docs/HOW_TO_{DOC_NAME}.md
This command can be invoked with:
/{name}
Input: /create-command analyzes codebase size using cloc
Output:
analyze-sizecommands/analyze-size.md/analyze-sizeInput: /create-command for doc CODE_REVIEW
Prerequisites: docs/HOW_TO_CODE_REVIEW.md must exist
Output:
code-reviewcommands/code-review.md/code-reviewInput: /create-command analyzes deployment logs for plugin development-lifecycle
Output:
analyze-logsplugins/development-lifecycle/commands/analyze-logs.mdInput: /create-command for plugin meta-work for doc VALIDATE_REFERENCES
Prerequisites: Plugin exists, doc exists
Output:
validate-referencesplugins/meta-work/commands/validate-references.mdInput: /create-command fixes eslint errors in specified files
Output:
fix-eslintcommands/fix-eslint.mdargument-hint: "[file-pattern]"$ARGUMENTS/fix-eslint src/**/*.tsBash(git status:*) not Bash(*)!\command`` syntax for fresh data$ARGUMENTS when argument-hint is providedPattern A (Inline):
/analyze-size, /start-featurePattern D (Reference Doc):
/code-review, /fix-eslintFor composition, use separate commands:
/create-command, then agent with /create-agent/create-doc, then reference it/create-commandGuided slash command creation with brainstorming and best practices. Triggers: new command, create command, slash command, start command, build command, add command, write command Use when: creating a new slash command from scratch, need guided brainstorming for command design, want structured workflow for command development DO NOT use when: creating skills - use /create-skill instead. DO NOT use when: creating hooks - use /create-hook instead. DO NOT use when: modifying existing commands - edit directly. Use this command to create any new slash command.