ops
Use when the user wants to execute runtime operations — not development tasks. Examples: check account balances, run scripts, monitor positions, execute trades. Routes to project-specific agents registered in .rks/agents/. Uses the ops flow type (lightweight Governor, no plan/exec cycle). Also the route for branch promotion — promoting the working branch to the integration branch (e.g. dev -> staging) via rks_promote — and for publishing notes-only integration commits via rks_sync_staging.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- ops
- verbosity
- heartbeat
- description
- Use when the user wants to execute runtime operations — not development tasks. Examples: check account balances, run scripts, monitor positions, execute trades. Routes to project-specific agents registered in .rks/agents/. Uses the ops flow type (lightweight Governor, no plan/exec cycle). Also the route for branch promotion — promoting the working branch to the integration branch (e.g. dev -> staging) via rks_promote — and for publishing notes-only integration commits via rks_sync_staging.
- user-invocable
- true
- disable-model-invocation
- false
03 SKILL.md 正文
Ops Skill
Executes runtime operations through project-specific agents. No plan/exec cycle — fast path for operational tasks that need guardrails and telemetry but not the full build pipeline.
Instructions
-
Launch the Ops Governor:
subagent_type: general-purpose max_turns: 20 prompt: You are an Ops Governor for projectId routekit-shell. Your job is to execute runtime operations through project-specific agents.
Bootstrap
- Call rks_governor_init({ projectId: 'routekit-shell', flowType: 'ops' }) → Store the token.
Execute
-
Determine which project agent handles the user's request. Call rks_agent_run({ agent: '<agent-name>', input: { projectId: 'routekit-shell', request: '<what the user asked>' } }) with _governorToken.
-
For multi-step operations (e.g. check balance THEN place trade), call rks_agent_run multiple times. The ops flow allows repeated execution. To publish local notes-only commits (integration branch clean and strictly ahead of origin), call rks_sync_staging({ projectId: 'routekit-shell', _governorToken: TOKEN }) — with a token it runs push-only (never pulls, rebases, merges or forces) and refuses any non-notes path. To promote the working branch to the integration branch in a 3-branch project (e.g. dev -> staging), call rks_promote({ projectId: 'routekit-shell', _governorToken: TOKEN }) — the ops flow admits it from init, and in a child project it is a human checkpoint (permission prompt), like rks_release.
Complete
- Return { status: 'complete', summary, artifacts } with the result of the last operation. Do NOT call rks_cycle_complete: the ops flow does not admit it (chain_violation in every ops state), and rks_promote, rks_release and rks_sync_staging leave the repository in its final state themselves.
Rules
- SESSION END (backlog.feat.governor-session-end): the LAST MCP call on every return path (complete, failed, error STOP) is rks_governor_end({ projectId: 'routekit-shell', _governorToken: TOKEN }), made after every other call and immediately before returning — the ops flow never reaches a terminal state on its own. ended: false with session_not_live is not an error; end_blocked is reported with its blockedBy and not retried. Include its result in the return payload.
- NEVER call rks_plan, rks_exec, rks_refine — those are build tools.
- NEVER call rks_cycle_complete — the ops flow refuses it; ops operations need no branch cleanup.
- Emit telemetry for every operation.
- If the agent definition includes guardrails, validate before executing.
- Error → STOP. Return { status: 'failed', error, summary }.
Task
$ARGUMENTS
If the projectId above is still an unsubstituted template token, resolve it from the projectId declared at the top of CLAUDE.md.
On Return
Report the operation result and any telemetry events emitted.
Singleton Rule
The Ops Governor runs alone. Never launch any other Governor of any type, Research included, while it is running, and wait for every running Governor to complete before launching it. Its runtime operations (scripts, project agents) have side effects that are not confined to a single note.
04 同仓库更多 Skills
doctor
Run `routekit doctor` against the invoking shell's child-project ecosystem and surface per-child outcomes. Default mode is detect + auto-fix across all registered children. Pass `--dry-run` to inspect the fix plan without mutating anything. Non-recoverable findings (pinned-but-drifted children) are reported but not repaired.
skills-telemetry
Use when the user asks about recent activity, failures, build history, or wants to query telemetry events. Calls MCP telemetry tools directly — no Task subagent needed. $ARGUMENTS can be: summary, failures, or an event type filter string.
skills-telemetry-export
Use when the user wants to EXPORT/SHARE a project's telemetry — e.g. for a UAT report or to attach to a GitHub issue. Produces a redacted .json + .md bundle via an MCP tool; no Task subagent or Governor is launched. $ARGUMENTS may be a storyId to scope the export.
skills-ship
Use when the user wants to commit and ship uncommitted changes. Accepts an optional commit message as $ARGUMENTS. Launches the Ship Governor via Task subagent. Handles both 2-branch (push → PR → merge) and 3-branch (local merge, no PR) workflows automatically based on project config.
skills-rks-welcome
Alias for /rks-onboard — same guided first-run tour through rks stories, permissions, cost, and first PR.
skills-rks-onboard
Run the rks onboarder — guided first-run tour through stories, permissions, cost, and first PR. Resumes from last completed stage if a session exists. Use when the user types /rks-onboard or asks to start onboarding.