From laravel-api-tool-kit
Creates a structured markdown workflow document from a repeatable multi-step process extracted from the conversation.
npx claudepluginhub ahmedesa/laravel-api-tool-kitlaravel-api-tool-kit/workflows/# Workflow: Create a New Workflow Use this when you discover a repeatable process during a session — an investigation type, a setup procedure, a debugging pattern — that should be captured as a reusable workflow. **Trigger phrases**: "create workflow", "make a workflow for this", "save this as a workflow", "this should be a workflow", `/create-workflow` **Also trigger proactively** — if you just finished an investigation or multi-step process and realize someone will hit this again, suggest creating a workflow. --- ## When to Create a Workflow A workflow is worth creating when: - You ...
/workflowsSaves recent development actions as reusable workflows, lists them in a dashboard, executes selected workflows, and supports optimization.
/build-workflowScaffolds a new workflow-as-markdown file in workflows/ directory with YAML frontmatter for outputs, agents, and validation. Prompts for purpose, expected outputs, and agents; optionally creates agent stubs.
/create-workflowScaffolds a custom swarm workflow by generating a mode skill (.claude/skills/<name>-mode/SKILL.md) and shortcut command (.claude/commands/<name>.md).
/create-workflowCreates multi-phase workflow definitions with JIT resource loading, progress tracking, structured phases, and metadata.
/write-planCreates a dated Markdown file in docs/plans/YYYY-MM-DD-<slug>-workflow.md containing an implementation workflow with loops and gates.
/create-workflowGenerate an n8n workflow JSON from a natural language automation description, with error handling, metadata, and credential setup instructions.
Share bugs, ideas, or general feedback.
Use this when you discover a repeatable process during a session — an investigation type, a setup procedure, a debugging pattern — that should be captured as a reusable workflow.
Trigger phrases: "create workflow", "make a workflow for this", "save this as a workflow", "this should be a workflow", /create-workflow
Also trigger proactively — if you just finished an investigation or multi-step process and realize someone will hit this again, suggest creating a workflow.
A workflow is worth creating when:
Examples from real projects:
server-investigator.md — born from debugging a staging server with no root accessfirebase-investigator.md — born from setting up Firebase across 3 platformsstripe-integration.md — born from integrating Stripe subscriptions with DDDReview the current conversation and identify:
Use this template:
# Workflow: [Name] ([Short Context])
[One sentence: when to use this workflow.]
**Trigger phrases**: "[keyword1]", "[keyword2]", `/[command-name]`
---
## Prerequisites
- [What must be true before starting]
- [Required access, tools, or packages]
---
## Architecture / Context
[Brief description of HOW the system works, so the reader understands
WHY the steps are in this order. Include:]
- Key files / tables / services involved
- Common configurations
- Constraints (no root access, specific PHP version, etc.)
---
## Investigation / Execution Steps
### Step 1: [First thing to check/do]
[Why this step first]
\`\`\`bash
[Command or query]
\`\`\`
[What to look for in the output]
### Step 2: [Next step]
...
---
## Common Scenarios & Fixes
### Scenario A: [Problem Title]
**Symptom**: [What you see]
**Cause**: [Why it happens]
**Fix**:
\`\`\`bash
[Command or code to fix]
\`\`\`
### Scenario B: [Problem Title]
...
---
## Anti-Patterns / Usage Rules
- NEVER [common mistake that wastes time]
- ALWAYS [thing that saves time]
- If [condition] → [do this instead]
If the workflow involves commands, include the EXACT commands that worked — not generic examples. Include:
STORE_ID, USER_ID)These are the most valuable part. A workflow without commands is just documentation.
The best workflows have a "Scenarios & Fixes" section that covers:
This turns an investigation workflow into a lookup table — next time you see the symptom, you skip straight to the fix.
Save to workflows/[descriptive-name].md:
workflows/[feature]-investigator.mdworkflows/[feature]-setup.mdworkflows/[service]-integration.mdworkflows/[operation]-runbook.mdThen update the main skill entry point (SKILL.md or instructions.md) → "Available Workflows" section.
Tell the user:
Created workflows/queue-debugger.md:
→ 5 investigation steps (check failed_jobs → check Horizon → check listener → ...)
→ 3 common scenarios (Redis down, listener exception, job serialization)
→ 8 diagnostic commands
Updated SKILL.md → Added to Available Workflows list
Before saving, verify:
ORDER_ID not 12345)