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-paper/SKILL.md
agent-skills/orx-reports/SKILL.md

Metadata

Files
0
Version
27cb342
Hash
81708b57
Indexed
2026-09-21 23:53

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 19:59
浙ICP备14020137号-1