session-lifecycle

Manage AI coding session context with intent declaration, context mapping, and compaction.

51|17|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/shynlee04/hivemind-plugin --skill session-lifecycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-lifecycle
Source: https://github.com/shynlee04/hivemind-plugin/tree/main/skills/session-lifecycle
Command: npx skills add https://github.com/shynlee04/hivemind-plugin --skill session-lifecycle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the common AI problem of context drift and state loss during extended coding sessions, ensuring AI agents maintain focus and historical awareness.

Core Features & Use Cases

  • Structured Session Management: Implements a clear declare_intentmap_contextcompact_session workflow.
  • Drift Detection & Prevention: Actively monitors and warns against deviations from the intended task.
  • Hierarchical Context: Organizes work into Trajectory, Tactic, and Action levels for robust traceability.
  • Use Case: When starting a new feature development, use declare_intent to set the project goal, map_context to define specific implementation steps, and compact_session to save progress and insights for future sessions.

Quick Start

Start a new work session by declaring your intent to build a user authentication system.

Frequently Asked Questions about session-lifecycle

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

FAQPage Schema
How do I prevent context drift in AI coding sessions?

To prevent context drift in AI coding sessions, implement a structured lifecycle that actively monitors deviations from the declared intent and warns against unintended task shifts. This maintains strict focus throughout extended workflows.

What is the best way to preserve AI agent state across multiple coding sessions?

Preserving AI agent state across sessions requires automated archiving and summary generation via session compaction. This ensures historical awareness and intelligence preservation by saving progress before the context window resets.

How do I manage AI workflow context using hierarchical organization?

Manage AI workflow context by organizing tasks into Trajectory, Tactic, and Action levels. This hierarchical organization provides robust traceability and structures the session state from high-level goals down to specific implementation steps.

Does structured session management work for quick fixes and exploratory tasks?

Structured session management supports plan-driven development, quick fixes, and exploratory tasks. You declare intent to set the goal, map context for implementation steps, and compact the session to save insights regardless of task scale.

Why does my AI coding assistant lose track of the project goal during feature development?

AI coding assistants lose track of project goals due to unmanaged context drift over extended sessions. Without declaring intent and mapping context, the agent lacks the structured state preservation needed to maintain historical awareness.