mcpField
R
router

router

github.com/akshay-diwadkarAgent workflows173 installsUpdated today
Repository

About router

A skill that creates and seals one bounded route of public capabilities from the target repository and authoritative state, then returns control. It does not execute route steps, edit source, or publish changes.

Key features

  1. 01Author a bounded capability route
  2. 02Follow repository and routing policy
  3. 03Seal the route in the target repository
  4. 04Return control without executing steps
  5. 05Write only the route and Git exclude rule

Use cases

  1. 01Define gated next steps for a repository task
  2. 02Record that no steps are needed when the target is satisfied
  3. 03Hand a sealed route to a user for later execution

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/akshay-diwadkar/first-four-hours --skill router

After installing, type/routerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

skill-protocol.json
agents/
openai.yaml
assets/
capabilities.json
references/
routing-policy.md
scripts/
_diagnostic_contract.py
_skill_protocol_runtime.py
cli.py
route_workspace.py
seal_route.py

Details

From the project README

Router

Purpose

Author one bounded route of public capabilities from the current target and authoritative state, seal it as .first-four-hours/routes/<slug>/route.md, and return control. Never execute a routed capability, plan, edit source, publish, commit, push, or create a PR; write only that route and its local Git exclude rule.

Author

Read Routing Policy; it selects the target repository and shapes step prompts. Draft the route outside that repository:

# Route: <target>

Repository: <absolute path of the target repository>

<only the current state needed to read the steps>

## Steps

1. `<capability>`
   - Why: <why it is needed now>
   - Input: <authoritative input or current-state dependency>
   - Result: <expected observable result>
   - Prompt:
     ```text
     <copyable request that runs this step>
     ```

When current state already satisfies the target, replace the numbered steps with one None: <established postcondition> line.

Seal

python <skill-root>/scripts/cli.py --repo-root <Repository path> \
  --input draft=<draft.md> --input slug=<route-slug> --format json run

Repair each reported defect in the draft and rerun; on a repository mismatch, pass the intended repository rather than editing the line to where you run. Complete when the result names the sealed route.md under that Repository; return that path and end with step 1's sealed Prompt as the one optional next step, or none for a None: route. Only the user's later "yes" starts it, via its capability and gates, and the user runs a user-invoked step's Prompt themselves. Exhausting the route returns control; it does not by itself complete the target.

Comments

Markdown supported