update-active-context

Update activeContext.md with state, task slug, cycle, and ladder step at each transition.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/jackson2787/torque-coding --skill update-active-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-active-context
Source: https://github.com/jackson2787/torque-coding/tree/main/skills/memory-bank/update-active-context
Command: npx skills add https://github.com/jackson2787/torque-coding --skill update-active-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writes to activeContext.md at every state transition. The compaction recovery anchor. Called by every state-machine skill on transition and by debrief on archive complete. Maintains the Current State block, Current Task Pointer, Progress notes, and Session Data. Never evaluates — only records what the calling skill has determined.

Core Features & Use Cases

  • Ensures a durable recovery anchor by updating activeContext.md on each state transition.
  • Tracks and persists the current state, task slug, cycle, ladder-step, and last transition for seamless resumption.
  • Supports cross-skill coordination by providing a single source of truth for session continuity.

Quick Start

Invoke update-active-context at every transition to refresh the recovery anchor.

Frequently Asked Questions about update-active-context

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

FAQPage Schema
How do I persist state-machine context across transitions?

To persist state-machine context across transitions, write recovery data to activeContext.md at each step. This records the current state, task slug, and last transition so tools can resume work without conversation history.

What is a recovery anchor for resuming work without conversation history?

A recovery anchor is a durable file like activeContext.md that stores the current state, cycle, and ladder step. It allows a tool to resume an interrupted state-machine workflow by reading the last saved context.

How do I maintain an audit trail for state transitions?

Maintain an audit trail by updating activeContext.md on every state transition. The skill records the new state and task slug, performing pre-checks before writing to disk to ensure the integrity of the recovery context.

Can I use this to track session data for cross-skill coordination?

Yes, updating activeContext.md provides a single source of truth for session continuity. By recording progress notes and session data on every state transition, multiple skills can coordinate using the shared recovery anchor.

Does the update-active-context skill evaluate state logic before writing to disk?

No, the skill never evaluates state logic; it only records what the calling skill has determined. It performs pre-checks and validations before writing to disk to ensure the integrity of the activeContext.md recovery anchor.

When do I need to update activeContext.md for a state machine?

You need to update activeContext.md at every state transition and when the debrief archive completes. This ensures the Current State block and Current Task Pointer remain accurate for seamless workflow resumption.