Agent Skills › mvschwarz/openrig › developing-openrig

developing-openrig

GitHub

指导在OpenRig源码仓库中进行开发工作,包括定位代码、选择测试、隔离验证变更及评估风险,最终准备提交PR。

.claude/skills/developing-openrig/SKILL.md mvschwarz/openrig

Trigger Scenarios

修改OpenRig源代码 查找功能所属文件 运行特定测试 评估变更风险 准备Pull Request

Install

npx skills add mvschwarz/openrig --skill developing-openrig -g -y
More Options

Non-standard path

npx skills add https://github.com/mvschwarz/openrig/tree/main/.claude/skills/developing-openrig -g -y

Use without installing

npx skills use mvschwarz/openrig@developing-openrig

指定 Agent (Claude Code)

npx skills add mvschwarz/openrig --skill developing-openrig -a claude-code -g -y

安装 repo 全部 skill

npx skills add mvschwarz/openrig --all -g -y

预览 repo 内 skill

npx skills add mvschwarz/openrig --list

SKILL.md

Frontmatter
{
    "name": "developing-openrig",
    "description": "Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a behaviour, choosing which tests to run, testing a change without disturbing the OpenRig daemon your own session runs on, judging whether a diff touches a high-risk area, or preparing a pull request. Not for operating rigs (openrig-skills) or designing rig topologies."
}

Developing OpenRig

This skill is a map to the other maps. Each one is incomplete and may be stale: where a map and the code disagree, the code is right, and fixing the map is a welcome contribution.

First: which OpenRig are you in?

If you are an agent running inside OpenRig, two different OpenRigs are in play:

  • The installed one runs your session. rig --version and rig daemon status describe it.
  • The checkout is what you're changing. git rev-parse HEAD describes it.

Restarting the installed daemon does not run your checkout, and stopping it stops the agents running on it, including you. Test your change with the repo's own harnesses, which start a private daemon and tmux server (see "Test it" below), not by restarting the daemon you live in.

Find your way

You want to know Read How much to trust it
What OpenRig can already do, before you decide something is missing rig context get onboarding-width/public-what-you-can-do.md; in this checkout, packages/daemon/context-packs-src/onboarding-width/public-what-you-can-do.md (the installed copy can differ) The capability map; check it before proposing a new command or calling a gap a defect
Whether a rig command already exists rig --help: the full command list, before you decide a command is missing The running binary; read the whole list, not only the command you expected
Whether a problem is already known The "Known problems to compare against" section of docs/reference/help.md Lists known issues by symptom; check an issue's current status before relying on it
Whether a feature is already planned ROADMAP.md Check it before proposing a feature
How the packages fit, the request path, where to add a command, route, migration, adapter, skill, context pack or scenario ARCHITECTURE.md Checked against the commit it names; counts come with the command to refresh them
Whether your change touches a high-risk area, what depends on it, what broke there before docs/as-built/arteries.md Incomplete by design: absence from it doesn't make a change safe
What to run before you push, and what each layer can and can't prove docs/as-built/test-layers.md Checked against the commit it names
The exact behaviour of a rig command rig <command> --help on the running binary, then packages/cli/src/commands/ The binary and the code win over any document
A subsystem in depth docs/as-built/ Each module names the commit it was last checked against in last-verified-against-source; compare that marker with git log before relying on it
Rig spec, agent spec and other user-facing reference docs/reference/ Ships to every user; if you find drift, fix it there
Which shipped skill covers a task skills/_canonical/core/openrig-skills/SKILL.md The index of the skills that ship with OpenRig
How to open a good pull request, and what review looks like CONTRIBUTING.md Current

If none of these answers your question, search the code before inventing an answer. A missing map is worth an issue.

Before you change an artery

If your diff touches anything in arteries.md (message delivery, launch and resume, the queue, rig identity, skill projection, process observation, migrations, restore):

  1. Read the artery row: what depends on it, and the past regressions listed there.
  2. Describe the downstream effect in your pull request, not just the diff.
  3. Add or extend a stub-agent scenario, or say precisely why the stub can't exercise it and what you ran instead.

Test it

The short version is npm run build, npm run lint, npm test. test-layers.md has the full ladder, including the stub-agent scenarios, which run the real CLI, daemon, tmux and SQLite with scripted agents and no model cost.

  • The scenario runner starts its own daemon and tmux server and drops your session's TMUX and daemon variables, so it won't touch the daemon your session runs on.
  • A stub proves OpenRig's own plumbing, not how Claude Code or Codex behave. Say which you exercised.

How we judge changes

OpenRig is a coordination layer for a trusted environment: it should help agents and people keep work flowing.

  • A change that removes friction, or makes state more truthful, is usually welcome.
  • OpenRig runs on agents working in context with tools. Before adding code for a behaviour, ask whether an agent with the right instructions and today's commands could do it. A skill or a page of guidance is often the better change.
    • Where to look: the capability map above, and the agent-operated-workflows skill, which ships in the openrig-core plugin (packages/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md).
  • A change that adds a refusal, a prompt or a required step needs the concrete case in CONTRIBUTING.md: who is harmed, how, and what it costs everyone else.
  • One concern per pull request. Keep the diff reviewable in one sitting.

When the map is wrong

Fix it in the same pull request, or open an issue. Update a document's last-verified-against-source marker only when you have actually checked it against that commit.

Version History

  • dc2221e Current 2026-10-18 15:35

Same Skill Collection

.agents/skills/developing-openrig/SKILL.md
skills/_canonical/core/agent-starters/SKILL.md
skills/_canonical/core/agent-startup-and-context-ingestion/SKILL.md
skills/_canonical/core/cross-host-rig-commands/SKILL.md
skills/_canonical/core/human-in-the-loop/SKILL.md
skills/_canonical/core/messaging-the-human/SKILL.md
skills/_canonical/core/openrig-architect/SKILL.md
skills/_canonical/core/openrig-cmux/SKILL.md
skills/_canonical/core/openrig-software-factory/SKILL.md
skills/_canonical/core/openrig-upgrade/SKILL.md
skills/_canonical/core/rig-bundles-and-shareable-artifacts/SKILL.md
skills/_canonical/core/session-source-fork/SKILL.md
skills/_canonical/core/specification-system/SKILL.md
skills/_canonical/core/topology-mutation-and-seat-management/SKILL.md
skills/_canonical/core/watchdog/SKILL.md
skills/_canonical/pm/backlog-capture/SKILL.md
skills/_canonical/pm/context-builder/SKILL.md
skills/_canonical/pm/exec-summary/SKILL.md
skills/_canonical/pm/office-hours/SKILL.md
skills/_canonical/pm/plan-review/SKILL.md
skills/_canonical/pm/requirements-writer/SKILL.md
skills/_canonical/pm/ui-mockup/SKILL.md
skills/_canonical/pods/development-team/SKILL.md
skills/_canonical/pods/orchestration-team/SKILL.md
skills/_canonical/pods/review-team/SKILL.md
skills/_canonical/process/agent-browser/SKILL.md
skills/_canonical/process/dogfood/SKILL.md
skills/_canonical/process/frontend-design/SKILL.md
skills/_canonical/process/systematic-debugging/SKILL.md
skills/_canonical/process/test-driven-development/SKILL.md
skills/_canonical/process/verification-before-completion/SKILL.md
packages/daemon/assets/skills/rigs/SKILL.md
skills/_canonical/core/openrig-herdr/SKILL.md
skills/_canonical/core/openrig-skills/SKILL.md
skills/_canonical/core/rig-lifecycle/SKILL.md
skills/_canonical/pods/oversight-team/SKILL.md
skills/_canonical/process/context-engineering/SKILL.md
skills/rigs/SKILL.md

Metadata

Files
0
Version
dc2221e
Hash
fba6335a
Indexed
2026-10-18 15:35

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 06:56
浙ICP备14020137号-1