/laravel-api-tool-kit:create-workflowfrom laravel-api-tool-kit
Captures a repeatable process from the current session as a reusable workflow file, extracting steps, commands, and context.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /laravel-api-tool-kit:create-workflow still runs it.
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)What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (ahmedesa/laravel-api-tool-kit) — no native marketplace selected
npx claudepluginhub p/ahmedesa-laravel-api-tool-kit9 commands in this plugin
/add-filterWorkflow: Add Filtering to an Existing ModelUse this when an existing model needs filtering, sorting, or search added to its list endpoint./code-reviewWorkflow: Code ReviewA defense-oriented multi-phase code review. Validates feature completeness against acceptance criteria, catches real bugs (not just style), and separates introduced issues from pre-existing debt./curl-testWorkflow: Test an API Endpoint with CurlUse during investigation or feature verification to test an endpoint directly and cross-reference its response against the database./investigateWorkflow: Investigate & DebugStructured debugging workflow for any issue — wrong response, missing data, queue failures, auth problems, performance issues. Works for any Laravel API project./new-endpointWorkflow: Add a New CRUD EndpointFollow these steps in order. Do not skip steps or reorder them./organize-knowledgeWorkflow: Organize Knowledge BaseConsolidates scattered investigation docs, notes, and findings into the correct knowledge files. Prevents knowledge sprawl and ensures ONE file per feature.Other plugins' commands for the same job