designing-syntax
1
总安装量
1
周安装量
#42691
全站排名
安装命令
npx skills add https://github.com/mbruhler/claude-orchestration --skill designing-syntax
Agent 安装分布
replit
1
opencode
1
claude-code
1
Skill 文档
Designing Custom Workflow Syntax
I design custom syntax elements following a reuse-first approach. Only create new syntax when existing patterns don’t fit.
When I Activate
I activate when you:
- Need custom workflow operators
- Want specialized checkpoints
- Ask about extending syntax
- Need domain-specific patterns
- Say “I need a custom syntax for…”
Reuse-First Process
Before creating new syntax, I check:
- Built-in syntax –
->,||,~>,@,[...] - Global syntax library –
library/syntax/ - Template definitions – Existing workflow definitions
- Similar patterns – Adaptable existing syntax
Only create new if no match exists.
Syntax Types
Operators
Custom flow control operators.
Example: => (merge with dedup)
---
symbol: =>
description: Merge with deduplication
---
Executes left then right, removes duplicates from combined output.
Actions
Reusable sub-workflows.
Example: @deep-review
---
name: @deep-review
type: action
---
Expansion: [code-reviewer:"security" || code-reviewer:"style"] -> merge
Checkpoints
Manual approval gates with prompts.
Example: @security-gate
---
name: @security-gate
type: checkpoint
---
Prompt: Review security findings. Verify no critical vulnerabilities.
Conditions
Custom conditional logic.
Example: if security-critical
---
name: if security-critical
description: Check if changes affect security code
evaluation: Modified files in: auth/, crypto/, permissions/
---
Loops
Reusable loop patterns.
Example: retry-with-backoff(n)
---
name: retry-with-backoff
type: loop
params: [attempts]
---
Pattern: @try -> operation -> (if failed)~> wait -> @try
Design Principles
- Intuitive – Names/symbols hint at behavior
- Composable – Works with existing syntax
- Self-documenting – Clear from context
- Minimal – Only when truly needed
Best Practices
â DO:
- Use descriptive names (
@security-gatenot@check) - Document behavior clearly
- Provide examples
- Keep composable
â DON’T:
- Create for one-time use
- Make too specific
- Hide too much complexity
- Duplicate existing syntax
Library Structure
library/syntax/
âââ operators/ # Flow control operators
âââ actions/ # Reusable sub-workflows
âââ checkpoints/ # Approval gates
âââ conditions/ # Custom conditionals
âââ loops/ # Loop patterns
âââ aggregators/ # Result combination
âââ guards/ # Pre-execution checks
Related Skills
- creating-workflows: Use custom syntax in workflows
- executing-workflows: Execute workflows with custom syntax
Need custom syntax? Describe the pattern you keep repeating!