Agent skill

Openspec Workflow Router

by HsienW in HsienW/chat-gun

MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Claude Code/CCR coordination tasks without loading unnecessary context.

Custom licenceAuto-check passedAgent Workflows

Install Openspec Workflow Router

skills CLI
$ npx skills add HsienW/chat-gun --skill openspec-workflow-router -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HsienW/chat-gun openspec-workflow-router --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HsienW/chat-gun.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/openspec-workflow-router .claude/skills/openspec-workflow-router && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openspec-workflow-router
GitHub stars
143
Token cost
~939 tokens
SKILL.md length
436 words
Files
8 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Claude Code/CCR coordination tasks without loading unnecessary context.

  • Works in 8 steps: Decide whether the request belongs to… → If a change name is known, read only… → During plan-change, initialize… → …
  • Proposal/design/tasks review
  • SKILL.md covers Task-Start Awareness, Context Policy, Route Table and How To Use
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Openspec Workflow Router is an agent skill from HsienW/chat-gun. MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Claude Code/CCR coordination tasks without loading unnecessary context. Use for planning, proposal/design/tasks review, implementation handoff, result review coordination, readiness checks, archive decisions, and CCR/Codex/Qwen handoffs.

Its SKILL.md is about 940 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/01-plan-change.md`, `references/02-review-plan.md` and `references/03-apply-change.md`).

It sits in Agent Workflows. It works with Qwen. The repository describes itself as: 🤖 A full-stack Agent Chat Runtime for pre-production validation, built with act, TypeScript, and LangGraph JS combining streaming, multimodal, HITL, and tools with durable…

When your agent uses it

  • Proposal/design/tasks review
  • Implementation handoff
  • Result review coordination
  • Readiness checks

Example prompts

  • “/openspec-workflow-router”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Decide whether the request belongs to the OpenSpec change lifecycle.
  2. If a change name is known, read only .agent-runtime//current-state.json.
  3. During plan-change, initialize CurrentState when absent; otherwise treat currentPhase as the source of truth.
  4. Select exactly one stage and read only its reference.
  5. Read only latestArtifactRefs and current Handoff requiredInputRefs; validate changeId/runId, safe paths, existence, and absence of Secrets.
  6. If another host owns the stage, produce the handoff and evidence list, then update CurrentState only after output persistence.
  7. If it is not a lifecycle task, keep the context policy below in force and continue with CLAUDE.md.
  8. Before every write-capable tool call, verify CCR owns the role, phase, target path, and Handoff. If any check fails, emit only the Handoff…

What it can do on your machine

Read from SKILL.md and the folder at commit 4569cb0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Openspec Workflow Router loads about 939 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 436 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~939
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 436 words (~939 tokens).

“Use this skill as Claude Code/CCR's coordination routing layer for the repository OpenSpec multi-agent workflow.”

— opening of SKILL.md by HsienW, Custom licence
name
openspec-workflow-router

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (references) in .claude/skills/openspec-workflow-router of HsienW/chat-gun.

  • SKILL.md
  • references/01-plan-change.md
  • references/02-review-plan.md
  • references/03-apply-change.md
  • references/04-review-result.md
  • references/05-fix-from-review.md
  • references/06-readiness-check.md
  • references/07-archive-change.md

Open the folder on GitHubat commit 4569cb0

Compare with similar skills

Openspec Workflow Router next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Openspec Workflow Router compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openspec Workflow Router this skillHsienW/chat-gun143—~939Automated safety check: PassCustom licence
Analyze Dataset Token Lengthopen-thoughts/OpenThoughts-Agent301—~1.5kAutomated safety check: PassApache-2.0
Remember Learningsdyad-sh/dyad22k—~1.1kAutomated safety check: PassCustom licence
Agent Reproduce AlignQwenLM/qwen-code28k—~1.1kAutomated safety check: PassApache-2.0
Crossreviewcoddy-project/coddy-agent167—~3.3kAutomated safety check: PassMIT
Open Dynamic Workflowsxz1220/open-dynamic-workflows104—~2kAutomated safety check: PassMIT

Similar skills

  • Analyze Dataset Token Length

    open-thoughts/OpenThoughts-Agent

    Analyze the token length of an OT-Agent conversation-format (ShareGPT-style) dataset — the per-trace distribution (median/p90/max) and/or counts under a token threshold + a metadata predicate (e.g.

    301 GitHub stars~1.5k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Remember Learnings

    dyad-sh/dyad

    Review the current session for errors, issues, snags, and hard-won knowledge, then update the rules/ files (or AGENTS.md if no suitable rule file exists) with actionable learnings.

    22k GitHub stars~1.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Agent Reproduce Align

    QwenLM/qwen-code

    Runs a reference agent (Codex or Claude Code) and Qwen Code on the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.

    28k GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Crossreview

    coddy-project/coddy-agent

    Run when the user invokes /crossreview (or /crossreview:setup to choose the reviewers) or asks for a cross-review, a quorum review or a second opinion from other agents or models: fan a code review…

    167 GitHub stars~3.3k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Open Dynamic Workflows

    xz1220/open-dynamic-workflows

    Write and run dynamic workflows: short JavaScript scripts in Claude Code's workflow dialect, run with the odw CLI outside the host agent's context, fanning subtasks out to coding-agent CLIs (Codex…

    104 GitHub stars~2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Marm Init

    Lyellr88/marm-memory

    Guided MARM MCP setup. An agent skill from Lyellr88/marm-memory.

    418 GitHub stars~7.5k tokensUpdated today
    Agent WorkflowsAuto-check: notes

More from HsienW/chat-gun

All 8 skills in this repo
  • Chat Gun 的前端、OpenSpec、Streaming Event、Tool Renderer、型別邊界、多模態流式鏈路與 React/Vite 編程約束。Use when working on frontend code, tool rendering, streaming contracts, multimodal requests/responses, Weather…

    143 GitHub stars~467 tokensUpdated 3 days ago
    Auto-check passed
  • Node

    HsienW/chat-gun

    Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging…

    143 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route it to token-efficient stage prompts.

    143 GitHub stars~907 tokensUpdated 3 days ago
    Auto-check passed
  • MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Qwen Code review tasks without loading unnecessary context.

    143 GitHub stars~923 tokensUpdated 3 days ago
    Auto-check passed
  • 對 OpenSpec、Git Diff、frontend、bff、backend、LangGraph、Tool、MCP 與安全邊界進行獨立唯讀審查,輸出 Blocker、Major、Minor 與標準 Verdict。

    143 GitHub stars~775 tokensUpdated 3 days ago
    Auto-check passed
  • Apply when creating, modifying, refactoring, debugging, testing, or reviewing TypeScript, LangGraph JS, LangChain, provider adapter, tool, MCP, prompt, state, checkpoint, runtime event, or backend…

    143 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Openspec Workflow Router

What does Openspec Workflow Router do?

MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Claude Code/CCR coordination tasks without loading unnecessary context. Openspec Workflow Router is an agent skill from HsienW/chat-gun. MUST be considered at task start in this repository to detect OpenSpec change lifecycle work and route Claude Code/CCR coordination tasks without loading unnecessary context.

When should I use Openspec Workflow Router?

Openspec Workflow Router fits situations like: proposal/design/tasks review; implementation handoff; result review coordination; readiness checks.

How do I install Openspec Workflow Router in Claude Code?

Run `npx skills add HsienW/chat-gun --skill openspec-workflow-router -a claude-code`. Or copy the skill folder (.claude/skills/openspec-workflow-router in HsienW/chat-gun) into .claude/skills/openspec-workflow-router in your project. Claude Code loads it when a task matches its description.

How do I install Openspec Workflow Router in Codex?

Run `npx skills add HsienW/chat-gun --skill openspec-workflow-router -a codex`. Or copy the skill folder (.claude/skills/openspec-workflow-router in HsienW/chat-gun) into .agents/skills/openspec-workflow-router in your project. Codex loads it when a task matches its description.

Can I use Openspec Workflow Router in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HsienW/chat-gun --skill openspec-workflow-router -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openspec-workflow-router, .gemini/skills/openspec-workflow-router, .github/skills/openspec-workflow-router and .opencode/skills/openspec-workflow-router in your project.

What does Openspec Workflow Router need to run?

SKILL.md names no scripts, command-line tools or credentials: Openspec Workflow Router is instructions for the agent only.

Does Openspec Workflow Router access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openspec Workflow Router safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Openspec Workflow Router use?

Openspec Workflow Router has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Openspec Workflow Router use?

About 939 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 690 tokens, read only when the agent opens those files.

What are the alternatives to Openspec Workflow Router?

Skills that share tags, products or a category with Openspec Workflow Router: Analyze Dataset Token Length (open-thoughts/OpenThoughts-Agent, 301 stars), Remember Learnings (dyad-sh/dyad, 22k stars), Agent Reproduce Align (QwenLM/qwen-code, 28k stars) and Crossreview (coddy-project/coddy-agent, 167 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openspec Workflow Router?

HsienW (a GitHub user) maintains it in HsienW/chat-gun, which has 143 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 4, 2026.

Source: HsienW/chat-gun on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.