ccw-chain
Chain-based CCW workflow orchestrator. Intent analysis, workflow routing, and Skill pipeline execution via progressive chain loading. Triggers on "ccw chain", "chain ccw", "workflow chain".
pinned to #07491b0updated 2 weeks ago
Ask your AI client: “install skills/ccw-chain”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/ccw-chainmetahub onboarded this repo on the author's behalf.
If you own github.com/catlog22/Claude-Code-Workflow on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
2,143
Last commit
2 weeks ago
Latest release
published
- #claude
- #claude-code
- #cli-tools
- #codex
- #context-management
- #gemini-cli
- #json-driven
- #qwen-code
- #task-orchestration
- #workflow-automation
About this skill
Pulled from SKILL.md at publish time.
Chain-based workflow orchestrator using `chain_loader` for progressive step loading and LLM-driven decision routing.
Allowed tools
- Skill(*)
- TodoWrite(*)
- AskUserQuestion(*)
- Read(*)
- Grep(*)
- Glob(*)
- Bash(*)
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.07491b0· 2 weeks ago
Kind-specific
31Skill: SKILL.md present
found at .claude/skills/ccw-chain/SKILL.md · frontmatter source: SKILL.md
Skill: body content present
506 words · 3,899 chars · 9 sections · 1 code block
Skill: triggers declaredwarn
No `trigger` phrases in SKILL.md frontmatter
Add `trigger:` lines so Claude knows when to activate this skill — e.g. `when building MCP servers` or `for diagram creation`.
Skill: allowed-tools scope
7 declared: Skill(*), TodoWrite(*), AskUserQuestion(*), Read(*), Grep(*) (+2)
Release history
1- releasecurrent07491b0warn2 weeks ago
Contents
Chain-based workflow orchestrator using chain_loader for progressive step loading and LLM-driven decision routing.
Discovery
chain_loader list— list all chains with triggers, entries, and descriptions- Match user intent to chain
triggers.task_types/triggers.keywords chain_loader inspect— preview chain node graph and available entrieschain_loader start— begin from default entry, named entry (entry_name), or any node (node)
Execution Protocol
When chain_loader delivers a step node with a skill/command doc:
- Read the loaded doc content to understand the skill's purpose and interface
- Assemble the Skill call:
Skill(skill_name, args)- First step:
args = "${analysis.goal}" - Subsequent steps:
args = ""(auto-receives session context) - Special args noted in step name (e.g.,
--bugfix,--hotfix,--plan-only)
- First step:
- Propagate -y: If auto mode active, append
-yto args - Execute:
Skill(skill_name, args)— blocking, wait for completion - Advance:
chain_loader doneto proceed to next step
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS);
function assembleCommand(skillName, args, previousResult) {
if (!args && previousResult?.session_id) {
args = `--session="${previousResult.session_id}"`;
}
if (autoYes && !args.includes('-y') && !args.includes('--yes')) {
args = args ? `${args} -y` : '-y';
}
return { skill: skillName, args };
}
Auto Mode (-y / --yes)
- D1 Clarity Check: always choose "Clear" (skip clarification)
- Confirmation: skip, execute directly
- Error handling: auto-skip failed steps, continue pipeline
- Propagation:
-yinjected into every downstream Skill call
Delegation Protocol
When chain_loader returns delegate_depth > 0:
- Continue normal execution (read content, assemble Skill, execute)
- On
returned_from_delegate: true, resume parent chain context - Variables received from child chain are available for subsequent steps
Preloaded Context
When chain_loader start returns preloaded_keys:
- Preloaded content is available via
chain_loader contentfor the entire session - Reference preloaded context when assembling Skill calls
- Use preloaded memory/project context to inform all downstream steps
Progress Visualization
After each chain_loader done, call chain_loader visualize to show progress.
Display the visualization in execution log for user awareness.
Variable Propagation
Intent analysis results (task_type, goal, auto_yes) are stored as chain variables.
assembleCommand() reads variables from chain_loader status for Skill args.
Variables automatically flow through delegation via pass_variables/receive_variables.
Phase-Level Execution (Skill Chain Delegation)
When the current chain is a skill-level chain (entered via delegation from a category chain):
- Each step delivers phase doc content directly (not SKILL.md)
- Execute phase instructions inline — do NOT wrap in
Skill()call - Reference preloaded
skill-contextfor orchestration patterns (TodoWrite, data flow, error handling) - Phase execution produces artifacts (files, session state) consumed by the next phase
- The chain system controls phase progression — no need for internal phase orchestration
Architecture: Chain Definition Layers
- Category chains (8):
ccw-chain/chains/— routing and orchestration (ccw-main, ccw-standard, etc.) - Workflow skill chains (7):
.claude/workflow-skills/*/chains/— skill-level chains with phase content - Phase content:
.claude/skills/*/phases/— original phase files, referenced via@skills/prefix - Category chains delegate to workflow skill chains via
findChainAcrossSkills()fallback - Content refs:
@phases/= skill-relative,@skills/= project.claude/skills/relative
Reviews
No reviews yet. Be the first.
Related
Frontend Slides
Create beautiful slides on the web using Claude's frontend skills
Guizang Ppt Skill
AI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
orchestration-patterns
>
mh install skills/ccw-chain