Agent skill

Quint Execute Spec

by quint-co in quint-co/quint-llm-kit

Implement code against an existing Quint specification. An agent skill from quint-co/quint-llm-kit.

Apache-2.0Auto-check passedDevelopment

Install Quint Execute Spec

skills CLI
$ npx skills add quint-co/quint-llm-kit --skill quint-execute-spec -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install quint-co/quint-llm-kit quint-execute-spec --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/quint-co/quint-llm-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/quint-llm-kit-plugin/skills/quint-execute-spec .claude/skills/quint-execute-spec && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quint-execute-spec
GitHub stars
104
Token cost
~2.6k tokens
SKILL.md length
1,119 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implement code against an existing Quint specification. An agent skill from quint-co/quint-llm-kit.

  • Works in 5 steps: Orient → Research (Compact) → Plan → …
  • The user wants to refactor code
  • SKILL.md covers When to use this skill, Core principle: spec is ground…, Workflow and Phase 0: Orient, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Quint Execute Spec is an agent skill from quint-co/quint-llm-kit. Implement code against an existing Quint specification. Uses Research → Plan → Implement workflow (ACE-FCA style) grounded by the spec as the source of truth. Use when the user wants to refactor code, add a new feature, or close a gap between implementation and spec — with the Quint spec as the formal constraint that all changes must satisfy.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring. The repository describes itself as: Agents and tools for using Quint with LLMs. The licence is Apache-2.0.

When your agent uses it

  • The user wants to refactor code
  • Add a new feature
  • Close a gap between implementation and spec — with the Quint spec as the formal constraint that all changes must satisfy

Example prompts

  • “/quint-execute-spec”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Orient
  2. Research (Compact)
  3. Plan
  4. Implement
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit cc75369. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quint Execute Spec loads about 2.6k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,119 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from quint-co/quint-llm-kit at commit cc75369, republished under its Apache-2.0 licence (© quint-co). 1,119 words, ~2,630 tokens.

Download SKILL.mdSave it as .claude/skills/quint-execute-spec/SKILL.md (or your agent's skills folder).
name
quint-execute-spec
description
Implement code against an existing Quint specification. Uses Research → Plan → Implement workflow (ACE-FCA style) grounded by the spec as the source of truth. Use when the user wants to refactor code, add a new feature, or close a gap between implementation and spec — with the Quint spec as the formal constraint that all changes must satisfy.

Execute the Quint Specification

When you have a Quint spec and want to make a change to the codebase, this skill grounds the work in the spec. The spec is not advisory — it is the formal statement of what the system must do. All changes must satisfy it. The spec is reviewed, then the code follows.

When to use this skill

  • Refactor: restructure code while preserving behavior (spec stays fixed; code must still satisfy it)
  • New feature: add functionality described by or consistent with the spec
  • Gap closure: code has drifted from the spec; bring it back into alignment
  • Spec-first change: update the spec first, then implement to satisfy it

If no spec exists yet, use quint-modeling first to create the grounding artifact.


Core principle: spec is ground truth

This skill is the post-spec half of the loop: Research and Plan are anchored by the existing .qnt file and compact gap analysis—not by prose plans alone. Implement proceeds only with the verification gates in Phases 3–4 (Quint tool runs after substantive edits). Natural-language plans are not proof; tool results are.

Never modify the spec to make a failing verification pass. If the spec must change (behavior is intentionally changing), stop and present the proposed spec change to the user before touching any code. The spec change is the highest-leverage review point.

Context utilization target: 40–60% during research and planning. Catalog the codebase compactly rather than reading everything into the main context.


Workflow

[Quint spec] + [Desired change description]
         ↓
┌────────────────────────────────────────────────────────────┐
│ Phase 0: Orient                                             │
│   → Read the spec: what does it guarantee?                 │
│   → Clarify the change: what new behavior is needed?       │
│   → Decide: is this a spec change or a code change?        │
└────────────────────────────────────────────────────────────┘
         ↓
┌────────────────────────────────────────────────────────────┐
│ Phase 1: Research (compact)                                 │
│   → Map the gap between spec and code                      │
│   → Output: compact gap analysis (target: under 300 lines) │
└────────────────────────────────────────────────────────────┘
         ↓
┌────────────────────────────────────────────────────────────┐
│ Phase 2: Plan                                               │
│   → Precise steps: files to change, expected state delta   │
│   → For each step: how to verify it satisfies the spec     │
│   → Identify which Quint properties to run at each gate    │
│   → Present plan to user before implementing               │
└────────────────────────────────────────────────────────────┘
         ↓
┌────────────────────────────────────────────────────────────┐
│ Phase 3: Implement                                          │
│   → Follow plan phase by phase                             │
│   → After each phase: run Quint tools, verify properties   │
│   → Compact status back into the plan after each phase     │
└────────────────────────────────────────────────────────────┘
         ↓
┌────────────────────────────────────────────────────────────┐
│ Phase 4: Verify                                             │
│   → Run all witnesses (expect VIOLATED)                    │
│   → Run all invariants (expect no violation)               │
│   → If any invariant fails: return to Phase 2, fix plan    │
└────────────────────────────────────────────────────────────┘

Phase 0: Orient

Read the spec and understand the desired change.

  1. Read the spec. What does it model? What invariants does it assert? What witnesses does it have?
  2. Read the Spec Handoff section (if present). Which source files does the spec correspond to?
  3. Clarify the change. Ask the user:
    • What behavior is changing? (for refactors: nothing should change; for features: what is new?)
    • Should the spec change, or must the code satisfy the existing spec?
    • Is there an existing failing invariant, or is this forward-looking?

Lightweight path (skip research for simple changes): If the change is small (single function, one module, no new state), skip Phase 1 and go straight to Phase 2.


Phase 1: Research (Compact)

For non-trivial changes, produce a compact gap analysis between spec and code. Keep this focused — the goal is a compact, accurate summary, not a full codebase read. Answer these questions:

Given the Quint spec at [spec path] and the source files [file list from handoff]:

  1. For each state variable in the spec, find where it is managed in source code
  2. For each action in the spec, find the corresponding function(s) in source code
  3. Identify any spec behaviors that have no corresponding source code (gaps)
  4. Identify any source code behaviors not captured in the spec (out-of-scope)
  5. For the change [change description]: which source files are affected?

Output a compact summary. Do not read files that are not relevant. Target: under 300 lines.

If the analysis missed something critical, do a targeted follow-up read before proceeding.


Phase 2: Plan

Create a precise implementation plan. Each plan step must:

  • Name the file and function to change
  • Describe the expected state delta (what changes in the system's behavior)
  • Specify the Quint property to run as a verification gate
  • Be small enough to verify independently
Plan format
markdown
## Change: [one-sentence description]

### Spec impact
- Properties that must continue to hold: [list]
- Properties that will change (if any): [list] — REQUIRES USER APPROVAL BEFORE IMPLEMENTATION

### Implementation steps

#### Step 1: [file] — [what changes]
- Expected behavior change: [description]
- Quint verification gate: `quint run` / `quint verify` — invariant `[name]`

#### Step 2: [file] — [what changes]
...

### Rollback criteria
If invariant `[name]` fails after Step N, stop and return to planning. Do not proceed.

Present the plan to the user before implementing. Human review of the plan has higher leverage than review of the code.

If the plan requires modifying the spec, present the spec change explicitly and get approval first.


Phase 3: Implement

Follow the plan. After each step:

  1. Run quint typecheck and fix all reported errors.
  2. Run the step's verification gate (quint run / quint test / quint verify)
  3. If the gate fails: stop, diagnose, return to Phase 2. Do NOT fix by loosening the spec.
  4. Compact current status back into the plan file after each step. This keeps the context window lean for the next step.
Show full SKILL.md (463 more words)Show less
Context compaction pattern

After each step is verified, compact progress:

markdown
## Status (after Step N)
- Steps 1–N: DONE ✓
- Current: Step N+1
- Blocking issues: [none / description]
- Next verification gate: [invariant name]

Write this to the plan file. In complex implementations, start a new context window with the updated plan rather than continuing in an overloaded context.

Quint tool usage during implementation
NeedTool
Type-check spec after any editRun quint typecheck; fix all reported errors before continuing
Verify witnesses are reachablequint run with witness as invariant
Verify safety invariants holdquint run with --max-samples 5000 or quint verify
Interactive explorationquint REPL session + quint REPL eval (only when CLI is insufficient)

Phase 4: Verify

Run the full property suite.

Witnesses (liveness check)

All witnesses must be violated (meaning the expected state is reachable):

  • Use quint run with witness name in witnesses (or mapped invariant selector).
  • Expected result: witness reachability is reported (equivalent to Counterexample found in raw CLI wording).
Safety invariants

All invariants must not be violated:

  • Use quint run (or quint verify when stronger coverage needed).
  • Expected result: no invariant violation reported.
If a safety invariant is violated
  1. Read the counterexample trace step by step
  2. Identify which implementation step introduced the violation
  3. Return to Phase 2 — fix the plan, not the spec
  4. If the spec's invariant is genuinely wrong, present the proposed spec change to the user
If a witness is satisfied (action is unreachable)

The implementation has over-constrained behavior — a path that should be reachable is blocked. Return to Phase 2 and identify which step introduced the constraint.


Spec change protocol

If the desired change requires updating the spec (new state variables, changed invariants):

  1. Draft the spec change — show the diff to the user before any code changes
  2. Verify the updated spec in isolation — typecheck, run witnesses, run invariants
  3. Get explicit approval — do not proceed to code until the spec change is approved
  4. Then implement the code to satisfy the updated spec

This preserves the spec as the source of truth even when it evolves.


What NOT to do

Anti-patternWhy it breaks the workflow
Modify spec to pass a failing invariantDestroys the spec as ground truth
Skip verification gates between stepsBreaks incremental verification; bugs compound
Read the whole codebase into main contextFloods context; catalog compactly in Phase 1 instead
Plan in prose, implement "roughly"Plan must be precise enough to verify step-by-step
Treat spec as advisory documentationSpec is a formal constraint — machine-checkable
Fix invariant failure by weakening the invariantInvariants must be fixed in code, not loosened

Lightweight path for simple changes

For small, well-understood changes (single function, no new state):

  1. Read the relevant spec module
  2. Identify which invariant(s) cover the changed behavior
  3. Make the change
  4. Run quint run with those invariants
  5. Done

Skip Phase 0–1. Use Phases 2–4 only for non-trivial changes.

© quint-co, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in quint-llm-kit-plugin/skills/quint-execute-spec of quint-co/quint-llm-kit.

Open the folder on GitHubat commit cc75369

Compare with similar skills

Quint Execute Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quint Execute Spec compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quint Execute Spec this skillquint-co/quint-llm-kit104—~2.6kAutomated safety check: PassApache-2.0
Guidelinesakash-network/node1.1k20 repos~577Automated safety check: PassMIT
Component Refactoringlangflow-ai/langflow155k—~3.5kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
ast-grep Structural Searchcode-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMIT
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT

Similar skills

  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 20 repos~577 tokens
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Codex

    skills-directory/skill-codex

    A skill your agent uses when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

    1.5k GitHub starsUsed in 3 repos~1.8k tokens
    DevelopmentAuto-check passed

More from quint-co/quint-llm-kit

  • Quint Lang

    quint-co/quint-llm-kit

    Quint language and CLI reference — the expert on Quint syntax, operators, types, basicSpells, the toolchain (typecheck/run/test/verify), and how to read simulation and counterexample output.

    104 GitHub stars~4.3k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Quint Execute Spec

What does Quint Execute Spec do?

Implement code against an existing Quint specification. An agent skill from quint-co/quint-llm-kit. Quint Execute Spec is an agent skill from quint-co/quint-llm-kit. Implement code against an existing Quint specification.

When should I use Quint Execute Spec?

Quint Execute Spec fits situations like: the user wants to refactor code; add a new feature; close a gap between implementation and spec — with the Quint spec as the formal constraint that all changes must satisfy.

How do I install Quint Execute Spec in Claude Code?

Run `npx skills add quint-co/quint-llm-kit --skill quint-execute-spec -a claude-code`. Or copy the skill folder (quint-llm-kit-plugin/skills/quint-execute-spec in quint-co/quint-llm-kit) into .claude/skills/quint-execute-spec in your project. Claude Code loads it when a task matches its description.

How do I install Quint Execute Spec in Codex?

Run `npx skills add quint-co/quint-llm-kit --skill quint-execute-spec -a codex`. Or copy the skill folder (quint-llm-kit-plugin/skills/quint-execute-spec in quint-co/quint-llm-kit) into .agents/skills/quint-execute-spec in your project. Codex loads it when a task matches its description.

Can I use Quint Execute Spec in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add quint-co/quint-llm-kit --skill quint-execute-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quint-execute-spec, .gemini/skills/quint-execute-spec, .github/skills/quint-execute-spec and .opencode/skills/quint-execute-spec in your project.

What does Quint Execute Spec need to run?

SKILL.md names no scripts, command-line tools or credentials: Quint Execute Spec is instructions for the agent only.

Does Quint Execute Spec access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Quint Execute Spec safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quint Execute Spec use?

Quint Execute Spec is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quint Execute Spec use?

About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quint Execute Spec?

Skills that share tags, products or a category with Quint Execute Spec: Guidelines (akash-network/node, 1.1k stars), Component Refactoring (langflow-ai/langflow, 155k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars) and ast-grep Structural Search (code-yeongyu/oh-my-openagent, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quint Execute Spec?

quint-co (a GitHub organization) maintains it in quint-co/quint-llm-kit, which has 104 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on July 1, 2026.

Source: quint-co/quint-llm-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.