Skip to content
Back to skills

spec

ASecurity

Spec Harness turns substantial work into a recoverable, verifiable task package. Use for spec commands, Spec Harness updates, and work spanning acceptance criteria, implementation, or delivery. Skip small reversible fixes, read-only investigation, and experiments.

  • 318 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added October 6, 2026
developmentpythongobashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add MicTx/spec-harness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mictx-spec/badge)](https://www.skillsdirectory.com/skills/mictx-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spec
description: >-
  Spec Harness turns substantial work into a recoverable, verifiable task package. Use for spec
  commands, Spec Harness updates, and work spanning acceptance criteria, implementation, or delivery.
  Skip small reversible fixes, read-only investigation, and experiments.
---

# Spec Workflow

Update a stable install: `spec-harness update` (`--check` to inspect; fallback: `~/.local/bin/spec-harness`). It installs releases, not `main`.

A v3 package stores `spec.md`, `tasks.md`, and `runs.jsonl` under `.spec/specs/YYYY-MM-DD_slug/`. Run the CLI via `python3 <skill-dir>/scripts/spec.py` (or `python3 scripts/spec.py` in-repo); add `--json` for machine output.

## Two Phases

`/spec` routes an unbound goal to `plan` (or the [two-call quick path](references/exec.md) for a small reversible goal on a clean checkout), an unfrozen bound package to `update`, and a frozen bound package to execution. Plan backward from failure, then `plan-go`.

No session brief: run `python3 <skill-dir>/scripts/spec.py next`. On fresh failure evidence, replan within the frozen goal and acceptance. Stop uses verified checkpoints and unseen blockers (or `reset_recommended` churn handoff to a fresh session); see [recovery](references/exec.md#delivery-recovery).

## Autonomy Contract

The user is the last resort, not the first; climb the ladder: resolve from repository evidence and frozen policy, then decide reversible in-scope work yourself. Park irreversible or unauthorized work, at most four cards, once per package. Re-asking what evidence already answers is a violation. Do not assign the user a repair; stop at `delivered`, `parked-only`, or `stalled`.

## Hard Rules

1. Tasks require `id`, path-glob `boundary`, and backticked non-trivial `verify` (no `true`, `:`, `exit 0`, or standalone `echo`/`printf` unless `origin: support`); optional `expect` runs a planning probe. Only recorded checkpoints advance the DAG.
2. Before `plan-go`, edit only `.spec/`. `plan-go` fails fast on pre-existing foreign staged paths; unstaged dirt inside boundaries may deliver, outside blocks.
3. Spec owns commit, archive, merge, and push; active or pending-handoff archived packages reject direct Git commit/push and hook bypasses (`--no-verify`, `-n`, `hooksPath`).
4. Standard `plan-go` binds a non-protected branch (worktree from protected branches). Quick fixes verify in place and never commit or push. Never stash user changes.
5. Boundary edits require a matching task or `plan-amend`; audit Bash diffs before verify.
6. Irreversible forks require `by: user <reference>`. New dependencies and compatibility breaks need charter authority.
7. `check` preflights the gate (including `spec.py review --pass` when `- review: required`), re-verifies distinct frozen commands on the candidate tree, archives, and applies V4 (`--check-only` never verifies/delivers).

## Entry & Sub-Intents

| Invocation | Intent |
| --- | --- |
| `/spec <goal>` | Plan when unbound; otherwise continue bound package |
| `/spec plan <goal>` | Create or refine package: lint, forks, `plan-go` |
| `/spec run [goal]` | Resume bound package or run small goal on quick path |
| `/spec repair <slug>` | Create regular v3 repair package (`kind: repair`, `repair-of`) |
| `/spec check` | Verify candidate tree, repair in scope, archive and deliver (`--check-only` diagnoses) |
| `/spec push` | Complete authorized V4 `merge`/`push` handoff on this branch |
| `/spec doctor` | Check or repair runtime, session hooks, legacy Git hooks, and hygiene |
| `/spec status` | Read-only `spec.py status`: next action, archive, and counts |
| `/spec purge` | `spec.py purge`: unstage `.spec` records, keep local files |

Planning: [plan](references/plan.md). Execution: [exec](references/exec.md). Format: [format](references/format.md). Philosophy: [philosophy](references/philosophy.md). Git: [git](references/git.md).

Files in this skill

  • CHANGELOG.md12.4 KB
  • CODE_OF_CONDUCT.md5.4 KB
  • CONTRIBUTING.md4 KB
  • PUBLIC_MANIFEST.json16.1 KB
  • README-en.md14.3 KB
  • RELEASE.md2.8 KB
  • SECURITY.md1.9 KB
  • SKILL.md14.4 KB
  • SUPPORT.md1 KB
  • agent-plugin/README.md2.9 KB
  • agent-plugin/claude-plugin.json.template246 B
  • agent-plugin/plugin.json.template284 B
  • agents/confirmer.md2.8 KB
  • agents/openai.yaml2.1 KB
  • agents/orchestrator.md2.1 KB
  • agents/planner.md1.4 KB
  • agents/reviewer.md2.2 KB
  • docs/README.md1.3 KB
  • docs/git-workflow.en.md4.1 KB
  • docs/git-workflow.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.