orx-git

GitHub

管理实验代码的Git操作,包括读写、提交和对比。协调共享工作树以保留分支历史,防止会话冲突,确保运行使用不可变的提交记录,支持实验节点的创建与版本控制。

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

触发场景

开始实验前检查工作树状态 编辑并提交实验代码变更 对比子节点与父节点的差异 诊断或修复临时节点

安装

npx skills add alphaXiv/OpenResearch --skill orx-git -g -y
更多选项

非标准路径

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

不安装直接使用

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.

版本历史

  • 24e404e 当前 2026-09-21 23:53

同 Skill 集合

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-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

元信息

文件数
0
版本
24e404e
Hash
81708b57
收录时间
2026-09-21 23:53

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 05:42
浙ICP备14020137号-1