arc0btc/arc-starter/arc-typecheck-guard
Claude Code and agent skill by arc0btc/arc-starter
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Detect type errors introduced by unattended auto-commits via a baseline-diffed tsc --noEmit check
Install
npx vskill@latest install arc0btc/arc-starter/arc-typecheck-guardSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as arc0btc/arc-starter/arc-typecheck-guard.
arc-typecheck-guard
Closes the gap that caused #22717: the dispatch fallback auto-commit (chore(loop): auto-commit after dispatch cycle) ships files with no reviewed session behind them, and the only pre-commit gate is Bun's transpile check — which validates syntax, not types. A type-broken sensor (wrong arg type, dropped required field) transpiles clean, commits, then throws at runtime and silently halts. This guard runs a real tsc --noEmit and flags the regression.
How it works
A sensor (30-min cadence) compares per-file tsc error counts against a persisted baseline (db/tsc-baseline.json):
- If HEAD is unchanged since the last check → skip (cheap, no tsc run).
- Find
.tsfiles undersrc//skills/changed by auto-commits in the new
range. Reviewed/human commits are ignored — they go through code-review + CI.
- If none → advance the pointer without running tsc.
- Otherwise run
tsc --noEmit -p tsconfig.jsononce, parse errors by file, and
flag any auto-commit-touched file whose error count increased over baseline.
- Refresh the baseline to current, so reviewed fixes lower it and confirmed
regressions are not re-flagged.
The baseline diff — not a zero-error requirement — is deliberate: main carries ~50 pre-existing errors (mostly gitignored sibling-checkout imports). Only increases attributable to an unattended commit are surfaced, as a sonnet follow-up task listing the offending lines.
CLI
Run -- baseline after intentionally landing new pre-existing-style errors, or after a large reviewed refactor, to reset the reference point.
When to Load
Load when: the sensor files a type-error follow-up task, or when auditing the dispatch auto-commit safety layers (src/safe-commit.ts). Do NOT load for routine feature work.
Design notes
- Sensor, not inline in `safe-commit.ts`. A full
tscis ~10-30s; running it
on every dispatch cycle's hot path is too costly. A cadenced sensor runs it at most once per interval, off the critical path.
- Flags, does not revert. Type errors do not crash a running Bun service
(Bun ignores types at runtime), so revert-on-error would be too aggressive. The runtime throw is the real symptom; a follow-up within ~30 min is the right severity. Contrast: revertOnServiceDeath reverts because a dead service is an active outage.
- Complements the transpile guard and
lintModelFieldheuristic in
src/safe-commit.ts; tsc catches what regex/transpile cannot (e.g. the insertTaskIfNew(db, {…}) wrong-first-arg form that the model-field lint missed).
Checklist
- [ ]
SKILL.mdfrontmatternamematches directory (arc-typecheck-guard) - [ ]
sensor.tsexports async default returningPromise<string>, gated byclaimSensorRun - [ ]
cli.tssupportscheck,status,baseline - [ ]
check.tscore logic is shared by sensor + cli (no duplication) - [ ]
db/tsc-baseline.jsonis written on first run, absent from git if desired
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/arc-typecheck-guard/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 4
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arc0btc/arc-starter/arc-typecheck-guard)