worktree SKILL.md skillA

worktree from lixiuxiu559/agentforge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add lixiuxiu559/agentforge/worktree@git:20261030.ed65f43

Pins git:20261030.ed65f43 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
lixiuxiu559/agentforge
Path
skills/worktree/SKILL.md
Versions recorded
4
Latest version
git:20261030.ed65f43, committed Oct 30, 2026
First version recorded
Sep 22, 2026
Size
5,262 bytes
Repository stars
4
License
MIT

创建和删除 Git worktree,目录固定在目标项目根的 worktree/ 下并保留分支层级。add 从本地或远端基线创建新分支;remove 移除工作树并保留分支。用户要求创建、删除 worktree 时使用,不负责恢复已有分支或推送。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Worktree 管理

```text
/agentforge:worktree add dev feature/login
/agentforge:worktree remove feature/login
```

add 接受 from、新分支两个参数;remove 接受一个分支参数,动作不可省略。不接受目录参数,目标固定为 `<项目主工作树根>/worktree/<分支>/`,如 `worktree/feature/login/`。

## 公共规则

- 用 `git -C "<目标项目目录>" worktree list --porcelain` 确定主工作树根 `$root`;在 linked worktree 中调用也使用该根,不使用技能安装目录或当前 shell 目录。裸仓库不支持。之后所有仓库命令都显式写 `git -C "$root"` 或 `git -C "$target"`,不依赖当前工作目录。
- 校验动作、参数数量及分支名:用 `git check-ref-format "refs/heads/$branch"`,拒绝以 `-` 开头的名称,不展开 checkout 简写。远端名来自仓库配置,同样视为不可信:必须精确出现在 `git -C "$root" remote` 的输出中,且不能以 `-` 开头、不能含空白或控制字符,否则停止并报告。命令参数安全传递,shell 变量始终引用,远端名放在 `--` 之后,防止被 Git 解析为选项。
- 目标必须在根 `worktree/` 内,目标和父路径不能经过符号链接、嵌入另一工作树或独立仓库。
- 旧 `.worktree/` 中的工作树不自动迁移或删除;remove仅核对新约定路径,旧路径另有登记时报告实际位置,不把同名目录当作目标。
- 使用原生 Git,不要求当前分支为 dev。不切换分支、不自动暂存、提交、stash、推送、删除分支或安装依赖。
- 检查失败就停止并报告实际状态;不把查询失败当作不存在,不自动覆盖、解锁、prune 或清理残留。强制删除必须先说明具体数据风险并获得用户对本次丢弃的明确同意。

## add

1. **选择来源**:询问 from 使用本地还是远端;对话已明确时不重复询问。默认远端为 origin,没有 origin 时使用唯一远端,存在多个则补问;选定后按公共规则校验远端名。无远端或无法查询就停止,即使 from 选择本地也要检查远端重名。
2. **锁定基线**:本地用 `git -C "$root" rev-parse --verify --end-of-options "refs/heads/$from^{commit}"` 解析;远端先获取指定分支,再解析远端跟踪引用,记录完整 OID。例如:
   ```bash
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add lixiuxiu559/agentforge/worktree@sha256:41c00aa6009df6e1

The line at the top of this page pins the label git:20261030.ed65f43, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mksdhyac74qalqjk.svg)](https://markdownregistry.com/a/art_mksdhyac74qalqjk)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Sep 22, 2026 and Oct 30, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261030.ed65f43 latest2026-10-30 ed65f43 5,262 BA view · diff
git:20261029.8c195f52026-10-29 8c195f5 4,726 BA view · diff
git:20261028.42f4dae2026-10-28 42f4dae 4,559 BA view · diff
git:20260922.c2d70a52026-09-22 c2d70a5 3,996 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5262 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

lixiuxiu559/agentforge · 4 stars · license MIT · pushed 2026-10-31 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mksdhyac74qalqjk
GET https://markdownregistry.com/api/v1/resolve?ref=lixiuxiu559/agentforge/worktree
GET https://markdownregistry.com/api/v1/blob/41c00aa6009df6e1c5239569bfbbb9f1c1a684830429e48dcdf99533766e0961

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from lixiuxiu559/agentforge

AGENTS.md AGENTS.md file
lixiuxiu559/agentforge · AGENTS.md
git:20261031.86f03d1 · audit A · 4 stars
architecture-design SKILL.md skill
lixiuxiu559/agentforge · skills/architecture-design/SKILL.md · 将需求、原型或明确技术问题转为完整的系统设计,默认交付含可见图示的 HTML。比较可行方案并由用户决定关键取舍,再完成整体与必要专项设计、风险验证和一致性复核;复杂专项可委派子…
git:20261030.1326a85 · audit A · 4 stars
architecture-scout SKILL.md skill
lixiuxiu559/agentforge · skills/architecture-scout/SKILL.md · 仅在用户明确要求架构机会调查时使用。调查值得深化的模块边界、跨模块修改的根因和难测试的结构;只报告,不修改代码,允许零候选。
git:20260929.5c4b103 · audit A · 4 stars
bug-debugging SKILL.md skill
lixiuxiu559/agentforge · skills/bug-debugging/SKILL.md · 针对具体错误、失败测试、偶发异常或性能回归定位根因,并在用户确认修复方案后实施修复。适用于“排查这个 bug”“为什么这里失败”“修好这个异常”;不用于泛泛讲解报错含义、无具体症状的全仓找 bug 或仅评审 diff。
git:20260930.d24348c · audit A · 4 stars
complexity-audit SKILL.md skill
lixiuxiu559/agentforge · skills/complexity-audit/SKILL.md · 代码复杂度风险审计能力。当需要评估函数是否难以安全修改、分析复杂度与测试覆盖率、定位高 CRAP 值方法,或执行 Java、Python、Go、JavaScript、TypeScript 复杂度体检时使用。该能力只生成审计报告,不修改代码。
git:20260928.1f1d004 · audit A · 4 stars
diff-review SKILL.md skill
lixiuxiu559/agentforge · skills/diff-review/SKILL.md · 三轴代码评审。沿 Correctness(有 bug 吗)、Standards(符合本仓库文档化的编码规范吗)、Spec(忠实实现原始需求吗)三条轴评审一个 diff,各轴独立报告、不合并、不重排。当用户要求评审改动、做提交前审查、找…
git:20260929.9c61219 · audit A · 4 stars
implementation-workflow SKILL.md skill
lixiuxiu559/agentforge · skills/implementation-workflow/SKILL.md · 实施编排工作流。当用户要求实现功能、修复 Bug、重构代码、补充测试、拆分开发任务、并行编码或按质量门完成开发时使用。负责评估任务、拆分依赖、调度实施子任务,并按风险选择性调用 diff-review…
git:20261030.1326a85 · audit A · 4 stars
mutation-testing SKILL.md skill
lixiuxiu559/agentforge · skills/mutation-testing/SKILL.md · 通过项目已有突变测试工具审计现有测试能否发现代码逻辑错误。用户要求运行突变测试、分析存活突变体或无覆盖突变体时使用。支持 Java、Python、Go、JavaScript、TypeScript;只报告,不修改代码或测试。业务测试用例设计与…
git:20261009.171c8e9 · audit A · 4 stars
pm SKILL.md skill
lixiuxiu559/agentforge · skills/pm/SKILL.md · 将产品想法或需求变更整理为可评审、可验证的 PRD,默认交付便于阅读的 HTML 文件。当用户要求撰写或完善 PRD、梳理需求、明确业务规则、范围、用户故事或验收标准时使用。只澄清影响业务规则、范围或验收的缺口;需求明确时直接产出。只交付需…
git:20261029.640ec95 · audit A · 4 stars
prototype SKILL.md skill
lixiuxiu559/agentforge · skills/prototype/SKILL.md · 将 PRD 或明确的页面需求转为可走查的 HTML 原型与页面、字段、交互状态清单。当用户要求画原型、设计页面、制作 mockup 或修改已有原型时使用;只交付原型设计,不实施生产前端、设计 API 或部署。
git:20261029.640ec95 · audit A · 4 stars
research SKILL.md skill
lixiuxiu559/agentforge · skills/research/SKILL.md · 对需要多步取证、交叉验证或比较分析的问题开展系统调查,形成有证据支持的结论。适用于跨模块行为调查、版本差异分析、技术方案比较及存在多种解释的疑难问题。不用于简单事实查询、定位符号或配置、单次文档查阅,以及其他技能中的常规信息确认。
git:20261023.3bafb01 · audit A · 4 stars
test-design SKILL.md skill
lixiuxiu559/agentforge · skills/test-design/SKILL.md · 独立基于业务规则和可用材料设计测试用例、评估场景与断言缺口,默认交付便于阅读的 HTML 测试设计。适用于开发前的用例设计、检查已有用例遗漏和评估业务场景覆盖;不要求已有架构方案,不编写或执行测试,不运行覆盖率/突变工具或诊断修复失败。
git:20261029.640ec95 · audit A · 4 stars

Every file in lixiuxiu559/agentforge

Other files named worktree

worktree SKILL.md skill
imran31415/kube-coder · .claude/skills/worktree/SKILL.md · Create an isolated git worktree + branch + port for this session so concurrent kube-coder sessions and builds don't…
git:20260926.e57a6cf · audit A · 401 stars
worktree SKILL.md skill
shibing624/agentica · agentica/skills/bundled/worktree/SKILL.md · Isolate parallel work in a git worktree of the current repository (worktree tool: status / new / merge / remove). Use…
v2.1 · audit A · 359 stars
worktree SKILL.md skill
oprogramadorreal/optimus-claude · skills/worktree/SKILL.md · Creates a git worktree for isolated parallel development — new branch in a separate directory with project setup and…
git:20260924.6e7f925 · audit B · 75 stars
worktree SKILL.md skill
jantichy/claude · skills/worktree/SKILL.md · Skill se použije, když uživatel zadá "/worktree", "/worktree enable", "/worktree disable", "/worktree status", nebo…
git:20261007.55ccadb · audit A · 45 stars
worktree SKILL.md skill
outlinedriven/odin-claude-plugin · plugins/odin-git/skills/worktree/SKILL.md · Use when work needs an isolated git worktree: new work, an existing ref, a gated feature workspace, a manifest-tracked…
git:20260912.eaa5f2e · audit A · 40 stars
worktree SKILL.md skill
hidorakai002/ai-workspace-archive · ai_agent_frameworks/major_frameworks/AutoGPT/.claude/skills/worktree/SKILL.md · Set up a new git worktree for parallel development. Creates the worktree, copies .env files, installs dependencies, and…
v3.0.0 · audit A · 38 stars
worktree SKILL.md skill
byerlikaya/claude-starter-kit · kit/skills/worktree/SKILL.md · Isolate risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are…
git:20260926.aaa5dbc · audit A · 26 stars
worktree SKILL.md skill
byerlikaya/claude-starter-kit · plugin/skills/worktree/SKILL.md · Isolate risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are…
git:20260926.aaa5dbc · audit A · 26 stars

Browse by kind, by grade A, or by owner.