Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

state-management状态管理

Agent Skill

state-management 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

公开资料未说明

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:state-management(状态管理)
来源仓库:https://github.com/doubleslashse/claude-marketplace
仓库路径:skills/state-management
安装命令:
npx skills add doubleslashse/claude-marketplace --skill "state-management"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add doubleslashse/claude-marketplace --skill "state-management"

简介

发现并安装 AI 代理的技能,扩展智能助手的功能边界。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中动态增强 Agent 能力。
  • 通过关键词匹配任务场景,自动检索并集成合适的技能模块。
  • 安装前需验证来源仓库权限,避免执行不可信代码或访问敏感数据。
  • 部分技能可能涉及联网、文件读写或命令执行,请谨慎授权。

SKILL.md

name
state-management
description
Simplified state file management with consolidated FLOW.md (project) and ITEM-XXX.md (per-item) files
triggers

State Management Skill

This skill provides techniques for managing workflow state through simplified, consolidated markdown files. The refactored structure uses just two file patterns: a single FLOW.md at project level and one ITEM-XXX.md per work item.

Core Principles

  1. Minimal Footprint: Only two file patterns instead of 9+
  2. Single Source of Truth: FLOW.md contains backlog + project context, ITEM-XXX.md contains everything about one item
  3. Human Readable: All state in plain markdown, easy to edit
  4. Checkpoint Recovery: State enables resumption from any interruption
  5. Context Budget Awareness: Track and report context usage

Directory Structure

.flow/
├── FLOW.md           # Project state + backlog (single file)
└── items/
    ├── ITEM-001.md   # All state for work item 001
    ├── ITEM-002.md   # All state for work item 002
    └── ...

State Files Overview

FilePurposeContains
FLOW.mdProject-level stateVision, backlog, active item, capabilities cache
ITEM-XXX.mdPer-item statePhase, decisions, requirements, tasks, checkpoint

FLOW.md Structure

The single project file contains:

Sections

  1. Vision: High-level project vision
  2. Backlog: Table of all work items with status
  3. Active Item: Currently active item pointer
  4. Capabilities Cache: Discovered plugin mappings with timestamp

Template

See templates.md for the full FLOW.md template.

ITEM-XXX.md Structure

Each work item has a single consolidated file containing:

Sections

  1. Header: Item ID, title, timestamps
  2. Phase: Current phase and progress (DISCUSS/PLAN/EXECUTE/VERIFY)
  3. Decisions: Numbered decisions with rationale
  4. Requirements: Extracted functional/non-functional requirements
  5. Tasks: XML-structured atomic tasks (when in EXECUTE)
  6. Checkpoint: Current state snapshot for resume

Template

See templates.md for the full ITEM-XXX.md template.

Work Item States

Items progress through these phases:

PhaseDescriptionNext Phase
BACKLOGDefined but not startedDISCUSS
DISCUSSGathering requirementsPLAN
PLANCreating task planEXECUTE
EXECUTEImplementing tasksVERIFY
VERIFYValidating implementationDONE
DONECompleted(terminal)
ON_HOLDPaused intentionallyPrevious
BLOCKEDWaiting on dependencyPrevious

State Operations

Initialize Project

1. Create .flow/ directory if not exists
2. Create .flow/items/ directory
3. Scan for installed plugins
4. Detect project type from file patterns
5. Create FLOW.md with empty backlog + capabilities

Create Work Item (/flow-workflow:start)

1. Read FLOW.md to get next item number
2. Generate ITEM-XXX ID
3. Create .flow/items/ITEM-XXX.md with DISCUSS phase
4. Update FLOW.md backlog table
5. Set as active item in FLOW.md

Switch Active Item

1. Update checkpoint in current item's file
2. Update FLOW.md active item pointer
3. Load new item's context

Phase Transition

1. Verify completion criteria for current phase
2. Update phase in ITEM-XXX.md
3. Create checkpoint snapshot
4. Initialize next phase section

Create Checkpoint

1. Record current phase and task progress
2. Capture context budget percentage
3. List next recommended action
4. Add timestamp

Resume from Checkpoint

1. Read FLOW.md to get active item
2. Read ITEM-XXX.md checkpoint section
3. Restore context from checkpoint
4. Identify next action
5. Continue workflow

Context Budget Tracking

Track context usage in FLOW.md and report:

## Context Monitor

- Current session: [X]% (limit: 50% before fresh agent)
- Last auto-spawn: [TIMESTAMP]
- Fresh agents this session: [N]

State Validation

Before any phase transition, validate:

  1. Completeness: Required sections filled
  2. Consistency: No contradictory decisions
  3. Recoverability: Checkpoint exists for current progress

Best Practices

Writing State Updates

  • Use timestamps in ISO format
  • Include brief rationale for decisions
  • Mark status clearly (DONE, BLOCKED, etc.)
  • Keep checkpoint current

Reading State for Context

  • Load FLOW.md first for active item
  • Load ITEM-XXX.md for current phase details
  • Check checkpoint before proceeding

Handling Phase Transitions

  • Always create checkpoint before transition
  • Update both FLOW.md backlog and ITEM-XXX.md
  • Announce transition to user

Migration from Old Format

If legacy .flow/ structure detected (BACKLOG.md, ACTIVE.md, PROJECT.md, etc.):

  1. Read existing state files
  2. Consolidate into FLOW.md
  3. Consolidate per-item files into ITEM-XXX.md
  4. Backup old files to .flow/legacy/
  5. Report migration complete

Integration Points

State management integrates with:

  • Capability Discovery: Cache plugin mappings in FLOW.md
  • Workflow Orchestration: Phase transitions and checkpoints
  • Smart Continuation: Resume from checkpoint via /flow-workflow:go

See templates.md for full file templates.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

29.66%
按下载量换算22

OpenCode

22.98%
按下载量换算17

weavefox

16.65%
按下载量换算12

Codex

11.65%
按下载量换算9

Claude Code

7.67%
按下载量换算6

Antigravity

3.35%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills