Skip to content

fix(skills): Claude Code ≥2.1.286 tells Claude to run any project skill named verify before every commit — Sequant's verify expects an issue number and posts to GitHub #1345

Open

Description

@admarble

Problem

Claude Code v2.1.286 changed its commit guidance: "when your project or user skills include one named verify, Claude is now told to run it right before committing, except for docs-only and tests-only commits."

sequant init and /sequant:setup copy Sequant's skills into the project's .claude/skills/, including verify (templates/skills/verify/SKILL.md). That makes it a project skill named verify, which matches the new rule. In every project with Sequant installed, Claude is now told to run /verify before every code commit. The rule covers exec phase agents too, and they commit often.

Sequant's verify was not written for that trigger:

  • It expects an issue number as its argument (§1 Parse Arguments).
  • It posts a verification comment to the GitHub issue (§7, allowed-tools: Bash(gh issue comment:*)).
  • Its description says "Use after /exec for script changes". It is a human-review step, not a pre-commit check.

The likely effects are extra time and tokens on every commit, and a risk of unrequested gh issue comment posts or an agent stalling for a missing argument.

Evidence that the rule is live: this repo's own Claude Code sessions now carry the system instruction "Always run /verify right before the commit command (never for docs or tests)."

/upstream classified this change as No Action Required (#1330, v2.1.286 assessment).

Options (decide in /spec)

  1. Rename the skill so it no longer matches (for example verify-cli). Downstream projects keep a stale verify copy until sequant sync, so the sync must remove the old one.
  2. Keep the name and give verify a pre-commit-safe path: with no issue number, it runs nothing, posts nothing, and returns at once.
  3. Adopt the new contract on purpose: make verify a real pre-commit check (fast, local, no GitHub writes), and move today's evidence-posting flow under another name.

Acceptance Criteria

  • AC-1: A reproduction is recorded before the fix: one sequant run exec phase on a test issue in a project with .claude/skills/verify/ present, on Claude Code ≥ 2.1.286, with the count of /verify invocations and of gh issue comment calls it made. Evidence: the phase transcript excerpt or log lines pasted in the PR body.
  • AC-2: After the fix, the same reproduction shows zero gh issue comment calls caused by the pre-commit guidance and no stall waiting for an issue number. Evidence: the same measurement re-run and pasted in the PR body.
  • AC-3: sequant sync / sequant update and /sequant:setup leave downstream projects in the fixed state, including projects that already have the old .claude/skills/verify/. Evidence: an integration test that seeds the old directory, runs the sync, and asserts the fixed layout, mutation-verified by skipping the migration step.
  • AC-4: Every reference to the skill (skills, docs, README, plugin skill list, lint:skill-calls) matches the chosen option. Evidence: grep -rn "verify" .claude/skills templates/skills plugin/skills docs README.md reviewed in QA, and npm run lint:skill-sync && npm run lint:skill-calls pass.
  • AC-5: /upstream's classifier gets a rule that flags changelog lines naming a skill, hook or command that Sequant ships Struck 2026-10-14 (owner decision): superseded by feat(upstream): one digest per run with code-grounded triage — stop per-finding issues, advance the baseline on triage, dedupe against closed issues #1442, which replaces the keyword classifier with code-grounded triage and carries the v2.1.286 verify line in its AC-2 fixture. The name-collision category shipped in fix(#1345): Claude Code ≥2.1.286 tells Claude to run any project skill named verify before every commit — Sequant's verify expects an issue number and posts to GitHub #1347 stays.

Activity

  1. added
    bug
    upstream
    on Oct 6, 2026
  2. admarble commented on Oct 6, 2026

    @admarble
    ContributorAuthor

    Complexity: Standard (5 ACs, 5 directories)

    AC Quality Check

    • AC-1/AC-2: Evidence is a live Claude Code transcript measurement. It is non-deterministic and cannot be gated by CI. Treat it as manual, PR-body evidence. AC-2 must reuse AC-1's exact setup, or the comparison is meaningless.
    • AC-3 and AC-5: command-shaped Evidence already names a mutation. Both fail on today's base (no migration test, no classifier rule), so neither is vacuous.
    • AC-4: grep ... verify matches every existing line today, so it gates nothing alone. The real gate is lint:skill-sync and lint:skill-calls.
    • Option 2 makes AC-3's "old directory" case collapse into the normal skill-content refresh. See Open Questions.

    Scope Assessment

    Non-Goals: ⚠️ not found in the issue. Proposed: no change to the verify phase contract when an issue number is given; no redesign of /qa §11 evidence.

    Metric Value Status
    Feature count 2 (skill guard, classifier rule) ✅
    AC items 5 ✅
    Directory spread 5 (.claude/skills, templates/skills, plugin/skills, src/lib/upstream, docs) ⚠️

    Verdict: ✅ SCOPE_OK

    Acceptance Criteria

    AC-1: Reproduction recorded first

    Verification: Manual Test
    Scenario: Given a test issue and a project with .claude/skills/verify/, on Claude Code ≥2.1.286 → When one exec phase runs → Then the /verify and gh issue comment counts are recorded.
    Assumptions: the guidance fires inside sequant run exec agents, not only interactive sessions. Confirm this first; if it does not fire there, the severity drops.

    AC-2: Same measurement after the fix

    Verification: Manual Test
    Scenario: Same setup → Then 0 gh issue comment calls from pre-commit guidance, no stall.

    AC-3: Sync/update/setup land the fixed state

    Verification: Integration Test
    Scenario: Given a temp project seeded with the old .claude/skills/verify/SKILL.md → When the sync/update path runs → Then the fixed layout exists. Mutation: skip the migration/copy step, and the test must fail.

    AC-4: All references match the chosen option

    Verification: Integration Test (npm run lint:skill-sync && npm run lint:skill-calls) plus a QA grep review.

    AC-5: /upstream classifier flags shipped-name matches

    Verification: Unit Test
    Scenario: Given the v2.1.286 line ("when your project or user skills include one named verify…") → When analyzeChange runs → Then the category is not no-action and it passes selectIssueWorthy. Mutation: remove the rule, and the test fails.

    Implementation Plan

    Phase 1: Reproduce (AC-1)

    1. Build the repro on a throwaway issue. Record counts. Paste them in the PR body.

    Phase 2: Fix (AC-2, AC-3, AC-4), Option 2

    1. Edit .claude/skills/verify/SKILL.md. Add a first section, "No issue number → return immediately": run nothing, post nothing, and say "no-op: /verify is an issue-scoped review step, not a pre-commit check". The guard must come before §1 Parse Arguments. Narrow nothing else.
    2. Run npm run sync:skills to mirror to templates/skills/verify and plugin/skills/verify. Read all three after syncing.
    3. Add a test that seeds the old SKILL.md, runs the sync/update copy path, and asserts the guard text is present. Mutation-verify it.
    4. Update docs where the skill is described (README.md:284, docs/guides/workflow.md:57, docs/reference/cheat-sheet.md:86): note that a bare /verify is a no-op.

    Phase 3: Classifier (AC-5)

    1. Add a rule in src/lib/upstream/relevance.ts that matches changelog lines naming a Sequant-shipped skill, hook or command. Derive the names from the shipped skill list, not a hardcoded one. Test it with a fixture in src/lib/upstream/__tests__/relevance.test.ts. Mutation-verify it.

    Design Review

    1. Where does this belong? The skill prompt owns the guard. The classifier rule belongs in relevance.ts.
    2. Simplest correct approach? Option 2. Rejected: Option 1 (rename). verify is a registered phase (phase-registry.ts:271, skill: "verify", prompt "Run the /verify {issue} workflow"). It is also referenced by /qa §11 and --phases verify, so a rename breaks users and needs a removal step in sync. Rejected: Option 3, because it redefines verify and drops the evidence flow it exists for.
    3. Pattern and recurrence? Skill-prompt guard with mirrored dirs via sync:skills. The classifier misses keyword-matching changes that name shipped identifiers. The /upstream classifier is already known to file real impacts as No Action. I found no prior fix issues for a verify collision.
    4. Reviewer challenge? "A no-op skill still costs a skill invocation per commit." True, but it is a cheap return with no GitHub writes. Option 3 would cost more.
    5. Producers/consumers: skill dirs (3 mirrors), phase-registry.ts (invokes /verify {issue}, which always has an issue number, so unaffected), /qa evidence lookup, docs (3 files), lint:skill-calls. One producer of the copied files (copyTemplates), so no divergence.
      ADR: Q2 names a rejected alternative, so the exec PR must include an ADR in docs/adr/ (next NNNN, shape per docs/adr/README.md).

    Feature Quality Planning

    • Verified gap: the issue says the new rule exempts docs-only and tests-only commits. The guard must not depend on that.
    • Risk: .claude/.local/skills/verify/overrides.md overrides are read first by the skill, so a guard placed after that line can be overridden. Place it right after the override line.

    Open Questions

    1. Option 2 vs 1 vs 3? Recommendation: Option 2. Impact if wrong: Option 1 would need a sync removal step and phase renames.
    2. AC-3 wording under Option 2: there is no layout change, only a content refresh. Recommendation: keep the test as written (seed old content, assert new). Impact: low.
    3. AC-1/AC-2 are live measurements: they cost a real run. Recommendation: one run before and one after, on a small test issue.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: a skill-prompt edit plus a small classifier rule. Unit and integration tests are declared in AC-3 and AC-5, so testgen could add stubs, but the tests are small enough to write in exec.

    Label Review

    Current: bug, upstream. Recommended: unchanged, plus planned.

  3. added
    planned
    on Oct 6, 2026
  4. admarble commented on Oct 6, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 3/5 met

    Gaps:

    • AC-1 and AC-2 live before/after measurements were not recorded
    • Gate-test ACs AC-3 and AC-5 lack recorded mutation markers; add them to exec's final ## Summary
    • The shipped-name classifier rule is silently inert when the baseline file is missing
    • Run from outside the repo root, the classifier rule finds no names and disables itself without a warning
    • An exec agent may call /verify before committing, bypassing the guard and posting gh issue comment; only the AC-2 measurement would show this
  5. admarble commented on Oct 6, 2026

    @admarble
    ContributorAuthor

    First measurement (runner, 2026-10-06), from this issue's own sequant run (PR #1347): the exec phase ran as claude -p on Claude Code ≥ 2.1.286 with the unguarded verify skill loaded. Its context contained "run /verify right before the commit command (never for docs or tests)", so the guidance does reach phase agents. Across 2 non-docs commits the agent called 0 /verify and 0 gh issue comment. n = 1 run, and interactive sessions are not measured.

    This corrects the "likely effects" in the issue body: in the one measured run there was no effect. The exposure that remains is mostly interactive sessions, where Claude follows system-prompt guidance more readily and usually knows the issue number, so it would call /verify <N>. #1347's guard covers only a bare /verify.

    AC text needs an owner decision: AC-2 ("after the fix, zero comments") cannot discriminate against a before count of zero. Options: rewrite AC-1/AC-2 to measure an interactive session, or drop them and record this measurement as the result.

    Docs check: Claude Code's changelog says "project or user skills", so the namespaced plugin skill sequant:verify is probably not affected, but that isn't stated outright. It doesn't say whether disable-model-invocation: true exempts a skill, and it documents no opt-out setting.

  6. added 6 commits that reference this issue on Oct 6, 2026
  7. admarble commented on Oct 9, 2026

    @admarble
    ContributorAuthor

    Proposed replacement for AC-1 and AC-2. Reply "yes" and I'll swap these two lines into the issue body verbatim. The fix itself merged in #1347. These ACs are what keep the issue open, because the before-count was already 0 and the current AC-2 cannot discriminate.

    - [x] AC-1: A phase-agent reproduction is recorded before the fix: one `sequant run` exec phase (`claude -p`, Claude Code ≥ 2.1.286) with the unguarded `verify` skill, counting `/verify` invocations and `gh issue comment` calls. Evidence: #1345 comment of 2026-10-06 — guidance present in context, 2 non-docs commits, 0 `/verify`, 0 `gh issue comment`.
    - [ ] AC-2: One interactive session (not `sequant run`) on Claude Code ≥ 2.1.286, in a project with the guarded `verify` skill installed, makes at least 2 non-docs commits for an issue it knows the number of; the count of `/verify` invocations that ran past the no-op line and of `gh issue comment` calls is recorded, and both are 0. Evidence: the session transcript excerpt pasted in a comment here; if either count is above 0, file the hook-level follow-up named in ADR-0009 instead of ticking this box.

    AC-1 is ticked because its measurement exists. AC-2 now measures the case that is still exposed: an interactive session that knows its issue number, which only the prompt rule (case 3) guards. It needs a human-driven session, so it's yours or a later follow-up.

  8. admarble commented on Oct 13, 2026

    @admarble
    ContributorAuthor

    AC-5 (a classifier rule for shipped skill names) is superseded by #1442. That issue replaces the keyword classifier with code-grounded triage, and its AC-2 fixture includes the v2.1.286 verify line. If you agree, strike AC-5 here so this issue is gated on AC-2 (the interactive-session measurement) only.

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

    bugplannedupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions