Logo Pause

Pause

Tổ chức
onebrain-ai
pause

Save a snapshot of long-running work mid-flight to resume later in a future session. Use when user signals they need to pause a long task and continue another time — 'pause this work', 'หยุดก่อน', 'พักงานนี้ก่อน', 'พักไว้ก่อน', 'step away', 'ทิ้งงานไว้ก่อน', 'ค่อยมาทำต่อ'. Writes a snapshot to 07-logs/pause/ but does NOT end the session or clear context. Do NOT use for: ending a session (use /wrapup), capturing a single idea (use /capture), saving a memory (use /learn).

Tổng quan

Nhà phát hànhonebrain-ai
Kho mãonebrain
Tên kỹ năngpause
Sao
31
Bản fork
3
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được onebrain-ai công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Pause trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/pause
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/onebrain-ai/onebrain.git /tmp/onebrain
mkdir -p .claude/skills
cp -r /tmp/onebrain/.claude/plugins/onebrain/skills/pause .claude/skills/pause
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Pause trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Pause ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Pause không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

/pause — Save Long-Task Snapshot (TL;DR)

Writes a per-thread snapshot of the current work to [logs_folder]/pause/ so the next session can /resume and pick up seamlessly. Multiple pause files accumulate across days for the same task; /wrapup later consolidates them all into one session log.

Mental model: /pause = SAVE snapshot. It does NOT end the session and does NOT clear context. User runs /clear manually when ready to free context.


Scope

  • /pause writes pause snapshot files only. It does NOT touch checkpoints, session logs, MEMORY.md, or memory/ files.
  • It DOES update the pointer file [logs_folder]/pause/_active.md to set/confirm the active thread slug.

Step 1: Determine Active Thread Slug

  1. Read [logs_folder]/pause/_active.md if present. The file is plain text — one line — containing a kebab-case slug.
  2. If the file exists and is non-empty: use that slug as active_slug.
  3. If absent / empty:
    • Agent reviews session context → propose a kebab-case slug from the dominant topic (e.g. cli-refactor, oracle-borrows)
    • Use AskUserQuestion to confirm. Question: "Active thread name? Suggested: <proposed-slug>" with options: (a) accept suggestion, (b) type a different slug
    • On confirmation, set active_slug = <chosen> and continue
  4. If /pause --task=<slug> was invoked with an explicit slug:
    • If <slug> is not plain kebab-case (lowercase letters, digits, hyphens only — reject anything with glob or path characters like *, ?, [, /) → abort with message "⚠️ Invalid thread name <slug>. Active thread unchanged." Slugs become filenames and glob patterns; never accept an unvalidated one.
    • If _active.md is empty or contains the same slug → set active_slug = <slug>, skip warning
    • If _active.md contains a different slug → use AskUserQuestion: "⚠️ Active thread: <existing> (N unmerged snapshots). Switch to <new>? (y/N)". On y → set active_slug = <new>. On n → abort silently with message "Pause aborted — active thread unchanged."

Step 2: Compute Next NN

  1. Glob [logs_folder]/pause/*-{active_slug}-pause-*.md (no date filter — NN is scoped to slug across all dates).
  2. Parse the NN segment (the two-digit number before .md) from each filename.
  3. next_nn = max(NN parsed) + 1. If no files → next_nn = 01. Always zero-pad to 2 digits.

Step 3: Generate Snapshot Content

Review the current conversation since the last pause file of active_slug (or since session start if none). Fill the body sections following skills/startup/references/session-formats.md → Pause File Format.

Required sections (in order):

  • ## Where I Stopped — 1–2 sentences: file being edited, decision pending, last test run, current focus
  • ## Resume With — one concrete next action: specific file path, command, decision point. Must be actionable as the FIRST thing on resume
  • ## What We Worked On — 2–3 sentences describing the pause-interval's focus
  • ## Key Decisions — bullet list (every unique decision since last pause, full detail)
  • ## Insights & Learnings — omit if none
  • ## Action Items — - [ ] task 📅 YYYY-MM-DD format
  • ## Open Questions — omit if none

Word cap: 350 words total. Preservation rule: every unique decision/action/question since last pause MUST appear — deduplication only, no summarization.


Step 4: Write the Pause File

  1. Today's date as YYYY-MM-DD.

  2. Ensure directory exists: mkdir -p [logs_folder]/pause/

  3. Get session_token from agent context.

    • Claude: if missing, recover it with the resolve-only verb — run ONEBRAIN_HOOK_SESSION_ID="$CLAUDE_CODE_SESSION_ID" "{resolved executable}" session token --json and read session_token from its JSON. Use session token, not session init, here: this is mid-session recovery, and session init deletes the Stop-hook cadence state file whenever it runs mid-session, while session token touches no state files. ONEBRAIN_HOOK_SESSION_ID is the resolver's top-priority layer and applies the same sha256[..16] derivation the Stop hook applies to CLAUDE_CODE_SESSION_ID, so the recovered value provably equals the token the Stop hook incremented.
    • Codex and Gemini: SessionStart injects the token; if missing, do not run session init to mint a replacement — a terminal- or process-derived token could merge another chat's snapshots.

    If no token is available after applying the rule above: abort the write. Do NOT proceed to Step 5. Output: ⚠️ Could not determine session token. Snapshot not saved — try again or run /doctor.

  4. Write to [logs_folder]/pause/YYYY-MM-DD-{active_slug}-pause-{next_nn}.md:

yaml
---
tags: [pause, session-log]
date: YYYY-MM-DD
session_token: <token>
task_slug: <active_slug>
pause: <NN>
trigger: manual
---

Followed by the body sections from Step 3.

If the file write fails (disk full, permission denied, etc.): abort the skill. Do NOT proceed to Step 5 (do not update _active.md — that would create an instant orphan pointer). Output: ⚠️ Snapshot failed to save — check disk space or file permissions. Active thread unchanged.


Step 5: Update Active Pointer

Write [logs_folder]/pause/_active.md with a single line: the active_slug value (no trailing newline issues — overwrite is idempotent if slug already matches).


Step 6: Confirm

Output exactly this format (Capture profile — 1 confirmation block, no elaboration):

💾 Snapshot saved: 07-logs/pause/YYYY-MM-DD-{slug}-pause-NN.md
📂 Active thread: {slug} (N snapshots)

คุยต่อได้เลย — ยังไม่ตัด context.
พิมพ์ /clear เมื่อพร้อมพักงาน (snapshot จะรอ session ถัดไป)

Where N = next_nn from Step 2 (the total snapshot count for this thread including the one just written).


Auto-Finalize (Called by AUTO-SUMMARY and /wrapup "n" branch)

When AUTO-SUMMARY or /wrapup "n" branch needs to finalize an active thread before writing a daily session log, it calls into this skill's auto-finalize path. "Latest pause file" throughout this section means the file with the highest NN for the slug, tiebreak date prefix descending (same rule as /resume Step 2) — never file mtime, which sync tools rewrite. Four skip conditions — if ANY is true, skip:

  1. No-activity: Glob [logs_folder]/checkpoint/*-{current_session_token}-checkpoint-*.md — if empty, the session produced no work; skip.
  2. Already-captured-this-session: Find the latest pause file of active_slug. If its frontmatter session_token equals current session token AND no checkpoint file mtime > pause file mtime, the current session's work is already captured by an earlier /pause; skip.
  3. No-pause-files-and-untouched: If no pause file exists yet for active_slug AND the newest checkpoint mtime is older than _active.md mtime, the slug was set but no thread activity occurred; skip.
  4. Thread-untouched: Skip if this session did no work on the thread after the thread's latest pause file was written (if the slug has no pause files: at any point this session). "No work on the thread" requires ALL of the following after that point: the session did not /resume this slug, AND none of the session's checkpoint or conversation content relates to the thread's topic. Judge from the session's checkpoint files ([logs_folder]/checkpoint/*-{current_session_token}-checkpoint-*.md) — they survive context compaction; never judge from the visible conversation tail alone. Typical trigger: the thread's latest snapshot carries another session's session_token and this session worked only on unrelated topics — auto-finalizing would append that unrelated work into the thread's snapshot series and corrupt /resume. A session that resumed or continued the thread and ended without an explicit /pause does NOT match this condition — capturing that continuation is exactly what auto-finalize exists for.

If not skipped: run Steps 2–5 above, but in Step 4 frontmatter use trigger: auto-finalize instead of manual, and in Step 3's ## Where I Stopped prepend "Auto-finalized at session end. " to the human-readable text.

No Step 6 confirm — auto-finalize is silent.

Câu hỏi thường gặp

Kỹ năng AI Pause làm được gì?

Save a snapshot of long-running work mid-flight to resume later in a future session. Use when user signals they need to pause a long task and continue another time — 'pause this work', 'หยุดก่อน', 'พักงานนี้ก่อน', 'พักไว้ก่อน', 'step away', 'ทิ้งงานไว้ก่อน', 'ค่อยมาทำต่อ'. Writes a snapshot to 07-logs/pause/ but does NOT end the session or clear context. Do NOT use for: ending a session (use /wrapup), capturing a single idea (use /capture), saving a memory (use /learn).

Vì sao nên dùng Pause trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Pause là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Pause trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/pause. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Pause?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Pause với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Pause với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Pause có miễn phí không?

Có. Kỹ năng này được onebrain-ai phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇