lifecycle-hooks

Manage session lifecycle hooks and capability boundaries in the Session Manager harness.

Updated May 11, 2026
One-click install
npx skills add https://github.com/AesopScott/mojo --skill lifecycle-hooks-aesopscott
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lifecycle-hooks
Source: https://github.com/AesopScott/mojo/tree/main/harnesses/skills/lifecycle-hooks
Command: npx skills add https://github.com/AesopScott/mojo --skill lifecycle-hooks-aesopscott

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured way to manage session boundaries and capability controls, preventing accidental overreach while allowing for precise, testable modifications to system behavior.

Core Features & Use Cases

  • Capability Control: Define recovery strategies, worktree-isolation rules, and lifecycle hooks for session management.
  • Safety-First Implementation: Provides a clear runbook for proposing, testing, and verifying changes before they impact production environments.
  • Use Case: When you need to modify how a session resumes or recovers from a failure, use this Skill to define the specific hook and verify it with a boundary test to ensure no unauthorized access occurs.

Quick Start

Use the lifecycle-hooks skill to inspect the current Session Manager boundary and propose a new recovery strategy for the upcoming migration task.

Frequently Asked Questions about lifecycle-hooks

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

FAQPage Schema
How do I manage session lifecycle hooks and enforce capability boundaries?

Session lifecycle hooks and capability boundaries are managed by defining recovery strategies, worktree-isolation rules, and specific hooks within the Session Manager harness. This structured approach prevents accidental overreach and ensures testable modifications to system behavior.

What is the best way to define a recovery strategy for a session manager?

The best way to define a recovery strategy is to propose specific lifecycle hooks for the Session Manager and verify them using boundary-case testing. This safety-first implementation ensures changes are validated before impacting production environments.

How do I enforce worktree-isolation rules during session management?

Worktree-isolation rules are enforced by applying strict capability controls within the Session Manager harness. Inspecting current boundaries and proposing modifications through a structured runbook ensures unauthorized access does not occur during session recovery.

Do I need positive and boundary-case testing to modify session boundaries?

Yes, positive and boundary-case testing is required to modify session boundaries. This verification protocol ensures that proposed changes to recovery strategies and capability controls are safe and do not cause accidental overreach in the system.

Can I inspect the current Session Manager boundary before proposing changes?

Yes, you can inspect the current Session Manager boundary to understand existing capability controls. Inspecting the boundary allows you to safely propose new recovery strategies and lifecycle hooks for tasks like upcoming migrations.

Why does modifying session continuity require strict safety protocols?

Modifying session continuity requires strict safety protocols to prevent accidental overreach when altering system behavior. Adhering to these protocols and verifying changes through testing ensures precise, testable modifications without unauthorized access.