session-lifecycle-patterns

Structure AI agent sessions with phased workflows, context preservation, and handoff protocols.

Updated May 16, 2026
Ready to run
npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill session-lifecycle-patterns-organvm-i-theoria
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: session-lifecycle-patterns
Source: https://github.com/organvm-i-theoria/_agent-ontology/tree/main/.agents/skills/session-lifecycle-patterns
Command: npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill session-lifecycle-patterns-organvm-i-theoria

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agent sessions often lose context between phases, skip verification, or end without preserving decisions, making multi-session work unreliable and forcing teams to re-litigate choices. ## Core Features & Use Cases - Phase Model: Enforces a FRAME → SHAPE → BUILD → PROVE → DONE lifecycle with defined transition rules and gates for each phase. - Context Preservation: Provides session metadata schemas, intra-session context tracking, and inter-session handoff documents so work survives across sessions. - Session Typing & Quality Signals: Defines exploration, implementation, debug, and review session profiles plus health indicators and anti-patterns to detect unhealthy sessions. - Use Case: A team running a 15-session skill-building campaign uses session chains and handoff documents so each new session resumes exactly where the last one stopped without re-reading the entire history. ## Quick Start Ask the agent to structure the current task using the FRAME, SHAPE, BUILD, PROVE phase model and produce a session close summary at the end.

Frequently Asked Questions about session-lifecycle-patterns

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

FAQPage Schema
How do I structure an AI agent session into phases?▼

Use the FRAME, SHAPE, BUILD, PROVE, DONE model: explore context first, design an approved plan, implement changes, verify with tests, then close with a summary. Each phase has a gate that must be satisfied before transitioning.

How to preserve context between multiple agent sessions?▼

Write a session close summary at DONE covering accomplishments, remaining work, key decisions, blockers, and next steps. For chained work, record a chain ID, session index, and completed versus remaining items in the session metadata.

What should a session handoff document contain?▼

A handoff document contains four parts: a state snapshot of files and test status, a decision log explaining why choices were made, unambiguous next actions, and risk flags for the next session to watch.

When should a session go back from BUILD to SHAPE?▼

Return to SHAPE when implementation reveals the plan is wrong or incomplete. The transition rules explicitly allow BUILD to SHAPE and PROVE to BUILD so rework happens deliberately rather than through ad-hoc patching.

What are signs of an unhealthy agent session?▼

Unhealthy signals include skipping the FRAME phase, FRAME consuming under 5% or over 50% of the session, claiming completion without test evidence, expanding scope mid-BUILD, and ending without a written summary.