state-management
Pipeline state management for tracking gate progress, prerequisites, and results. Used by all gate agents to coordinate pipeline execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Pipeline state management for tracking gate progress, prerequisites, and results. Used by all gate agents to coordinate pipeline execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Best practices for Remotion - Video creation in React
Create an educational explainer video that teaches a topic in 5 animated scenes with voiceover, animated visuals, and captions.
Create a before/after comparison video showing the old way vs the new way. Dramatic visual contrast with stats.
Create a teaser video for a blog post that drives clicks to read the full article. 4 scenes — hook, key points, standout moment, CTA.
Create an animated data dashboard video from a CSV file or data source. 4-panel layout with charts and KPIs.
Create a promotional video for a product or service by researching its URL. 5 scenes with hook, solution, capabilities, trust, and CTA.
| name | state-management |
| description | Pipeline state management for tracking gate progress, prerequisites, and results. Used by all gate agents to coordinate pipeline execution. |
Scripts for reading and writing pipeline state, checking prerequisites, and initializing pipelines.
Initialize a new pipeline run.
python .claude/skills/state-management/scripts/init_pipeline.py [--target-package NAME] [--target-version VERSION]
Creates a new pipeline_state.json with fresh UUID and timestamps.
Get current pipeline state.
python .claude/skills/state-management/scripts/read_state.py [--gate GATE_NAME] [--format json|summary]
Options:
--gate: Get status of specific gate only--format: Output format (default: json)Update gate status after execution.
python .claude/skills/state-management/scripts/write_state.py <gate> <PASS|FAIL> [--details JSON]
Arguments:
gate: Gate name (e.g., lint-test, coverage)status: PASS or FAIL--details: JSON string with gate-specific detailsVerify prerequisites for a gate.
python .claude/skills/state-management/scripts/check_prerequisites.py <gate>
Returns:
state/pipeline_state.json
{
"pipeline_id": "uuid-string",
"started_at": "2024-01-15T10:30:00Z",
"current_gate": "coverage",
"target_package": "my-package",
"target_version": "1.2.0",
"gates": {
"lint-test": {
"status": "PASS|FAIL|PENDING|RUNNING",
"started_at": "ISO8601",
"completed_at": "ISO8601",
"duration_seconds": 45.2,
"details": {
"lint_errors": 0,
"type_errors": 0,
"tests_passed": 142,
"tests_failed": 0
}
}
}
}
| Gate | Required Prerequisites |
|---|---|
| lint-test | None |
| coverage | lint-test PASS |
| cross-platform | lint-test, coverage PASS |
| python-matrix | lint-test, coverage, cross-platform PASS |
| security | lint-test, coverage, cross-platform, python-matrix PASS |
| api-compat | lint-test, coverage, cross-platform, python-matrix, security PASS |
| packaging | lint-test, coverage, cross-platform, python-matrix, security, api-compat PASS |
| github-pr | ALL gates (1-7) PASS |
# Initialize
python .claude/skills/state-management/scripts/init_pipeline.py --target-package mylib --target-version 1.0.0
# Check status
python .claude/skills/state-management/scripts/read_state.py
# Check if gate can run
python .claude/skills/state-management/scripts/check_prerequisites.py coverage
if [ $? -eq 0 ]; then
# Run the gate...
python .claude/skills/state-management/scripts/write_state.py coverage PASS --details '{"total_coverage": 87.3}'
fi
python .claude/skills/state-management/scripts/read_state.py --format summary
Output:
Pipeline: abc123
Started: 2024-01-15 10:30:00
Gates:
1. lint-test: PASS (45s)
2. coverage: PASS (32s)
3. cross-platform: RUNNING
4. python-matrix: PENDING
5. security: PENDING
6. api-compat: PENDING
7. packaging: PENDING
8. github-pr: PENDING