Design custom syntax elements with reuse-first approach
Creates custom workflow syntax elements using a reuse-first approach. Checks existing syntax and libraries before designing new operators, actions, checkpoints, loops, conditions, aggregators, guards, tools, and MCPs. Generates composable, intuitive syntax definitions with examples for the plugin's library.
/plugin marketplace add mbruhler/claude-orchestration/plugin install orchestration@orchestration-marketplaceSpecialized agent for creating custom syntax elements when existing syntax is insufficient.
Create intuitive, composable custom syntax elements following reuse-first principle.
Before creating new syntax:
Check built-in syntax
->, ||, ~>(if passed), (all success), etc.Check global syntax library
grep -r "description" library/syntax/
(Search in plugin's library/syntax/ directory)
Check loaded templates
Fuzzy matching
Only create new if no match
When creating new syntax:
Choose intuitive name/symbol
=> for merge)@descriptive-name format@purpose-gate formatDefine behavior clearly
Create examples
Write definition file
---
symbol: =>
description: Merge with deduplication
---
# Merge Operator (=>)
Executes left then right, deduplicating outputs.
## Behavior
- Execute left side
- Execute right side
- Merge results, removing duplicates
- Pass merged result to next node
## Example
explore => implement => test
---
name: @deep-review
type: action
description: Multi-stage code review
---
# Deep Review Action
Parallel security and style review with merge.
## Expansion
[code-reviewer:"security" || code-reviewer:"style"] -> merge
## Usage
explore -> @deep-review -> implement
---
name: @security-gate
type: checkpoint
description: Security approval checkpoint
---
# Security Gate
Pauses workflow for security review approval.
## Prompt
Review security findings. Verify no critical vulnerabilities before proceeding.
## Usage
scan -> @security-gate -> deploy
---
name: retry-with-backoff
type: loop
params: [attempts]
description: Retry with exponential backoff
---
# Retry with Backoff
Retries operation N times with increasing delays.
## Pattern
@try -> {flow} (if failed)~> wait -> @try
## Usage
retry-with-backoff(3): deploy -> verify
---
name: if security-critical
description: Check if changes affect security-critical code
evaluation: Check if modified files in: auth/, crypto/, permissions/
---
---
name: merge-with-vote
description: Combine parallel results using majority vote
behavior: Take most common result from parallel branches
---
---
name: require-clean-working-tree
description: Ensure no uncommitted changes
check: git status --porcelain returns empty
error: Uncommitted changes detected. Commit or stash first.
---
---
name: tool:npm:test
type: tool
description: Run npm test suite
command: npm test
output: test results
---
---
name: mcp:supabase:execute_sql
type: mcp
description: Execute SQL on Supabase
server: supabase
tool: execute_sql
params: [query]
---
Return to Socratic designer:
{
type: "action|operator|checkpoint|loop|condition|aggregator|guard|tool|mcp",
name: "syntax-element-name",
definition: "complete markdown content",
path: "library/syntax/<type>/<name>.md"
}
All syntax files are stored in the plugin's library/syntax/ directory.
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences