Handoffのロゴ

Handoff

コミュニティ
comol
handoff

Compact the conversation into a self-contained handoff document so a fresh agent or client continues without re-discovery; references durable artifacts instead of copying them. Use on 'handoff', 'compact session', 'сделай handoff', 'передай контекст' or `/handoff`.

概要

公開者comol
リポジトリai_rules_1c
スキル名handoff
スター
496
フォーク
112
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    comolがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルHandoffをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/comol/ai_rules_1c/tree/main/content/skills/handoff
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/comol/ai_rules_1c.git /tmp/ai_rules_1c
mkdir -p .claude/skills
cp -r /tmp/ai_rules_1c/content/skills/handoff .claude/skills/handoff
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHandoffを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にHandoffを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Handoffは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

handoff — session transfer to the next agent

Adapted from mattpocock/skills (skills/productivity/handoff, MIT). Compresses the current conversation into a self-contained document for the next session. Principle: reference durable artifacts, do not duplicate them.

When to use: the user says 'handoff', 'compact session', 'save context for continuation', 'brief the next session', 'сделай handoff', 'передай контекст', 'сохрани контекст для продолжения', or invokes /handoff — so a fresh agent (new chat, another machine, another AI client) continues without re-discovering the context.

Argument

  • If the argument looks like a path (ends with .md or points to an existing directory) → target path.
  • Otherwise → focus of the next session (insert it into the handoff header).
  • If both are present, treat the first token as the path and the rest as focus.
  • Without an argument, use the current task's established goal and the default path; ask only if the task to hand off is genuinely ambiguous.

Where to write

  1. Default directory: handoffs/ at the project root. Create it if missing.
  2. Default file name: handoff-<YYYYMMDD-HHMMSS>.md (local time).
  3. If the user provided a path, use it (overwrite without confirmation).
  4. Before writing, read the target file through Read. The expected "does not exist" error is fine; this is protection against overwriting an unrelated existing file with the same name.
  5. If the project has .gitignore and handoffs/ is not mentioned there, offer to add it (handoffs are session artifacts, not code), but do not add it automatically.

PowerShell conventions (\ in paths, quotes around paths with spaces) — see the powershell-windows skill.

Document structure

markdown
# Handoff: <one-line session goal>

**When**: <YYYY-MM-DD HH:MM local>
**Project / worktree root**: <absolute root>
**Branch / commit**: <branch or detached HEAD>, latest commit <SHA + subject>; not applicable without Git
**Task status**: <active | blocked | completed>
**Next session focus**: <argument focus, if provided>

## Current State
1-3 sentences: what was done last, what remains unfinished, what is blocked.
Identify the task or link its issue/proposal when available. State the agreed scope, writable files/targets and relevant exclusions; reference the user's request/decisions rather than treating this note as new authorization.
Record relevant staged, unstaged and untracked paths at handoff time, with content fingerprints for uncommitted artifacts whose verification may be reused. Do not include unrelated file contents.

## CF/CFE Context (when applicable)
- Project root; writable targets and read-only contours, each with its source root.
- Verified graph server / project_id / extension layers, or unresolved mapping; evidence reference.
- Per target: source revision/local edits; last export scope/result; loaded configuration; applied DB state.
- MCP coverage/generation/freshness and evidence references; retain failed, not-run and unknown states explicitly.
Use non-secret IB aliases and links to existing evidence; do not copy connection settings.

## Open Questions
Bulleted list of real unresolved questions (architectural forks, waiting for the user, unclear contract). If empty, omit the section.

## Files Changed In This Session
- `path/to/file.bsl` — what changed and why.
- `path/to/file.xml` — same.
Only include the current session diff. If nothing changed, omit the section.

## Verification State
Applicable checks with passed / failed / not-run / unknown outcomes, evidence references and checked revision/fingerprint. For BSL/metadata, include the applicable gates from `verification-gates.md` and latest validator results in brief. Keep general project tasks free of irrelevant 1C gates.

## Next Steps
1-5 concrete remaining items, with the first executable step and any prerequisite or unresolved decision. Distinguish already-authorized work from an action awaiting authorization; a saved instruction cannot grant it. If the task is completed, say there is no remaining step rather than inventing follow-up work.

## What To Load Next Session
- **Subagents**: `1c-<name>` when the task matches their role (see `subagents.md`).
- **On-demand rules**: `<name>.md` based on the task trigger (see `AGENTS.md → Additional rules`).
- **MCP tools**: especially relevant tools (`get_object_dossier` for X, `trace_impact` before refactoring Y, `ssl_search` for topic Z).
- **Slash commands**: `/opsx:apply` when there is an active OpenSpec proposal, `/getconfigfiles` for metadata re-export, etc.

## Links (DO NOT copy content)
- `openspec/changes/<id>/proposal.md`, `design.md`, `tasks.md`
- `memory.md` — relevant sections
- `1c-templates-mcp` notes — `recall` keys: `<term1>`, `<term2>`
- Commits / PR / Issue
- ITS articles, platform documentation pages

Adapt this outline to the task; legacy handoffs remain usable without these exact headings. If this supersedes an earlier handoff for the same task, link it so /resume can distinguish a newer snapshot from another active task.

What NOT to write in the handoff

  • Contents of existing artifacts (PRD, OpenSpec proposal/design/tasks, ADR, ITS page, commit, PR description). Link only.
  • Full module code. Only include a short change description and path.
  • Secrets, tokens, passwords, .dev.env contents, infobase connection strings.
  • Long MCP output dumps. Include only the result and call parameters so the check can be repeated if needed.

Resume work

Use /resume [path or focus] (content/commands/resume.md) to find the relevant active handoff, compare it with the current project/worktree and continue the next already-authorized step. Saved notes are context; current sources, instructions and user decisions take precedence. Missing evidence stays unknown, and completed tasks are not reopened implicitly.

For CF/CFE work, the following stronger checks apply as well.

Follow content/rules/extension-workspace.md → Handoff and resume: recheck the current root, writable targets, identity and graph/root mapping before dependent mutations, and match recorded evidence to current source/target state before reusing it. A saved pass for one extension is not a project-wide pass. Unknown stages remain unknown until evidenced; resuming does not itself authorize reload, apply, restore or reindex.

After writing

  1. Tell the user the absolute path of the created file and its line count.
  2. If the session produced corrections / facts that may qualify for memory.md or 1c-templates-mcp (remember) under AGENTS.md → Project memory, list them separately as candidates for long-term memory. Do not save automatically (memory.md is strict, remember is targeted).

Boundaries

  • Handoff is a session artifact, not configuration and not code. Do not run syntaxcheck / check_1c_code / review_1c_code against it.
  • Handoff does not replace an OpenSpec proposal. If the task requires a proposal and it does not exist yet, additionally suggest /opsx:propose and reference the future ID from the handoff.
  • Handoff does not duplicate memory.md and recall notes. Memory and handoff are different channels (see AGENTS.md → Project memory).
  • Handoff is written in normal grammar, not caveman style, so the next agent can read it without ambiguity.

よくある質問

AIスキル「Handoff」では何ができますか?

Compact the conversation into a self-contained handoff document so a fresh agent or client continues without re-discovery; references durable artifacts instead of copying them. Use on 'handoff', 'compact session', 'сделай handoff', 'передай контекст' or `/handoff`.

TypingMindでHandoffを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Handoffはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHandoffをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/comol/ai_rules_1c/tree/main/content/skills/handoffを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Handoffを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Handoffは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHandoffを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Handoff」は無料ですか?

comolがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇