Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问clear审计通过

session-continuation会话继续

Agent Skill

session-continuation 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

247

周安装

10

GitHub Stars

17

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:session-continuation(会话继续)
来源仓库:https://github.com/nguyenthienthanh/aura-frog
仓库路径:skills/session-continuation
安装命令:
npx skills add https://github.com/nguyenthienthanh/aura-frog --skill session-continuation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/nguyenthienthanh/aura-frog --skill session-continuation

简介

session-continuation 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Session Continuation

Purpose: Manage workflow state across sessions with handoff and resume Priority: HIGH


Plan State Variables

state_vars[4]{var,purpose,persistence}:
  AF_ACTIVE_PLAN,Current active plan path,Session temp file
  AF_SUGGESTED_PLAN,Branch-matched plan hint,Inferred from git branch
  AF_COMPLEXITY,Auto-detected task complexity,Session memory
  AF_ACTIVE_AGENTS,Currently active agents,Session memory

When This Skill Activates

triggers[5]{trigger,action}:
  Token 150K (75%),Suggest handoff
  User says handoff/save,Execute handoff
  User says resume + ID,Execute resume
  Session ending,Auto-save state
  Incomplete workflow,Prompt to resume

Handoff Flow

Step 1: Detect Need for Handoff

Triggers:
  - Token count: >= 150,000 (75% of 200K limit)
  - User request: "handoff", "save", "pause"
  - Long workflow: Phases 1-2 complete, starting Phase 3

Auto-prompt:
  "⚠️ Token usage is at 75%. Would you like to save workflow state for continuation in a new session?"

Step 2: Save Workflow State

State File Location: .claude/logs/workflows/[workflow-id]/workflow-state.json

State Content:

{
  "workflow_id": "AUTH-123",
  "version": "1.0.0",
  "created_at": "2025-11-29T14:30:22Z",
  "updated_at": "2025-11-29T16:45:30Z",
  "status": "paused",

  "current_phase": 3,
  "current_sub_phase": null,
  "phase_name": "Build GREEN",

  "task": {
    "description": "Implement user authentication with JWT",
    "ticket_id": "PROJ-1234",
    "figma_url": null
  },

  "agents": {
    "primary": "architect",
    "secondary": ["security", "tester"]
  },

  "phases_completed": {
    "1": {
      "name": "Understand + Design",
      "status": "approved",
      "deliverables": ["requirements.md", "tech-spec.md", "architecture.md"],
      "approved_at": "2025-11-29T14:45:00Z"
    },
    "2": {
      "name": "Test RED",
      "status": "approved",
      "deliverables": ["test-plan.md", "failing-tests"],
      "approved_at": "2025-11-29T15:30:00Z"
    }
  },

  "context": {
    "project_name": "my-api",
    "tech_stack": "Node.js, Express, PostgreSQL",
    "test_framework": "Jest",
    "key_decisions": [
      "Using JWT with refresh tokens",
      "Storing sessions in Redis",
      "bcrypt for password hashing"
    ],
    "blockers": [],
    "notes": "User prefers functional approach over classes"
  },

  "token_usage": {
    "at_handoff": 152340,
    "estimated_remaining": 47660
  }
}

Step 3: Generate Handoff Summary

Output to User:

═══════════════════════════════════════════════════════════
🔄 WORKFLOW HANDOFF COMPLETE
═══════════════════════════════════════════════════════════

📋 **Workflow ID:** AUTH-123

📊 **Progress:**
- ✅ Phase 1: Understand + Design - Approved
- ✅ Phase 2: Test RED - Approved
- 🔄 Phase 3: Build GREEN - In Progress

📁 **State Saved:**
`.claude/logs/workflows/AUTH-123/workflow-state.json`

📦 **Deliverables Created:**
- requirements.md
- tech-spec.md
- architecture.md
- test-plan.md

🔑 **Key Decisions:**
- Using JWT with refresh tokens
- Storing sessions in Redis
- bcrypt for password hashing

───────────────────────────────────────────────────────────
📥 **TO RESUME IN NEW SESSION:**

Type: `workflow:resume AUTH-123`

Or copy this command:

workflow:resume AUTH-123

═══════════════════════════════════════════════════════════

Resume Flow

Step 1: Parse Resume Command

Input: "workflow:resume AUTH-123"
       "resume AUTH-123"
       "continue workflow AUTH-123"

Extract: workflow_id = "AUTH-123"

Step 2: Load Workflow State

Load: .claude/logs/workflows/[workflow-id]/workflow-state.json

Validate:
  - File exists
  - JSON is valid
  - Version compatible
  - Status is "paused" or "waiting_approval"

Step 3: Restore Context

Actions:
  1. Load project context (project-contexts/[project]/)
  2. Activate saved agents
  3. Load phase-specific rules
  4. Restore key decisions
  5. Load deliverables created so far

Step 4: Show Resume Summary

═══════════════════════════════════════════════════════════
🔄 WORKFLOW RESUMED
═══════════════════════════════════════════════════════════

📋 **Workflow:** AUTH-123
📝 **Task:** Implement user authentication with JWT

📊 **Restored State:**
- Current Phase: 3 - Build GREEN
- Primary Agent: architect
- Tech Stack: Node.js, Express, PostgreSQL

✅ **Completed Phases:**
- Phase 1: Understand + Design ✓
- Phase 2: Test RED ✓

🔑 **Key Decisions Restored:**
- Using JWT with refresh tokens
- Storing sessions in Redis
- bcrypt for password hashing

───────────────────────────────────────────────────────────
⏭️ **CONTINUING FROM:** Phase 3 - Build GREEN

Ready to continue implementing authentication.

Type "continue" to proceed or "status" for more details.
═══════════════════════════════════════════════════════════

Step 5: Continue Execution

On "continue":
  1. Resume from saved phase
  2. Show agent banner
  3. Execute remaining phase steps
  4. Show approval gate when phase complete

Commands

workflow:handoff

Syntax: workflow:handoff

Action: Save current workflow state and generate resume instructions.

workflow:resume

Syntax: workflow:resume <workflow-id>

Action: Load saved workflow state and continue from last phase.

workflow:list

Syntax: workflow:list

Action: Show all saved workflows with status.

Output:

📋 Saved Workflows:

| ID | Task | Phase | Status | Last Updated |
|----|------|-------|--------|--------------|
| AUTH-123 | JWT Auth | 5a | paused | 2h ago |
| fix-login-0128 | Login fix | 7 | waiting | 1d ago |
| REFACTOR-789 | API refactor | complete | done | 3d ago |

To resume: `workflow:resume <id>`

Auto-Save Behavior

When Auto-Save Triggers

Events:
  - Phase completion (before approval gate)
  - Every 5 minutes during active work
  - Token count milestones (100K, 150K, 175K)
  - Before any external system write

Auto-Save is Silent

Behavior:
  - No user notification for routine saves
  - Only notify at warning thresholds
  - State file updated in background

State File Management

File Location

.claude/logs/workflows/
├── AUTH-123/
│   ├── workflow-state.json      # Current state
│   ├── requirements.md          # Phase 1 deliverable
│   ├── tech-spec.md            # Phase 1 deliverable
│   └── test-plan.md            # Phase 2 deliverable
├── fix-login-0128/
│   └── ...
└── README.md                    # Index of workflows

Cleanup Policy

Auto-cleanup:
  - Completed workflows: Keep 30 days
  - Cancelled workflows: Keep 7 days
  - Paused workflows: Keep indefinitely

Manual cleanup:
  - Command: workflow:cleanup
  - Removes old completed/cancelled workflows

Error Handling

State File Not Found

❌ Workflow not found: AUTH-123

Possible reasons:
- Workflow ID is incorrect
- State file was deleted
- Workflow was never saved

Available workflows:
[list recent workflows]

To start a new workflow: `workflow:start <task>`

Corrupted State File

❌ Cannot load workflow state: Invalid JSON

Attempting recovery...
- Found backup: workflow-state.backup.json
- Restored from backup (15 minutes old)

⚠️ Some recent progress may be lost.

Continue with restored state? (yes/no)

Version Mismatch

⚠️ Workflow was created with Aura Frog v0.9.0
Current version: v1.0.0

Attempting migration...
✅ State migrated successfully

Continue? (yes/no)

Best Practices

DO:

  • Handoff before token limit (at 150K)
  • Include workflow ID in task tracking
  • Resume promptly to maintain context
  • Review key decisions after resume

DON'T:

  • Wait until 200K tokens (may truncate)
  • Delete state files manually
  • Resume with different project context
  • Skip the resume summary review

TOON State Format (Token-Efficient)

# .claude/workflow-state.toon
workflow:
  id: AUTH-1234
  phase: 5
  status: in_progress

phases[5]{num,name,status}:
  1,Understand + Design,completed
  2,Test RED,completed
  3,Build GREEN,in_progress
  4,Refactor + Review,pending
  5,Finalize,pending

agents[2]: architect,tester

Token savings: TOON uses ~160 tokens vs JSON ~600 tokens (73% reduction)


适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

28.82%
按下载量换算22

Claude Code

23.36%
按下载量换算18

windsurf

20.86%
按下载量换算16

cline

12.06%
按下载量换算9

Codex

7.84%
按下载量换算6

Antigravity

3.21%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills