AgentSkillsCN

aide-handoff

为基于 AIDE 的仓库生成会话交接说明。当用户输入 `/handoff` 或请求为上下文重置而总结当前状态时使用。默认情况下,该功能不会写入任何文件,直接输出可供 PR 或议题评论使用的交接内容。

SKILL.md
--- frontmatter
name: aide-handoff
description: Generate a session handoff note for AIDE-based repos. Use when the user types /handoff or asks to summarize current state for a context reset. Outputs a PR/issue-comment-ready handoff (no file writes by default).

AIDE Handoff

Overview

Produce a concise, structured handoff note using the AIDE template so another session/agent can resume without re-reading deep context.

Workflow

1) Locate repo root

  • Walk up from current working directory until AGENTS.md is found.

2) Load the handoff template

  • Prefer .aide/docs/core/SESSION_HANDOFF.template.md if it exists in the repo.
  • If missing, fall back to the built-in template structure from this skill.

3) Ask for missing fields (if not provided)

  • Current stage
  • Branch
  • PR link (or not created yet)
  • Completed / In Progress / Blockers / Next Actions / Validation

4) Output (<=20 lines when possible)

  • Print the handoff note ready for a PR/issue comment.
  • Do not write files by default.

Notes

  • Prefer PR/issue comments over committing handoff files.
  • If the user explicitly requests a file, write it to a local, ignored path (e.g., docs/handoffs/).

Posting (Optional)

This skill can optionally post the handoff directly via GitHub CLI:

  • PR comment: scripts/handoff.ps1 -Post -Pr <number> [-Repo owner/repo]
  • Issue comment: scripts/handoff.ps1 -Post -Issue <number> [-Repo owner/repo]