orx-git

GitHub

管理实验代码的 Git 工作流,包括创建分支、提交变更、协调共享工作树及比对差异。确保提交内容可运行并维护不可变的实验历史,避免重复工作或冲突。

agent-skills/orx-git/SKILL.md alphaXiv/OpenResearch

Trigger Scenarios

需要记录或编辑实验代码变更时 在开始新实验前检查分支状态和他人工作

Install

npx skills add alphaXiv/OpenResearch --skill orx-git -g -y
More Options

Non-standard path

npx skills add https://github.com/alphaXiv/OpenResearch/tree/main/agent-skills/orx-git -g -y

Use without installing

npx skills use alphaXiv/OpenResearch@orx-git

指定 Agent (Claude Code)

npx skills add alphaXiv/OpenResearch --skill orx-git -a claude-code -g -y

安装 repo 全部 skill

npx skills add alphaXiv/OpenResearch --all -g -y

预览 repo 内 skill

npx skills add alphaXiv/OpenResearch --list

SKILL.md

Frontmatter
{
    "name": "orx-git",
    "description": "Read, edit, commit, and diff experiment code; coordinate shared worktrees and preserve frozen branch history. Use before branch work, when starting work alongside other sessions, comparing nodes, preparing a run, repairing a provisional node, or diagnosing stale code."
}

Git records every experiment. GitHub publication may be enabled for collaborator visibility, but it is never part of compute transport. Follow the project playbook's publication status; do not push merely to launch compute and do not fetch from or publish back to the paper's upstream repository.

Other chat sessions may work in sibling worktrees of the same clone. Before starting, inspect git branch -a, orx runs <projectId>, and relevant orx exp desc <expId> notes so you do not duplicate their work. Branches and remotes are shared even though worktrees are separate. Keep experiment notes current as you learn so sibling sessions can orient from them.

One branch has one worktree owner. If checkout says a branch is already checked out, keep working only when the named path is your worktree; otherwise leave that branch to its owning session. Session worktrees start detached on the baseline, so check out the experiment branch before editing.

Each experiment node has a local orx/<slug> branch. orx create-experiment creates it from its parent. Work in the session worktree, check out the printed branch, make only that experiment's change, and commit it:

git checkout orx/<slug>
git status --short
git add <changed files>
git commit -m "describe the experiment change"

The runner builds an immutable source archive from the recorded commit, so committed work is sufficient on every backend. Uncommitted files are never included in a run. Before launching, confirm git status --short is empty and inspect the recorded commit with git show --stat --oneline HEAD.

To compare a child with its parent, use local refs only:

git diff <parent-branch>...orx/<child-slug>
git log --oneline <parent-branch>..orx/<child-slug>

Once a run answers an experiment, its branch and history are immutable. Never merge or rebase it. To incorporate other work, create a child and put the merge commit on the child's branch. Never rebase experiment history; it records the exact code that ran.

Version History

  • 24e404e Current 2026-09-21 23:53

Same Skill Collection

agent-skills/orx-agent-delegation/SKILL.md
agent-skills/orx-compute/SKILL.md
agent-skills/orx-create/SKILL.md
agent-skills/orx-customize/SKILL.md
agent-skills/orx-evidence/SKILL.md
agent-skills/orx-experiment-tree/SKILL.md
agent-skills/orx-feedback/SKILL.md
agent-skills/orx-figures/SKILL.md
agent-skills/orx-instances/SKILL.md
agent-skills/orx-lit-review/SKILL.md
agent-skills/orx-logs/SKILL.md
agent-skills/orx-paper/SKILL.md
agent-skills/orx-reports/SKILL.md
agent-skills/orx-results/SKILL.md

Metadata

Files
0
Version
6285fee
Hash
81708b57
Indexed
2026-09-21 23:53

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-18 17:39
浙ICP备14020137号-1