Skip to content

fix: skill templates referenced commands and fields 1.0 deleted - #58

Merged
Levironexe merged 1 commit into
mainfrom
fix/stale-skill-templates
Sep 10, 2026
Merged

Levironexe merged 1 commit into
mainfrom
fix/stale-skill-templates

Conversation

@Levironexe

Copy link
Copy Markdown
Owner

The bug

The 1.0 narrowing removed scan, diff and context and the health score, but the three skill templates were never reconciled. Verified against @levironexe/architect@1.0.0 from the registry, not a local build. A user who installs Architect today gets skill files containing:

Dead reference Occurrences in installed skills
duplication prose and duplication_pct 21
state.json health fields 6
health_score 5
latest_health 5

The sharpest one is in /architect-refactor, which tells the agent as a CRITICAL step to read health_score from .architect/scans/phase-N.json and not to estimate it. That file's real fields are timestamp, flagged_files, flagged_functions, circular_deps, total_files, total_loc, avg_file_loc, god_files. The plan skill also told the agent to run architect scan . --snapshot ... and architect context --techstack ..., neither of which exists.

The fix

Every command the installed skills name now exists:

  • /architect-plan takes a baseline with architect check . --baseline and no longer calls a command to fetch the blueprint, because init renders the blueprint into the skill file. A wrong stack is corrected with init --skill <id> --update.
  • /architect-refactor reads violation counts from architect check . --json, and checks god_files from the phase snapshot instead of the nonexistent duplication_pct.
  • /architect-catchup reports with architect check ..
  • Phase tracking counts violations, not health. state.json carries baseline_violations and latest_violations, and ArchitectState matches.

A second bug found on the way

check . --baseline never wrote .architect/scans/baseline.json, and nothing else had written it since 1.0. verify therefore treated every pre-existing circular dependency as newly introduced:

✗ No new circular deps     (+1)      # on a project whose cycle predates the baseline

The strict gate was unaffected, since it guards on the snapshot existing, but the printed report was wrong. --baseline now records the snapshot, and the same case reports (+0). Covered by a new regression test.

Verified

Rendered the skills with the built CLI and grepped the output: zero dead references, zero unrendered template tokens, and every architect ... invocation resolves to a real command and flag. npm run lint, npm run build and npm test all pass, 120 tests.

Version bumped to 1.0.1.

🤖 Generated with Claude Code

https://claude.ai/code/session_015e3bqn8QmG1H2fgHL15RoH

The 1.0 narrowing removed the scan, diff and context commands and the
health score, but the three skill templates still told coding agents to
use them. An agent running the shipped /architect-refactor reached a step
marked CRITICAL telling it to read a health_score field nothing writes,
warned in the same breath not to estimate the value.

Every command the installed skills now name exists: the plan skill takes
a baseline with `check . --baseline`, the refactor skill reads counts
from `check . --json`, catchup reports with `check .`. Phase tracking
counts violations rather than health, so state.json carries
baseline_violations and latest_violations and ArchitectState matches. The
duplication_pct comparison is replaced by god_files, which the phase
snapshot really has.

While confirming that, found `check . --baseline` never wrote
.architect/scans/baseline.json - nothing had since 1.0 - so verify
counted every pre-existing circular dependency as new and printed a
failing line for it. The strict gate was unaffected because it guards on
the snapshot existing, but the report was wrong. The baseline now records
that snapshot, with a regression test.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015e3bqn8QmG1H2fgHL15RoH
@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
leviron.architect Ready Ready Preview Sep 10, 2026 7:26pm UTC

@Levironexe
Levironexe merged commit b8d599c into main Sep 10, 2026
3 checks passed
@Levironexe
Levironexe deleted the fix/stale-skill-templates branch September 10, 2026 19:27
Levironexe added a commit that referenced this pull request Oct 23, 2026
fix: skill templates referenced commands and fields 1.0 deleted

This branch was successfully deployed

1 active deployment
Preview — b87353cb Deployed Sep 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant