本文へ移動
cccskills
無料GitHub で公開

state-manager

Three-file state management for session continuity. Maintains STATE.md, DECISIONS.md, and PROGRESS.md as human-readable session context alongside the SQLite ticket database. Use this skill when updating workflow state, logging decisions, tracking session progress, or resuming work after a context break.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md6.8 KB
  • source.json832 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

State Manager Skill

Version: 1.0.0 Category: Session Management Type: Hybrid (prompt-driven + shell script)

Purpose

Provide human-readable session continuity across context windows. While the SQLite ticket database tracks ticket status, these three markdown files capture the working context that gets lost between sessions:

  • STATE.md — What am I working on right now? What phase? Any blockers?
  • DECISIONS.md — What did I decide and why? What alternatives did I reject?
  • PROGRESS.md — What happened in each work session? What files changed?

These files are designed to be read by both humans and Claude Code. When a session resumes, reading STATE.md provides immediate context without re-analyzing the entire codebase.

Operations

update-state

Updates STATE.md with the current ticket, workflow phase, step, and any blockers.

When to call: At every phase boundary in the 16-step ticket-implementation workflow.

Shell command:

state-manager.sh update <ticket_id> <phase> <step> [blocker]

Example:

state-manager.sh update 2.3 implementation "implement_with_types"
state-manager.sh update 2.3 validation "run_tests" "Tests failing: missing test fixture for auth module"

Phase values (matching ticket-implementation workflow):

  • preparation — Steps 1-4: validate state, get ticket, mark in progress, create branch
  • analysis — Steps 5-7: read requirements, check API schema, list assumptions
  • implementation — Steps 8-10: implement with types, follow patterns, handle edge cases
  • validation — Steps 11-13: compile check, run tests, verify acceptance criteria
  • completion — Steps 14-16: commit changes, mark done, report summary

log-decision

Prepends a decision entry to DECISIONS.md with date, ticket ID, what was decided, and why.

When to call: Whenever making an architectural or implementation choice that future sessions should know about — especially choices where alternatives were considered and rejected.

Shell command:

state-manager.sh decision <ticket_id> "<decision>" "<rationale>"

Example:

state-manager.sh decision 2.3 "Use markdown files over YAML for state" "Human-readable, git-diff friendly, no parser dependency"

What qualifies as a decision worth logging:

  • Choosing between two or more viable approaches
  • Deviating from an existing pattern for a specific reason
  • Accepting a trade-off (e.g., performance vs. simplicity)
  • Ruling out an approach that looks obvious but has a hidden issue

What does NOT need logging:

  • Following an established project pattern (that's expected behavior)
  • Trivial formatting or naming choices
  • Choices dictated by the ticket requirements with no real alternative

log-session

Records session start and end in PROGRESS.md. Session-end captures changed files and a summary.

When to call:

  • session-start — At the beginning of working on a ticket (after Step 3: mark in progress)
  • session-end — When finishing a work session (after Step 16: report summary), or when context is about to be lost

Shell commands:

state-manager.sh session-start <ticket_id>
state-manager.sh session-end <ticket_id> "<summary>"

Example:

state-manager.sh session-start 2.3
# ... work happens ...
state-manager.sh session-end 2.3 "Implemented three-file state management: templates, shell script, skill docs"

Session-end automatically:

  • Captures the list of changed files from git
  • Resets STATE.md to idle status

resume

Reads STATE.md and provides context for resuming work after a break or context loss.

This operation is prompt-driven (no shell command). When resuming:

  1. Read STATE.md to understand current work context
  2. Read the most recent entry in PROGRESS.md for session history
  3. Read the most recent entries in DECISIONS.md for decision context
  4. Check the ticket database for the active ticket's full details
  5. Provide a concise summary:
    • What ticket is in progress
    • What phase and step was last reached
    • Any blockers noted
    • Key decisions made so far
    • Suggested next action

Example resume summary:

Resuming ticket 2.3 (Three-file state management). Last session reached the implementation phase, step follow_patterns. No blockers. One decision logged: chose markdown over YAML for state files. Next action: continue implementing the shell script commands.

Integration with the 16-Step Workflow

The state manager hooks into the ticket-implementation workflow at phase boundaries. Here is where each operation should be called:

StepWorkflow ActionState Manager Call
3Mark ticket IN_PROGRESSsession-start <ticket_id>
4Create feature branchupdate <ticket_id> preparation create_branch
5Read requirementsupdate <ticket_id> analysis read_requirements
7List assumptionsupdate <ticket_id> analysis list_assumptions
8Start implementingupdate <ticket_id> implementation implement_with_types
11Compile checkupdate <ticket_id> validation compile_check
13Verify acceptance criteriaupdate <ticket_id> validation verify_acceptance_criteria
14Commit changesupdate <ticket_id> completion commit_changes
16Report summarysession-end <ticket_id> "<summary>"

Additionally, call decision at any point during implementation when a non-trivial architectural or implementation choice is made.

You do not need to call update at every single step. The table above shows the recommended phase-boundary checkpoints. If a step is quick and flows directly into the next, skip the intermediate update.

Initialization

Before first use in a project, run:

state-manager.sh init

This copies the three templates to the project root. It skips files that already exist, so it is safe to run multiple times.

File Locations

By default, state files live in the project root:

  • ./STATE.md
  • ./DECISIONS.md
  • ./PROGRESS.md

Override with environment variables: STATE_FILE, DECISIONS_FILE, PROGRESS_FILE.

When NOT to Use This Skill

  • For ticket status changes — use ticket-manager.sh for that
  • For implementation logging — use IMPLEMENTATION_LOG.md for the permanent record
  • For architecture documentation — use ARCHITECTURE.md and ARCHITECTURE_CHANGES.md

State files are working context that may be cleaned up between milestones. The ticket database and implementation log are the permanent record.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

007

無料

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

Guides the creation of agile user stories and Gherkin feature files. Use when the user wants to create a user story, write acceptance criteria, define Gherkin scenarios, or author BDD feature files. This should trigger for requests such as Create a user story; Write a user story; I need to write a user story. Part of cursor-rules-java project

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

Facilitates conversational discovery to create Architectural Decision Records (ADRs) for non-functional requirements using the ISO/IEC 25010:2023 quality model. Use when the user wants to document quality attributes, NFR decisions, security/performance/scalability architecture, or design systems with measurable quality criteria. This should trigger for requests such as Create ADR for Non-functional requirements; Document Non-functional requirements; Capture Non-functional requirements; Generate Non-functional requirements in an ADR. Part of cursor-rules-java project

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

Run a health check on an existing project: dependency audit, security scan, test runner detection, CI/CD evaluation, and missing configuration analysis. Maps the three execution gates (pre/in/post) from /10x-bootstrapper to an assessment framework for existing codebases. Reads optional context/foundation/stack-assessment.md from /10x-stack-assess to focus checks on identified gaps. Writes context/foundation/health-check.md with findings, prioritized fixes, and an agent-readiness verdict. Use when the user has an existing project and wants to verify its health before working with an agent. Trigger phrases: "health check", "check my project", "audit my project", "is my project healthy", "sprawdź projekt", "audyt projektu", "health-check", "project health". Use AFTER /10x-stack-assess (brownfield chain), BEFORE agent onboarding (m1-l4).

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

10x-team

無料

You MUST use this when building projects end-to-end. Orchestrates all 12 team roles — automatically switches between CTO, architect, PM, engineers, SRE, security, DBA, QA, and EM based on the current phase of work. Starts with brainstorming before any implementation.

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) — through a consultative, modular step-by-step approach that only adds what you actually need. This should trigger for requests such as Add Maven plugins in pom.xml; Improve Maven plugins in pom.xml. Part of cursor-rules-java project

日本語の概要は準備中です。原文の説明を表示しています。

aibot88/sec_skill_store42026年5月27日 更新

aibot88 のスキルをすべて見る

このスキルの問題を報告する