You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(exec): Add pre-PR lint validation to catch CI failures early #250
Add npm run lint validation before PR creation in /exec to catch lint errors that would fail CI.
Problem
Issue #239 failed 3 quality loop iterations because lint errors weren't caught until CI ran:
✓ exec (16m 33s)
✗ qa: QA verdict: AC_NOT_MET # CI failed due to lint
✗ loop: Claude Code process exited with code 1
[repeats 3x]
Root cause: Two unused imports caused eslint --max-warnings 0 to fail:
src/lib/scope/index.ts:31 - unused re-export
src/lib/workflow/state-schema.ts:22 - unused type import
These could have been caught locally before pushing the PR.
Proposed Solution
Add lint check to /exec pre-PR validation:
### Pre-PR Quality Gates (REQUIRED)
Before creating PR, run ALL checks:
1.`npm run build` - TypeScript compilation
2.`npm run lint` - ESLint validation # <-- ADD
3.`npm test` - Run relevant tests
If any check fails, fix before creating PR.
Acceptance Criteria
AC-1: /exec SKILL.md includes npm run lint in pre-PR checks
AC-2: Lint check runs after build, before tests
AC-3: If lint fails, /exec fixes issues before PR creation
AC-4: Works with projects that don't have lint script (graceful skip)
Impact
Metric
Before
After
Lint failures caught
At CI (post-PR)
Locally (pre-PR)
Loop iterations wasted
3
0
Time to fix
~30 min (3 loops)
~1 min
Implementation
Single change to .claude/skills/exec/SKILL.md - add lint to pre-PR checklist.
src/__test-lint-error.ts
1:10 warning 'StateManager' is defined but never used
✖ 1 problem (0 errors, 1 warning)
ESLint found too many warnings (maximum: 0).
✅ Lint correctly caught unused import and failed with --max-warnings 0
Activity
admarble commentedon Feb 4, 2026
📋 Spec Review Complete
Acceptance Criteria Checklist
/execSKILL.md includesnpm run lintin pre-PR checks/execfixes issues before PR creationDerived ACs
allowed-toolsYAML to includenpm run lintImplementation Plan
Phase 1: Update allowed-tools (line 15-18)
Bash(npm run lint:*)to YAML blockPhase 2: Update Section 3 - Checks-first Mindset (lines 792-799)
npm run lintto checks list with graceful skipPhase 3: Add Section 3d - Lint Check (new section, after line 922)
Phase 4: Update Implementation Loop (line 930)
Phase 5: Update Output Verification (line 1346)
Files to Modify
.claude/skills/exec/SKILL.mdOpen Questions
Non-Goals (Suggested)
--fixflag)Recommended Workflow
Quality Loop: enabled (scope warning due to title)
Ready for implementation via
/exec 250fix(exec): Add pre-PR lint validation to catch CI failures early
admarble commentedon Feb 4, 2026
🚀 Implementation Complete
AC Coverage Summary
npm run lintin pre-PR checksBash(npm run lint:*)Files Changed
.claude/skills/exec/SKILL.mdQuality Checks
npm run buildnpm run lintnpm testTest Coverage Analysis
.claude/skills/exec/SKILL.mdCoverage: N/A - documentation-only change
Quality Plan Alignment
N/A - No quality plan in issue (spec was for documentation change)
PR Status
✅ Created: #253
Key Implementation Details
Ready for
/qareviewadmarble commentedon Feb 4, 2026
🔍 QA Review Complete
Verdict: ✅ READY_FOR_MERGE
All acceptance criteria verified and met:
npm run lintin pre-PR checksQuality Checks
Code Review Summary
Strengths:
Issues: None
Next Steps
QA via
/qa 250admarble commentedon Feb 4, 2026
🔍 QA Review Complete (Final)
Verdict: ✅ READY_FOR_MERGE
All acceptance criteria verified and met:
npm run lintin pre-PR checksBash(npm run lint:*)Quality Checks
anyissuesnpm run buildnpm run lintnpm testCode Review Summary
Strengths:
Issues: None
Self-Evaluation
QA via
/qa 250- ready to mergefix(exec): Add pre-PR lint validation to catch CI failures early (#253)
feat(state): Add AC status management commands to state CLI
admarble commentedon Feb 4, 2026
🧪 Smoke Test Results
Post-merge verification of the lint integration:
Pre-PR Quality Gates
npm run buildnpm run lintnpm testGraceful Skip Logic (AC-4)
npm run --list | grep lintworksLint Error Detection
Created temp file with unused import in
src/:Result:
✅ Lint correctly caught unused import and failed with
--max-warnings 0Smoke Test Verdict: ✅ PASSED
The
/execlint integration works as designed:Smoke test via
/qa 250docs(changelog): Add entries for #250 and state CLI improvements