AgentSkillsCN

ralph-update-feature-status

更新 feature_list.json 中功能的状态(pending、in_progress、complete 或 blocked),并重新计算相关统计信息。

SKILL.md
--- frontmatter
name: ralph-update-feature-status
description: Update the status of a feature in feature_list.json (pending, in_progress, complete, or blocked) and recalculate stats.
user-invocable: false

Skill: update-feature-status

Update the status of a feature in feature_list.json.

Purpose

Change a feature's status during the Ralph loop. Used by the Implementer to mark features as in_progress, complete, or blocked.

Allowed Statuses

StatusMeaning
pendingNot yet started
in_progressCurrently being worked on (or retrying after failure)
completeSuccessfully implemented and tests pass
blockedFailed after max attempts, needs human intervention

Input

  • Feature ID: e.g., F001, F042
  • New Status: One of pending, in_progress, complete, blocked
  • Path: Path to feature_list.json (default: ./feature_list.json)

Output

Confirmation message:

code
Updated F042 status from "pending" to "in_progress"

Usage

Bash

bash
./skills/ralph/update-feature-status/update-feature-status.sh F042 in_progress [feature_list.json]

PowerShell

powershell
./skills/ralph/update-feature-status/update-feature-status.ps1 -FeatureId F042 -Status in_progress [-Path feature_list.json]

Inline (jq)

bash
# Update status
jq '(.features[] | select(.id == "F042")).status = "in_progress"' feature_list.json > tmp.json && mv tmp.json feature_list.json

Rules

  • Validate that the status is one of the four allowed values.
  • If the feature is already in the desired status, succeed silently (idempotent).
  • Also update the stats object to keep counts accurate.
  • If updating to complete, clear last_error to null.