state-management

Manage workflow-state.json read, write, and update operations for PM agents.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/metasaver/claude-marketplace --skill state-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: state-management
Source: https://github.com/metasaver/claude-marketplace/tree/main/plugins/metasaver-core/skills/workflow-steps/state-management
Command: npx skills add https://github.com/metasaver/claude-marketplace --skill state-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides consistent operations for workflow-state.json management during /ms workflow execution. It helps PM agents read, write, and update workflow state files in a standardized way to support resuming workflows, HITL stops, and wave progress tracking.

Core Features & Use Cases

  • Read/Parse: Read and parse workflow state from project folders.
  • Write/Validate: Write state with schema validation and timestamp updates.
  • Update/Merge: Merge partial updates into existing state.

Quick Start

Use the state-management skill to read and update the workflow-state.json at a given project folder, for example: readWorkflowState("/path/to/project"); then update with new wave information.

Frequently Asked Questions about state-management

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

FAQPage Schema
How do I manage workflow state across multiple execution waves?

Workflow-state management enables reading, writing, and updating a centralized state file that persists across waves, allowing PM agents to resume incomplete runs and track progress. Use readWorkflowState to load current state, then updateWorkflowState to merge changes after each wave completes.

Can I resume a workflow after a human-in-the-loop stop?

Yes. State-management handles HITL stops by persisting the complete workflow state including wave progress and story completion flags. Call setHITL to mark the pause point, then readWorkflowState on resumption to restore execution context without data loss.

How do I track story completion and epic progress in automation workflows?

The Skill provides markStoryComplete and getCurrentWave functions to update state granularly. Each operation validates against schema, applies timestamps, and merges into the persistent state file, so your PM agent maintains an accurate audit trail of workflow progression.

What validation does state-management apply to workflow state files?

The Skill enforces strict schema validation on read, write, and update operations with robust error handling. validateSchema confirms structure before commits, preventing malformed state that could break resumption or wave sequencing.

Do I need to handle JSON parsing manually for workflow state?

No. The Skill abstracts JSON read/parse/write operations, handling deserialization, validation, and timestamping internally. Call readWorkflowState or writeWorkflowState directly with project paths and receive normalized state objects.

What happens if I update state during an incomplete workflow run?

updateWorkflowState merges partial updates into existing state without overwriting unrelated fields, preserving wave history and story records. This enables safe in-flight modifications for resumption and HITL workflows without data corruption.