using-templates
Skill220 starsChanged 13 months agoMITView on GitHub
Use and customize workflow templates for common scenarios. Use when user wants to use a template, asks about available templates, or wants to customize existing workflows.
In this repository8 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Ask about available templates
- Distinctive: line 16
Ask "what templates exist?"
- Very specific: line 67
Use /orchestration:template command (searches all locations automatically):
- Distinctive: line 100
Add or remove workflow steps:
- Distinctive: line 146
After customizing, save to your preferred location:
- Distinctive: line 215
Start with existing template
- Distinctive: line 238
creating-workflows: Create new templates
- Distinctive: line 240
managing-agents: Use agents in templates
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Using Workflow Templates
I help you use and customize workflow templates for common automation scenarios.
When I Activate
I activate when you:
- Ask about available templates
- Want to use a workflow template
- Need to customize a template
- Ask "what templates exist?"
- Say "use the X template"
Template Locations
Templates are searched in the following locations (in order of priority):
- Project root:
./workflows/*.flow- Project-specific templates - Claude root:
~/.claude/workflows/*.flow- User's global templates - Plugin examples:
~/.claude/plugins/repos/orchestration/examples/*.flow- Built-in examples
Project-local templates take precedence over global templates.
Built-in Example Templates
Located in examples/ directory:
- tdd-implementation.flow - Test-Driven Development
- debug-and-fix.flow - Bug investigation and fixing
- polish-news-aggregation.flow - News data aggregation
- plugin-testing.flow - Plugin testing workflow
- i18n-fix-hardcoded-strings.flow - Internationalization
- ui-component-refinement.flow - UI component improvement
- agent-system-demo.flow - Agent system demonstration
Using Templates
1. List Templates
# List project templates
ls ./workflows/*.flow 2>/dev/null
# List user's global templates
ls ~/.claude/workflows/*.flow 2>/dev/null
# List built-in examples
ls ~/.claude/plugins/repos/orchestration/examples/*.flow2. View Template
# View from any location
cat ./workflows/my-template.flow
cat ~/.claude/workflows/my-template.flow
cat ~/.claude/plugins/repos/orchestration/examples/tdd-implementation.flow3. Execute Template
Use /orchestration:template command (searches all locations automatically):
/orchestration:template tdd-implementationOr reference directly with path:
Use ./workflows/my-workflow.flow
Use ~/.claude/workflows/my-workflow.flow
Use examples/tdd-implementation.flowCustomizing Templates
Parameter Substitution
Some templates have parameters:
# Template with parameter
$scanner := {base: "Explore", prompt: "{{SCAN_TYPE}}", model: "sonnet"}Customize:
# Your version
$scanner := {base: "Explore", prompt: "Security expert", model: "sonnet"}Modify Steps
Add or remove workflow steps:
# Original
step1 -> step2 -> step3
# Your version (added error handling)
step1 -> step2 ->
(if failed)~> handle-error ~>
(if passed)~> step3Add Checkpoints
Insert review points:
# Original
analyze -> implement -> deploy
# Your version
analyze -> implement -> @review-implementation -> deployTemplate Structure
Templates typically have:
# Header with description
# Template: TDD Implementation
# Description: Implement features using Test-Driven Development
# Parameters: None
# Phase 1: RED
step1 -> step2
# Phase 2: GREEN
step3 -> step4
# Phase 3: REFACTOR
step5 -> step6Saving Custom Templates
After customizing, save to your preferred location:
Project-specific templates (recommended for project workflows)
mkdir -p ./workflows
cat > ./workflows/my-project-workflow.flow << 'EOF'
# My Project Workflow
# Description: Custom automation for this project
...
EOFUser's global templates (shared across all projects)
mkdir -p ~/.claude/workflows
cat > ~/.claude/workflows/my-global-workflow.flow << 'EOF'
# My Global Workflow
# Description: Custom automation available everywhere
...
EOFPlugin examples (for contributing back)
cat > ~/.claude/plugins/repos/orchestration/examples/my-workflow.flow << 'EOF'
# My Example Workflow
# Description: Custom automation for X
...
EOFGuidelines:
- Use
.flowextension - Add descriptive header
- Include usage instructions
- Project templates take precedence if same name exists globally
Template Categories
Development Workflows
- TDD implementation
- Bug fixing
- Refactoring
- Code review
Testing Workflows
- Test automation
- Integration testing
- Security scanning
- Performance testing
Deployment Workflows
- CI/CD pipelines
- Staged deployment
- Rollback procedures
Data Workflows
- Data aggregation
- Data validation
- Data transformation
- Report generation
Best Practices
✅ DO:
- Start with existing template
- Customize incrementally
- Test modifications
- Save successful customizations
❌ DON'T:
- Modify original templates (copy first)
- Skip testing customizations
- Over-complicate simple templates
Template Parameters
Common parameters in templates:
| Parameter | Purpose | Example |
{{TARGET}} | Target file/directory | src/components |
{{SCAN_TYPE}} | Type of scan | security, performance |
{{ENV}} | Environment | staging, production |
{{BRANCH}} | Git branch | main, develop |
Related Skills
- creating-workflows: Create new templates
- executing-workflows: Execute templates
- managing-agents: Use agents in templates
Want to use a template? Ask me to show available templates or execute one!
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

