Work 标志

Work

社区
OutThisLife
work

Kick off a task in a fresh isolated git worktree instead of the current checkout. Use when the user invokes /work (optionally with a slug or description) to start something new without touching their working tree.

概览

发布者OutThisLife
代码仓库brooklyn-skills
技能名称work
星标数
200
复刻数
6
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 OutThisLife 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Work AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/OutThisLife/brooklyn-skills/tree/main/skills/work
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OutThisLife/brooklyn-skills.git /tmp/brooklyn-skills
mkdir -p .claude/skills
cp -r /tmp/brooklyn-skills/skills/work .claude/skills/work
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Work,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Work。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Work 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

/work

/work [slug] is a declaration for this task: "spin up a dedicated worktree and do the work there." It applies to what the user is starting right now — it is not a standing rule that all work always happens in worktrees.

When invoked:

  1. Look at what the repo already does, and copy it.
  2. Create the worktree + branch and cd into it.
  3. Do the requested work there.

Work aimed at an issue ("if it's open and reproducible")

Do these in order before writing any fix:

  1. Load the repo's own gate skill first. If the repo has a deployment or brain skill (a <prefix>-repo skill, a triage/claim system), load it before searching. Its per-issue gates (claim, overlap check, side-effect screen, risk title, auto-merge classifier) apply to a single /work fix as much as to a sweep. Skipping them because the request said "/work" rather than "triage" is the failure: the PR ships without the risk and side-effect sections she expects, and can duplicate her own open PR.
  2. Find the issue. Search open and closed issues with several phrasings (gh issue list --state all --search "<q>"), plus in:title variants. A closed issue with a close-by-PR may already cover it. Check that before you call a newer report a duplicate.
  3. Look for a PR that already fixes it. Search with gh pr list --state all --search "<issue#>" and with keywords. Drafts count: a contributor can park a finished fix as a draft because of an open-PR cap. If a complete fix exists, salvage it (cherry-pick the commit so authorship is kept) instead of writing a parallel one. Check her own open PRs too (gh pr list --author @me --state open --json number,title,files,mergeable,autoMergeRequest), not only contributors': an armed-but-CONFLICTING PR of hers on the same function is live work. Fold both into ONE combined PR that supersedes them (cherry-pick what applies, port the rest by hand onto main's current file layout, keep every Co-authored-by), then disarm (gh pr merge N --disable-auto) and close the sources with a comment linking the replacement.
  4. Prove it red on the base. Apply only the tests first (gh pr diff <N> > f.diff && git apply --include='tests/*' f.diff), run them, and see them fail. Then remove the file and git cherry-pick the real commit, so the test file isn't left as an untracked conflict.
  5. Reproduce the user-visible path end to end. Run it on a detached base worktree and on the branch, and keep both outputs as before/after evidence for the PR body.
  6. Re-run any failures on the base worktree before calling them unrelated. "Fails identically on untouched base" is the claim to report.

Answer the "is it open / can it be repro'd" part first in the handoff, then the fix and the PR link.

Read the repo's conventions

bash
git worktree list                                   # sibling dirs + branches
git branch -a --sort=-committerdate | head -20      # branch prefix/slug pattern
git remote show origin | sed -n 's/.*HEAD branch: //p'   # default branch
  • Branch prefix — mirror the dominant one (e.g. <initials>/<slug>). None obvious → ask.
  • Worktree dir — mirror sibling naming/location (commonly <repo>-<short> next to the primary checkout). Short suffix ≠ full branch is fine.
  • Base — current default branch unless they name another.
  • Slug — from the /work argument, else the task description.

Create it

bash
repo="$(git rev-parse --show-toplevel)"
parent="$(dirname "$repo")"
default="$(git -C "$repo" remote show origin | sed -n 's/.*HEAD branch: //p')"
git -C "$repo" fetch origin "$default"
git -C "$repo" worktree add -b <prefix>/<slug> "$parent/$(basename "$repo")-<short>" "origin/$default"
cd "$parent/$(basename "$repo")-<short>"

Reuse a matching worktree/branch if one already exists — don't duplicate. Match how siblings handle node_modules / .venv / symlinks.

  • Never git stash in a worktree while other agents run: the stash list is shared repo-wide, so a pop can grab another worker's WIP. Commit WIP instead.

Then

  • Do the task in the worktree; never in the primary checkout, and never in another agent's worktree.
  • Never git stash in a worktree: refs/stash is shared by every worktree of the repo, so a parallel agent can pop your entry (or you pop theirs). To test against base, copy the file aside (git show HEAD:<path> > …) or use a throwaway worktree instead.
  • Every worker and subagent gets its own worktree, and the worktree path is in its instructions. Fixes use a bb/* branch. Verification, typecheck, and tests use a detached worktree at origin/<default>. When its lockfile matches the primary's, symlink every node_modules (root and workspace packages) to the primary's; install only on a lock change, after removing those links. Never edit, install, build, typecheck, or test in the primary checkout.
  • Prefer direct execution for focused fixes. Do not delegate routine sibling-path audits or cleanup; reserve subagents for substantial independent work that clearly saves time.
  • Default to pnpm for JavaScript package commands and install examples when the repository supports it. Respect an existing different package-manager/lockfile contract rather than introducing a second lockfile.
  • UI → ui-only + ui-system. Tests → whatever the repo uses.
  • When handing off, tell the user the worktree path and how to run it.
  • Ship → commit, push the branch, open a PR/MR to the default branch.
  • Cleaning up → offer to remove worktrees whose branch is already merged.
  • Reviewing an existing PR instead of new work → pr-triage.

常见问题

Work AI 技能有什么作用?

Kick off a task in a fresh isolated git worktree instead of the current checkout. Use when the user invokes /work (optionally with a slug or description) to start something new without touching their working tree.

为什么在 TypingMind 中使用 Work?

因为您只需安装一次,就能搭配任何模型使用。Work 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Work?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/OutThisLife/brooklyn-skills/tree/main/skills/work。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Work?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Work 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Work 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Work AI 技能免费吗?

是的。OutThisLife 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇