{
  "id": 22960242,
  "title": "I writes code fast, so I use skills to build the gates that catch the bugs unit tests miss",
  "url": "https://urgent.news/2026/12/01/i-writes-code-fast-so-i-use-skills-to-build-the-gates-that-catch-the",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T13:41:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/pinguxx/i-writes-code-fast-so-i-use-skills-to-build-the-gates-that-catch-the-bugs-unit-tests-miss-1eog"
  },
  "original_language": null,
  "account": "When coding speed makes writing code no longer the bottleneck, proving code holds up under untested cases becomes crucial. The micro-signal runtime and protocol adapters for @wcomp/elementum had 200+ unit tests with 95%+ line coverage, passing all happy paths and regression tests. However, complex scenarios like two signals updating inside a batch() across an arbitrary dependency graph, a subscriber throwing during a flush, or an async fetcher reading its own state remained unaddressed by example-based unit tests. To address this, a 4-skill workflow was introduced: spec, plan, implement-plan, and formal-verification. The spec skill defines measurable success criteria, non-goals, and state boundaries before any implementation begins. The plan skill turns the spec into a checklist with explicit invariants and verification commands. The implement-plan skill executes the approved plan step-by-step with tight feedback loops. Finally, the formal-verification skill targets the 5% of code where silent bugs are most damaging, generating an exhaustive verifier for reactive graphs, state machines, retry loops, and untrusted input parsers. Running formal-verification against @wcomp/elementum produced a zero-dependency Node script that checks 6,162 states and graph topologies in under a second. This zero-dependency verifier caught two real bugs in the micro-signal runtime: a throwing subscriber inside batch() silently dropping updates and an async fetcher creating a self-subscription loop leading to endless re-fetches. These bugs were not caught by normal usage or existing unit tests. To implement this in your own repo, install the skill pack globally, pick the module in your repository that would hurt most if it failed silently, run formal-verification on it, and wire the generated script into CI alongside npm test.",
  "summary": "Why green unit tests stopped giving me confidence When a coding agent can generate a new component or reactive helper in 20 seconds, writing code is no longer the bottleneck. The bottleneck is proving that the code holds up under cases nobody thought to write an example test for. When I built the micro-signal runtime and protocol adapters for @wcomp/elementum , all 200+ unit tests were green and…",
  "summary_source": "publisher",
  "key_points": [
    "Introduces 4-skill workflow to catch bugs missed by unit tests",
    "Spec skill defines measurable success criteria and state boundaries",
    "Formal-verification skill catches silent bugs in reactive graphs and state machines"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}