chain-patterns

Featured

Chain patterns for multi-phase pipelines: MCP detection, handoff files, checkpoint-resume, worktree agents, CronCreate monitoring. Use when building or debugging a pipeline skill.

AI & Automation 229 stars 25 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Chain Patterns ## Overview Foundation patterns for CC 2.1.71 pipeline skills. This skill is loaded via the `skills:` frontmatter field — it provides patterns that parent skills follow. ## Pattern 1: MCP Detection (ToolSearch Probe) Run BEFORE any MCP tool call. Probes are parallel and instant. ```python # FIRST thing in any pipeline skill — all in ONE message: ToolSearch(query="select:mcp__memory__search_nodes") ToolSearch(query="select:mcp__context7__resolve-library-id") ToolSearch(query="select:mcp__sequential-thinking__sequentialthinking") # Store results for all phases: Write(".claude/chain/capabilities.json", JSON.stringify({ "memory": true_or_false, "context7": true_or_false, "sequential": true_or_false, "timestamp": "ISO-8601" })) ``` **Usage in phases:** ```python # BEFORE any mcp__memory__ call: if capabilities.memory: mcp__memory__search_nodes(query="...") # else: skip gracefully, no error ``` Load details: `Read("references/mcp-detection.md")` ## Pattern 2: Handoff Files Write structured JSON after every major phase. Survives context compaction and rate limits. ```python Write(".claude/chain/NN-phase-name.json", JSON.stringify({ "phase": "rca", "skill": "fix-issue", "timestamp": "ISO-8601", "status": "completed", "outputs": { ... }, # phase-specific results "mcps_used": ["memory"], "next_phase": 5 })) ``` **Location:** `.claude/chain/` — numbered files for ordering, descriptive names for clarity. Load schema: `Read...

Details

Author
yonatangross
Repository
yonatangross/orchestkit
Created
8 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category