neolabhq/context-engineering-kit/create-workflow-command
- community
Checking that the SKILL.md file is still in the repository.
Create a workflow command that orchestrates multi-step execution through sub-agents with file-based task prompts
Install
npx vskill@latest install neolabhq/context-engineering-kit/create-workflow-commandSKILL.md
Create Workflow Command
Create a command that orchestrates multi-step workflows by dispatching sub-agents with task-specific instructions stored in separate files.
User Input
Architecture Overview
Workflow commands solve the context bloat problem: instead of embedding detailed step instructions in the main command (polluting orchestrator context), store them in separate task files that sub-agents read on-demand.
Key Principles
1. Context Isolation
Each sub-agent gets its own isolated context window. The main orchestrator stays lean while sub-agents load detailed instructions from files.
| Component | Context Cost | Purpose | |
|---|---|---|---|
| Orchestrator command | ~50-100 tokens/step | Dispatch and coordinate | |
| Task file | ~500+ tokens | Detailed step instructions | |
| Sub-agent base | ~294 tokens | System prompt overhead |
2. Sub-Agent Capabilities
Sub-agents spawned via Task tool:
| Capability | Available | Notes | |
|---|---|---|---|
| Read tool | ✅ Yes | Can read any file | |
| Write tool | ✅ Yes | If not restricted | |
| Grep/Glob | ✅ Yes | For code search | |
| Skills loading | ❌ No | Skills don't auto-load in sub-agents | |
| Spawn sub-agents | ❌ No | Cannot nest Task tool | |
| Resume context | ✅ Yes | Via resume parameter |
3. File Reference Pattern
Use ${CLAUDE_PLUGIN_ROOT} for portable paths within plugin:
Sub-agent will use Read tool to fetch the file content.
Implementation Process
Step 1: Gather Requirements
Ask user (if not provided):
- Workflow name: kebab-case identifier (e.g.,
feature-implementation) - Description: What the workflow accomplishes
- Steps: List of discrete steps with:
- Step name
- Step goal
- Required tools
- Expected output
- Execution mode: Sequential or parallel steps
- Agent type:
general-purposeor custom agent
Step 2: Create Directory Structure
Note: All task files (both workflow-specific steps and shared context) are placed directly in tasks/ without subdirectories.
Step 3: Create Task Files
For each step, create a task file with this structure:
Step 4: Create Orchestrator Command
Create the main command file with this pattern:
Frontmatter Options
| Field | Purpose | Default | |
|---|---|---|---|
description | Brief description of workflow purpose | Required | |
argument-hint | Expected arguments description | None | |
allowed-tools | Tools the command can use | Inherits from conversation | |
model | Specific Claude model (sonnet, opus, haiku) | Inherits from conversation |
Model selection:
haiku- Fast, efficient for simple workflowssonnet- Balanced performance (recommended default)opus- Maximum capability for complex orchestration
Execution Patterns
Pattern A: Sequential Steps (Default)
Each step depends on previous step's output:
Pattern B: Parallel Independent Steps
Steps can run concurrently:
Pattern C: Stateful Multi-Step (Resume)
When steps need shared context:
Example: Feature Implementation Workflow
Orchestrator Command
Task File Example (step-1-feature-impl-research.md)
Known Limitations
| Limitation | Impact | Workaround | |
|---|---|---|---|
| No nested sub-agents | Sub-agents can't spawn Task tool | Keep all orchestration in main command | |
| No skill auto-loading | Sub-agents don't trigger skills | Pass explicit file paths or inline context | |
| Fresh context per agent | Each dispatch starts empty | Use resume pattern OR pass summaries | |
| File read latency | Extra tool call per step | Acceptable trade-off for context savings |
Validation Checklist
Before finalizing workflow command:
- [ ] Each step has clear, specific goal
- [ ] Task files are self-contained (sub-agent doesn't need external context)
- [ ] File paths use
${CLAUDE_PLUGIN_ROOT}for portability - [ ] Context passed between steps is minimal (summaries, not full data)
- [ ] Orchestrator command stays lean (<100 tokens per step dispatch)
- [ ] Error handling defined for step failures
- [ ] Success criteria measurable for each step
Create the Workflow
Based on user input, create:
- Directories:
${CLAUDE_PLUGIN_ROOT}/tasks/- All task files directly here${CLAUDE_PLUGIN_ROOT}/agents/- (Optional) Custom agent definitions
- Task files: Create in
tasks/directory with naming patternstep-N-<workflow>-<name>.md
- Example:
step-1-feature-impl-research.md - Example:
step-2-feature-impl-architecture.md - Shared context:
common-context.mddirectly intasks/
- Orchestrator command: Lean dispatch logic in
commands/<workflow-name>.md
- Custom agents (Optional): If workflow needs specialized agent behavior in
agents/
- Update plugin.json: Add command to plugin manifest if needed
After creation, suggest testing with /customaize-agent:test-prompt command.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/create-workflow-command/SKILL.md
Popularity
- Repository stars
- 1,308
- Repository forks
- 136
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neolabhq/context-engineering-kit/create-workflow-command)