上下文工作区提交与推送
offload-context
卸载上下文(Offload context):commit 当前分支的 context worktree,并将该分支 push 到团队远程仓库。当用户想要 offload(卸载)、publish(发布)或 sync(同步)context/ADRs 时使用。不是合并到主干(trunk,那是 merge-context),当仓库将 context 保存在仓库内时完全跳过。这是工作流的最后一步(grill-with-docs → to-spec → to-tickets → implement → offload-context)。
- License 许可
- MIT
- 所属仓库
- epr3/dotfiles
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- offload-context
- description
- Offload context: commit this branch's context worktree and push the branch to the team remote. Use when the user wants to offload, publish, or sync context/ADRs. Not a merge into trunk (that is merge-context), and skipped entirely when the repo keeps context in-repo. Final step of the workflow (grill-with-docs → to-spec → to-tickets → implement → offload-context).
- argument-hint
- (optional) --check to preview the worktree's uncommitted context
- disable-model-invocation
- true
02 资源文件 1
- 脚本offload-context.sh1.9 KB
03 SKILL.md 正文
Offload Context
Resolve the context store first: GLOSSARY-FORMAT.md → Resolving the context store. In-repo context → this skill is a no-op; say so and stop.
Under a context repo it commits this branch's context worktree and pushes the branch to the team remote. It does not merge into trunk: that stays your deliberate git merge in the context repo, followed by merge-context to reconcile the glossary (rebase-context when a branch's base has moved).
Process
1. Check
Run <skill-dir>/offload-context.sh --check with cwd inside the code repo (<skill-dir> = this skill's folder). It prints the context worktree's uncommitted context (git status). Clean -> report "nothing to offload", stop.
2. Present
Summarise what will be committed (new / changed GLOSSARY.md, ADRs, map), then get explicit confirmation before pushing; offload now, or cancel.
3. Apply
Run <skill-dir>/offload-context.sh (no flag; same cwd: the code repo): it commits the context worktree (context: <branch>) and pushes the branch to the team remote.
4. Done
Report: committed + pushed on branch <branch> in the context repo, and that the context trunk stays unchanged until you reconcile it deliberately.
Notes
- A separate skill you invoke; not auto-run by
implement.
04 同仓库更多 Skills
智能体技能文档编写
writing-for-agents
为智能体编写文档。在创建或编辑技能(skill),或修改 AGENTS.md、CLAUDE.md 时使用。
交互式 Bash 向导生成
wizard
生成交互式 bash 向导,引导人类逐步完成只有本人才能执行的步骤。适用于配置基础设施、设置凭证或 CI 密钥、熟悉陌生的第三方仪表板,或执行一次性迁移/切换。不要将其用于智能体自身即可执行的步骤。
大型任务决策规划
wayfinder
将大量工作(超出单个 agent 会话可承载的范围)规划为问题跟踪器上的决策工单共享地图,并逐个解决,直到通往目标的路径清晰明了。
重述上一条消息
wait-what
停。上一条消息没有被理解:重新表述它。
工单与 PR 分诊
triage
让问题和外部 PR 经过分诊角色的状态机流转,进行分类、验证,必要时深入质询,并编写可供 agent 直接使用的简报。
计划拆解为工单
to-tickets
将计划、规格说明或当前对话拆分为一系列环环相扣的工单,每个工单声明其阻塞依赖关系,并发布到配置的跟踪器(本地以文本形式记录在每个工单一个文件中,或在真实跟踪器上使用原生阻塞链接)。