Community生产力与协作github.com

mattpocock/交接

将当前对话压缩成一份交接文档,供其他代理接手。

交接 是什么?

mattpocock/handoff 是一款针对 AI 代理(如 Claude Code、Cursor、Codex)的技能,旨在将冗长的对话历史压缩为结构化的“交接文档”,使不同的代理或人类开发者能无缝接手任务。它自动从对话中提炼关键上下文、当前进度、未解决问题、技术决策和待办事项,并生成标准化的 Markdown 格式文档。该技能减少了重复解释背景的需要,避免了上下文丢失,特别适用于跨会话协作、代理切换或记录工作状态。使用时,它通过解析对话中的关键节点(如代码更改、错误、用户指令)来创建一份简洁的摘要,并包含可操作的下一步指引。支持自定义输出格式,并能与常见的 AI 开发工作流轻松集成。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mattpocock/skills/tree/main/skills/handoff

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

交接 是做什么的?

将当前对话压缩成一份交接文档,供其他代理接手。

概述

在长时间或复杂的开发会话中,上下文信息往往会丢失或变得难以管理。此技能可生成一份简洁的“交接文档”,其中包含:

  • 当前进度:已完成的步骤和当前状态。
  • 未解决问题:已知的错误、阻塞点或待决策事项。
  • 技术决策:关键的架构选择及其原因。
  • 待办事项:清晰、可执行的下一步操作。

使用方法

  1. 在对话即将结束时调用命令 /handoff。
  2. 技能自动分析会话历史。
  3. 生成 Markdown 格式的交接文档,可复制或保存。

示例输出

# 交接文档:项目 X 

## 当前状态
- 已实现用户认证流程。
- 数据库迁移待运行。

## 未解决问题
- 令牌刷新逻辑中的竞争条件。

## 待办事项
1. 运行 `npm run migrate` 以应用最新迁移。
2. 查看 `src/auth/token.js` 中的 `refreshToken` 函数。

支持平台

  • Claude Code
  • Cursor
  • Codex
  • 其他支持自定义技能的 AI 代理

配置

可通过设置环境变量 HANDOFF_OUTPUT_PATH 指定输出文件路径(默认为 ./handoff.md)。

许可证

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mattpocock/ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

mattpocock/caveman

Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.

mattpocock/claude-handoff

Hand the current conversation off to a fresh background agent that picks up the work immediately.

mattpocock/codebase-design

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

mattpocock/design-an-interface

Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

mattpocock/diagnose

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

mattpocock/diagnosing-bugs

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

mattpocock/domain-modeling

Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

mattpocock/edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

mattpocock/git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

mattpocock/grilling

Grill the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.

mattpocock/grill-me

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

mattpocock/grill-with-docs

Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

mattpocock/implement

Implement a piece of work based on a PRD or set of issues.

mattpocock/implement-spec

Implement a specification in code.

mattpocock/improve-codebase-architecture

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

mattpocock/loop-me

Grill me about specs for the workflows I want to build, within this workspace.

mattpocock/migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

mattpocock/obsidian-vault

Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.

mattpocock/prototype

Build a throwaway prototype to flesh out a design — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.

相关技能