dsess

Manage AI workflow session lifecycles with preflight checks and task selection.

4|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/ssdiwu/diwu-workflow --skill dsess
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dsess
Source: https://github.com/ssdiwu/diwu-workflow/tree/main/skills/dsess
Command: npx skills add https://github.com/ssdiwu/diwu-workflow --skill dsess

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Session 生命周期管理——从启动到结束的完整流程,覆盖 Preflight 检查、上下文恢复、归档检查、任务选择、持续运行模式,以及 Session 结束协议,帮助 AI-workflow 持续稳定地执行并保持可追踪性。

Core Features & Use Cases

  • Preflight checks:在会话启动前进行基线验证,确保工作区状态符合要求。
  • Context restoration:从最近的会话状态恢复上下文,快速无缝接续任务。
  • Archive checks:对已完成任务进行归档与清理,维持活跃工作流的聚焦。
  • Deterministic task selection:依据 InProgress、InReview 和 PENDING REVIEW 的状态规则,确定下一步执行任务。
  • Continuous_run mode:开启后完成一个任务即自动选择下一个可执行任务继续执行。
  • Session end protocol:结束时记录会话信息、处理结果与后续建议,必要时追加决策记录。
  • Use Case:在长时间自动化工作流中,确保恢复点清晰、任务状态可追踪、并可无缝接续下一步工作。

Quick Start

Start a new session and follow the preflight, context restoration, archive checks, and next-task selection flow.

Frequently Asked Questions about dsess

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage AI workflow session lifecycles from startup to termination?

AI workflow session lifecycle management orchestrates startup to termination by applying preflight validation, context restoration, archive checks, and end-of-session recording to maintain continuous, traceable task execution.

How does context restoration work for interrupted automated workflows?

Context restoration for automated workflows recovers the most recent session state, allowing tasks to seamlessly resume execution from the exact point of interruption without losing prior progress.

What is the best way to automatically select the next task in a continuous-run workflow?

Deterministic next-task selection in continuous-run mode automatically routes to the next executable task based on InProgress, InReview, and PENDING REVIEW status rules immediately after the previous task completes.

When do I need preflight checks for interactive AI workflows?

Preflight checks for interactive AI workflows are needed at session startup to perform baseline validation and ensure the workspace environment state meets requirements before task execution begins.

Does session end protocol record decisions and task results for long-running workflows?

Session end protocol records session information, processing results, and follow-up suggestions for long-running workflows, appending decision records when necessary to maintain full traceability.

How to archive completed tasks to maintain focus in active automated workflows?

Archive checks for completed tasks in active automated workflows clean up and archive finished items, maintaining workspace focus on currently active and pending execution steps.