gate-l3-spec-compliance
Spec compliance gate performing bidirectional traceability, gap detection (4 types), EARS acceptance criteria validation, and anti-pattern scanning.
Skill by shynlee04
Chalk Labs
Need help deploying gate-l3-spec-compliance?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shynlee04-gate-l3-spec-compliance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gate-l3-spec-compliance
What's inside
- Skill name
gate-l3-spec-compliance- Description
- Spec compliance gate performing bidirectional traceability, gap detection (4 types), EARS acceptance criteria validation, and anti-pattern scanning. Use during code review gates, phase audits, milestone verification, and deployment readiness. Middle gate in the quality triad (lifecycle → spec → evidence). Routes to gate-evidence-truth on PASS; STOPS with gap report on FAIL. Includes remediation routing to hm-spec-driven-authoring, hm-test-driven-execution, and hm-debug for fix workflows. Triggers on: "spec compliance", "verify against spec", "gap analysis", "compliance gate", "phase audit gate", "acceptance criteria check", "spec-to-code", "deployment readiness", "triad gate", "spec gate middle", "quality triad".
- License
- MIT
- Metadata
- role: domain-execution · layer: 2 · pattern: P2 · version: 1.1.0 · classification: internal-quality-gate · triad-position: middle
- Instructions
- 168 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (11)
- SKILL.md
- evals.json · evals/
- .gitkeep · metrics/
- rich-gate-scorecard.md · metrics/
- adopted-patterns.md · references/
- anti-patterns.md · references/
- evaluation-checklist.md · references/
- perspective-rubrics.md · references/
- traceability-matrix-template.md · references/
- run-compliance-check.sh · scripts/
- compliance-report.md · templates/
SKILL.md (first lines)
# Gate: Spec Compliance
## Overview
Internal quality gate evaluating whether implementations match specifications. **Middle gate** in the quality triad (lifecycle → spec → evidence). Receives from `gate-lifecycle-integration` after lifecycle check passes; routes to `gate-evidence-truth` on PASS, STOPS with gap report on FAIL. Uses contextual perspective activation (PM, Architect, or Dev lenses) based on gate context.
## On Load
1. Read `references/evaluation-checklist.md` — per-dimension audit criteria
2. Read `references/perspective-rubrics.md` — contextual activation rules and rubrics
3. Read `references/anti-patterns.md` — seven lethal anti-patterns to detect
4. Read `references/adopted-patterns.md` — EARS templates, gap detection algorithm, falsifiable AC patterns
## Do NOT Load / Preconditions
Skip when: performing implementation (not gate/audit), no SPEC.md exists (route to `hm-spec-driven-authoring`), running research/exploration, or `gate-lifecycle-integration` hasn't passed yet.
Entry preconditions: SPEC.md with falsifiable requirements exists, implementation artifacts exist, calling workflow provides gate context (code-review, phase-audit, milestone-verification, integration-check, deployment-readiness). Block and return if SPEC.md lacks falsifiable requirements.
## Core Evaluation Workflow
Execute this decision tree. Every node must produce evidence; do not skip nodes.
```text
START
├─ [1] Does SPEC.md have falsifiable requirements?
│ └─ NO → BLOCK: route to hm-spec-driven-authoring
├─ [2] Each requirement maps to PLAN.md task?
│ └─ NO → GAP: spec-without-plan
├─ [3] Each plan task maps to code artifact?
│ └─ NO → GAP: plan-without-code
├─ [4] Each requirement maps to test case?
│ └─ NO → GAP: spec-without-test
├─ [5] All tests pass?
│ └─ NO → FAIL: failing tests block compliance
├─ [6] No orphan code (code without spec origin)?
│ └─ NO → WARNING: code-without-spec (document, do not block)
├─ [7] Acceptance criteria all met?
│ └─ NO → FAIL: incomplete acceptance
└─ PASS → route to gate-evidence-truth
```
## Contextual Perspective Activation
Activate evaluation lenses based on gate context. Load `references/perspective-rubrics.md` for full rubrics.
| Context | Primary Lens | Secondary Lens | Emphasis |
|---------|-------------|----------------|---------|
| Code review | Dev | Architect | Interface contracts, testability |
| Phase audit | Architect | PM | Traceability, gap analysis |
| Milestone verification | PM | Architect | Deliverable completeness, scope retention |
| Integration check | Architect | Dev | Behavioral compliance, interface matching |
| Deployment readiness | All three | — | Full compliance verification |
Activation rules:
1. Identify gate context from the calling workflow or command.
2. Load primary lens rubric; apply secondary lens for cross-checks.
3. For deployment readiness, apply all three lenses sequentially.
4. Record which lens produced each finding.
## Gap Detection
Four gap types detected via bidirectional sweeps (full algorithm in `references/adopted-patterns.md` Pattern 4):
- **SPEC-WITHOUT-CODE** (HIGH, blocks PASS) — forward sweep: each REQ-ID → grep for implementation
- **CODE-WITHOUT-SPEC** (MEDIUM, document only) — backward sweep: each code file → check REQ-ID origin
- **SPEC-WITHOUT-TEST** (HIGH, blocks PASS) — forward sweep: each REQ-ID → grep for test case
- **TEST-WITHOUT-SPEC** (LOW, document only) — backward sweep: each test → check REQ-ID linkage
Produce gap matrix using `references/traceability-matrix-template.md`.
## EARS Acceptance Criteria Validation
Validate each AC against EARS templates (full catalog in `references/adopted-patterns.md` Pattern 2). Each AC must satisfy the GIVEN/WHEN/THEN/MEASURE/PASS/FAIL structure. Reject any AC missing these fields. EARS types: Ubiquitous, State-driven, Event-driven, Unwanted, Optional, Complex — match each AC to at least one type and verify all placeholders contain specific, measurable content.
## Anti-Pattern Detection
Scan for seven lethal anti-patterns (full catalog with detection methods in `references/anti-patterns.md`). Critical/High patterns block PASS; Medium patterns require documentation. Key signals: coverage theater (high count, shallow assertions), trust without evidence (claims without runnable verification), orphan artifact drift (SPEC updated but PLAN/TEST not regenerated), self-certification (implementer verifies own work).
## Cross-Skill Routing
```text
gate-lifecycle-integration ──PASS──→ gate-spec-compliance (this skill)
├─ PASS → gate-evidence-truth
└─ FAIL → STOP (produce gap report via templates/compliance-report.md)
```
| Route | Condition | Action |
|-------|-----------|--------|
| Incoming | `gate-lifecycle-integration` passes | Begin evaluation |
| Pass | All 7 decision nodes pass | Route to `gate-evidence-truth` |
| Fail | Any HIGH/CRITICAL gap found | STOP, produce gap report |
| Block | No SPEC or no implementation | Return blocked state |
| Warning | CODE-WITHOUT-SPEC only | Document and continue |
## Remediation Routing (on FAIL)
| Failure Condition | Route To |
|-------------------|----------|
| No SPEC or non-falsifiable requirements | `hm-spec-driven-authoring` |
| SPEC-WITHOUT-CODE (HIGH) | `hm-spec-driven-authoring` (review spec → update plan) |
| SPEC-WITHOUT-TEST (HIGH) | `hm-test-driven-execution` (RED/GREEN/REFACTOR) |
| CODE-WITHOUT-SPEC (MEDIUM) | Architectural review (remove or document) |
| Vague acceptance criteria | `hm-spec-driven-authoring` (re-derive ACs) |
| Coverage Theater (AP-01) | `hm-test-driven-execution` (deepen assertions) |
| Self-Certification (AP-07) | Independent reviewer (re-run gate with different agent) |
| Behavioral mismatch (tests pass ≠ spec) | `hm-debug` (investigate assertion vs spec conflict) |
| Requirement gap (unclear spec) | `hm-requirements-analysis` or human clarification |
| All remediation exhausted | Human (escalate with gap report) |
On successful remediation, re-run full triad: `gate-lifecycle-integration` → this gate → `gate-evidence-truth`.
## Boundary Rules
| Nearby Skill | Boundary |
|-------------|----------|
| `hm-spec-driven-authoring` | Authors requirements/ACs. This skill verifies they are met. |
| `gate-lifecycle-integration` | Precedes this gate. Receives only after lifecycle check passes. |
| `gate-evidence-truth` | Succeeds this gate. Receives only after spec compliance passes. |From shynlee04/hivemind-plugin, MIT.
More from shynlee04/hivemind-plugin
- 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-context-absorb
shynlee04
Multi-wave swarm protocol for absorbing dense context (links, text, files, stories, events, actors) into persistent session-context-prompt.md.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-command-parser
shynlee04
This skill should be used only when parsing $ARGUMENT propositional commands from OpenCode command strings.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-lifecycle-integration
shynlee04
Internal quality gate that evaluates whether Hivemind harness implementations correctly participate in the runtime lifecycle — covering 9-surface mutation…
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-skill-router
shynlee04
Maps meta-builder task domains to hf-* skill loading bundles with priority ordering.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hm-l2-completion-looping
shynlee04
Guardrail workflows against regression with non-completion detection and automatic loop-back.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-delegation-gates
shynlee04
Enforce pre-delegation authorization gates before agent dispatch.
SkillCFreshness: C★ 51Claude Code +9
Signals
- Stars
- 51
- Forks
- 16
- Open issues
- 21
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.0
- License
- MIT
- Repository
- github.com/shynlee04/hivemind-plugin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shynlee04
- 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get gate-l3-spec-compliance running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
gate-l3-spec-compliance skill. Agent Mart. https://agentmart.dev/skills/shynlee04-gate-l3-spec-compliance (last updated 2026-10-24)