Skip to content

chore: remove dead scripts/state/update.ts references from skill templates #502

Closed

Description

@admarble

Summary

Skill templates reference scripts/state/update.ts for workflow state tracking (start/complete/fail lifecycle). This script exists in sequant but is not copied to downstream repos by sequant init, making these references dead code in every project that uses sequant.

Same category of bug as the QA-specific fix in workout-tracker#165 (which was fixed for qa-cache-cli.ts and scripts/state/update.ts in QA only).

Affected Skills

Updated 2026-04-12: Added 4 missing skills discovered during assessment (verify, fullsolve, merger, assess).

All skills with a "State Tracking" / "State Updates (Standalone Only)" section:

  • exec — start/complete/fail + pr tracking
  • spec — start/complete/fail
  • test — start/complete/fail
  • testgen — start/complete/fail
  • loop — start/iteration/complete/fail
  • security-review — start/complete/fail
  • verify — start/complete/fail
  • fullsolve — init/start/complete/fail/status
  • merger — merged/fail
  • assess — init

Each exists in 3 locations: templates/skills/, skills/, .claude/skills/

Options

Option A: Remove the State Tracking sections (like the QA fix)

  • Remove the standalone state update blocks from each skill template
  • Keeps skills focused on what works in downstream repos today

Option B: Bundle state CLI in the npm package

  • Export scripts/state/update.ts functionality via npx sequant state ...
  • Skills would reference the installed package instead of a local script
  • Enables state tracking in downstream repos

Recommendation

Option A for now (quick cleanup), with Option B as a future enhancement if state tracking in downstream repos becomes a priority.

Found during

Fix for admarble/workout-tracker#165

Activity

  1. admarble commented on Apr 12, 2026

    @admarble
    ContributorAuthor

    → PROCEED — Dead scripts/state/update.ts references in 21 SKILL.md files across 3 directories

    exec → qa · simple chore cleanup · -q

  2. admarble commented on Apr 12, 2026

    @admarble
    ContributorAuthor

    Spec Plan — #502: Remove dead scripts/state/update.ts references

    Scope

    Remove the "State Tracking" / "State Updates" sections from all SKILL.md files that reference scripts/state/update.ts. These references are dead code in consumer projects (the script is not copied by sequant init).

    AC Checklist

    AC Description Verification
    AC-1 Remove State Tracking sections from .claude/skills/ (10 skills) grep -r "scripts/state/update.ts" .claude/skills/ | wc -l = 0
    AC-2 Remove State Tracking sections from templates/skills/ (6 skills) grep -r "scripts/state/update.ts" templates/skills/ | wc -l = 0
    AC-3 Remove State Tracking sections from skills/ (5 skills) grep -r "scripts/state/update.ts" skills/ | wc -l = 0
    AC-4 scripts/state/update.ts and its test are preserved (not dead in sequant repo) File exists after changes
    AC-5 No other content accidentally removed (sections before/after State Tracking intact) Build + test pass

    Affected Files (21 total)

    .claude/skills/ (10): exec, spec, test, testgen, loop, security-review, verify, fullsolve, merger, assess
    templates/skills/ (6): exec, spec, test, testgen, fullsolve, assess
    skills/ (5): exec, test, testgen, fullsolve, assess

    Design

    Remove the entire ## State Tracking section through the --- separator before the next section. Each skill's surrounding sections (Orchestration/Behavior above, Output Verification below) remain intact.

    Phases: exec → qa
    Quality Loop: enabled (21-file chore, easy to miss one)

  3. added a commit that references this issue on Apr 12, 2026
  4. added a commit that references this issue on Apr 12, 2026
  5. admarble commented on Apr 13, 2026

    @admarble
    ContributorAuthor

    Documentation Review Complete

    This issue contains documentation-only changes (skill template cleanup). No additional documentation generation required.

    Files Modified (21 SKILL.md files):

    .claude/skills/ (10 skills):

    • assess, exec, fullsolve, loop, merger, security-review, spec, test, testgen, verify

    templates/skills/ (6 skills):

    • assess, exec, fullsolve, spec, test, testgen

    skills/ (5 skills):

    • assess, exec, fullsolve, test, testgen

    What Changed:

    Removed dead scripts/state/update.ts references (State Tracking sections) from all skill templates. These references pointed to a script that only exists in the sequant repo — downstream projects using sequant init received skills with calls to code that didn't exist.

    Status:

    ✅ Merged as commit 9a526f7 (PR #518). No further documentation needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions