Agent skill

Cavekit Methodology

by JuliusBrussee in JuliusBrussee/caveman-code

Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it.

MITAuto-check passed

Install Cavekit Methodology

skills CLI
$ npx skills add JuliusBrussee/caveman-code --skill cavekit-methodology -a claude-code

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

GitHub CLI
$ gh skill install JuliusBrussee/caveman-code cavekit-methodology --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/JuliusBrussee/caveman-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/coding-agent/skills/cavekit-methodology .claude/skills/cavekit-methodology && 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
cavekit-methodology
GitHub stars
942
Token cost
~3.3k tokens
SKILL.md length
1,526 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it.

  • Works in 5 steps: Draft → Architect: All domains have kits… → Architect → Build: Plans reference kits,… → Build → Inspect: Code builds, tests pass… → …
  • Starting a Cavekit project
  • SKILL.md covers Core Principle: Specify Before…, The Scientific Method Analogy, The 5 Hunt Phases and Decision Matrix: When to Use…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cavekit Methodology is an agent skill from JuliusBrussee/caveman-code. Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it. Use when starting a Cavekit project, structuring an existing codebase as kits/plans, or routing between sub-skills.

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

The repository describes itself as: Frozen — terminal coding agent measured at 1.93× fewer tokens than Codex CLI. Still works; active development moved to JuliusBrussee/caveman (caveman wrap). The licence is MIT.

When your agent uses it

  • Starting a Cavekit project
  • Structuring an existing codebase as kits/plans
  • Routing between sub-skills

Example prompts

  • “/cavekit-methodology”

Requirements

  • Pre-approved tools (allowed-tools): read, grep

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Draft → Architect: All domains have kits with testable acceptance criteria. Human has reviewed for completeness.
  2. Architect → Build: Plans reference kits, define implementation sequence, and include test strategies. Architecture decisions validated.
  3. Build → Inspect: Code builds, tests pass at current coverage level, implementation tracking is up to date.
  4. Inspect → Monitor: Convergence detected (changes decreasing iteration-over-iteration). Remaining changes are trivial.
  5. Monitor → Draft (cycle): Gap found or new requirement identified. Revise kits and restart the cycle.

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • read
    • grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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

Cavekit Methodology loads about 3.3k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 1,526 words of instructions outside code blocks.

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

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 JuliusBrussee/caveman-code at commit 3a21be1, republished under its MIT licence (© JuliusBrussee). 1,526 words, ~3,331 tokens.

Download SKILL.mdSave it as .claude/skills/cavekit-methodology/SKILL.md (or your agent's skills folder).
name
cavekit-methodology
description
Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it. Use when starting a Cavekit project, structuring an existing codebase as kits/plans, or routing between sub-skills.
allowed-tools
read, grep
effort
medium

Cavekit Methodology

Core Principle: Specify Before Building

Always define what you want before telling agents how to build it. Go through a cavekit stage — never jump straight from raw requirements to implementation.

Cavekit is a methodology for building software with AI coding agents that puts kits at the center of the development process — code is derived from them, not the other way around. Whether starting from scratch or modernizing an existing system, the principle is the same:

  • Greenfield projects: reference material → kits → code
  • Rewrites: old code → kits → new code

In both cases, the kits become a living contract that agents consume to continuously build, validate, and refine the application.

Why Kits Are the First-Class Citizen
PropertyBenefit
StructuredOrganized as a navigable tree, enabling agents to load only what they need
Human-legibleEngineers can audit requirements at a higher level than code
Stack-independentDecoupled from any single framework or language
Independently evolvableKits can be refined without touching implementation
VerifiableEvery requirement includes acceptance criteria agents can check

Key Insight: Well-written kits with strong validation make your application reproducible — any agent can rebuild it from the kits alone. Think of it as continuous regeneration.


The Scientific Method Analogy

LLMs are inherently non-deterministic — like running an experiment, each individual call may yield different results. But through the right methodology — clear hypotheses, controlled conditions, and repeated trials — we extract reliable, reproducible outcomes from a stochastic process.

Cavekit applies the scientific method to software construction — hypothesize, test, observe, refine.

LayerAnalogyWhat It Does
LLM callsIndividual experimentsEach run may produce different results; no single output is authoritative
KitsHypothesesDefine what you expect to observe — the predicted behavior
Validation gatesControlled conditionsEnsure reproducibility by constraining what counts as a valid outcome
Convergence loopsRepeated trialsBuild statistical confidence through successive passes
Implementation trackingLab notebookRecord what was tried, what worked, and what failed
RevisionRevising the hypothesisWhen results contradict expectations, update the theory upstream

The outcome: a disciplined, repeatable engineering process layered on top of probabilistic generation.


The 5 Hunt Phases

The Hunt is the four-phase lifecycle: Sketch, Map, Make, Check. Each phase has dedicated prompts that drive it.

PhaseInputOutputAI RoleHuman Role
DraftSource materials, domain knowledge, existing systemsImplementation-agnostic kitsExtract requirements, structure knowledgeVerify kits capture intent accurately
ArchitectKits + framework researchFramework-specific implementation plansDesign architecture, break down work, order stepsApprove architectural choices
BuildPlans + kitsWorking code + tests + tracking docsWrite code, run tests, check against kitsWatch for drift and blockers
InspectFailed validations, gaps, manual fixesUpdated kits/plans via revisionIdentify root causes, propagate fixes upstreamEvaluate outcomes, set priorities
MonitorRunning application, git historyIssues, anomalies, progress reportsScan for regressions, surface metricsInterpret reports, guide next steps
Phase Transitions

Each phase has gate conditions that must be met before moving to the next:

  1. Draft → Architect: All domains have kits with testable acceptance criteria. Human has reviewed for completeness.
  2. Architect → Build: Plans reference kits, define implementation sequence, and include test strategies. Architecture decisions validated.
  3. Build → Inspect: Code builds, tests pass at current coverage level, implementation tracking is up to date.
  4. Inspect → Monitor: Convergence detected (changes decreasing iteration-over-iteration). Remaining changes are trivial.
  5. Monitor → Draft (cycle): Gap found or new requirement identified. Revise kits and restart the cycle.

The Inspect phase is where the human serves as reviewer and decision-maker, not hands-on coder. You monitor the process, request changes as needed, and make systemic improvements to kits and prompts.

For the full Hunt phase reference, see references/hunt-phases.md.


Decision Matrix: When to Use Cavekit

Full Cavekit

Use when the project has significant scope, evolving requirements, or needs autonomous agent execution.

IndicatorThreshold
Codebase size50+ source files
RequirementsEvolving, multi-domain
Agent coordinationMulti-agent or multi-prompt pipelines
EnvironmentProduction, security-sensitive, brownfield
Team structureMulti-team or cross-team
Execution modeLong-running autonomous work (overnight, unattended)

What you get: Full Hunt lifecycle, context directory with kits/plans/impl tracking, prompt pipeline, convergence loops, revision, validation gates.

Lightweight Cavekit

Use when scope is moderate — too complex for ad-hoc but not worth a full pipeline.

IndicatorThreshold
Codebase size5-50 files
RequirementsMostly clear, focused
Agent coordinationSingle agent, possibly with sub-agents
Execution modeInteractive with occasional iteration loops

What you do:

  1. Write a focused context/kits/cavekit-task.md capturing requirements
  2. Add a context/plans/plan-task.md sequencing the implementation
  3. Skip full Hunt — just run an iteration loop against the plan

This is the "Cavekit floor" — most of the benefit without the overhead of a full multi-phase pipeline.

Skip Cavekit

Use when the task is trivially small.

IndicatorThreshold
Codebase sizeLess than 5 files
Task typeOne-off tools, simple bug fixes, exploratory prototypes
ImplementationFits comfortably in one agent session without needing external references

Heuristic: If the whole task fits in one context window with room to spare, full Cavekit adds more overhead than value.

Growth Path

Start with lightweight Cavekit even if the project is small. If the scope expands, you already have the structure in place to scale up. It is much harder to retrofit kits onto a large codebase than to grow a cavekit directory from the beginning.


The CI Pipeline Analogy

Cavekit mirrors a build pipeline — each stage transforms input into validated output, with feedback loops that propagate corrections upstream:

Traditional CI/CD:
  Code → Build → Test → Deploy

Cavekit AI Pipeline:
  Cavekit Change
    → Generate Plans (iteration loop)
    → Generate Implementation (iteration loop)
    → Validate (Tests + Review)
    → Human Audit (Monitor & Steer)
    → [Gap Found]
    → Revise
    → Cavekit Change (cycle repeats)

Every stage can run as an iteration loop — the same prompt executed repeatedly until output stabilizes. The iteration loop is what transforms nondeterministic LLM output into predictable, validated software.

Show full SKILL.md (640 more words)Show less
The Iteration Loop

The iteration loop is the fundamental execution unit in Cavekit. Execute the same prompt against the same codebase multiple times until the delta between runs approaches zero.

Mechanics:

  1. Execute a prompt against the current codebase
  2. The agent inspects git history and tracking documents to understand what has already been done
  3. The agent applies changes and commits its progress
  4. Return to step 1

Convergence signal: A shrinking volume of modifications across successive passes — the diff gets smaller each time until only cosmetic changes remain. You are looking for diminishing returns, not absolute zero.

When the loop isn't stabilizing, the problem is upstream — fix the inputs (specs, validation, coordination), not the iteration count.

If the diff is not shrinking between runs:

  • Kits are ambiguous (agents interpret them differently each time)
  • Validation criteria are too loose (the agent has no way to confirm it got things right)
  • Multiple agents are overwriting each other's work (ownership boundaries are unclear)

Cross-References to Sub-Skills

Cavekit is composed of techniques that work together. This methodology skill is the index — each sub-skill below is self-contained but cross-references others.

Foundation Skills
SkillPurposeWhen to Use
ck:cavekit-writingWrite implementation-agnostic kits with testable acceptance criteriaDraft phase — always the first step
ck:context-architectureOrganize context for progressive disclosureProject setup and ongoing maintenance
ck:impl-trackingTrack implementation progress, dead ends, test healthBuild and Inspect phases
ck:validation-firstDesign validation gates agents can executeAll phases — validation is continuous
Pipeline Skills
SkillPurposeWhen to Use
ck:prompt-pipelineDesign numbered prompt pipelines for the HuntSetting up automation
ck:revisionTrace bugs back to kits and fix at the sourceInspect phase — after finding gaps
cavekit:brownfield-adoptionAdopt Cavekit on existing codebasesStarting Cavekit on legacy projects
Advanced Skills
SkillPurposeWhen to Use
ck:peer-reviewUse a second agent to challenge the firstQuality gates, architecture review
cavekit:speculative-pipelineStagger pipeline stages for parallelismOptimizing long pipelines
ck:convergence-monitoringDetect convergence vs ceilingMonitoring iteration loops
cavekit:documentation-inversionTurn documentation into agent-consumable skillsLibrary/module documentation
Integration with Existing Skills

Cavekit works with existing skills, not as a replacement:

Existing SkillCavekit Integration
superpowers:brainstormingUse during cavekit generation to explore requirements
superpowers:writing-plansUse during plan generation for structured planning
superpowers:test-driven-developmentTDD-within-Cavekit: cavekit acceptance criteria become failing tests
superpowers:verification-before-completionUse for gate validation in every phase
superpowers:executing-plansUse during implementation phase
superpowers:dispatching-parallel-agentsUse for agent team coordination

Quick Start

For a New Project (Greenfield)
  1. Set up context directory:

    context/
    ├── refs/           # Source materials (PRDs, language specs, research)
    ├── kits/     # Implementation-agnostic kits
    ├── plans/          # Framework-specific implementation plans
    ├── impl/           # Living implementation tracking
    └── prompts/        # Hunt pipeline prompts
  2. Write kits from your reference materials (see ck:cavekit-writing)

  3. Generate plans from kits (see ck:prompt-pipeline)

  4. Implement with validation gates (see ck:validation-first)

  5. Track progress in implementation documents (see ck:impl-tracking)

  6. Iterate — when gaps are found, revise kits (see ck:revision)

For an Existing Project (Brownfield)
  1. Set up context directory (same structure as above)
  2. Designate existing codebase as reference material
  3. Generate kits from code (see cavekit:brownfield-adoption)
  4. Validate kits match behavior — run tests against generated kits
  5. Proceed with normal Hunt — future changes flow through kits first

Summary

Cavekit is not a tool — it is a methodology. The core loop is simple:

  1. Describe what you want (kits with testable criteria)
  2. Let agents build it (plans → implementation → validation)
  3. Fix the kits, not the code (revision)
  4. Repeat until converged (iteration loops)

Agents become more capable the more precisely you constrain them — clear kits, automated validation, and structured iteration loops let them operate with increasing autonomy. None of this eliminates the need for software engineers. Your judgment on architecture, your ability to write precise kits, and your instinct for what "done" looks like are the inputs that make the whole system function. Cavekit is a force multiplier: one engineer's clarity of thought, scaled across an entire implementation pipeline.

© JuliusBrussee, MIT. 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 packages/coding-agent/skills/cavekit-methodology of JuliusBrussee/caveman-code.

Open the folder on GitHubat commit 3a21be1

Compare with similar skills

Cavekit Methodology 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.

Cavekit Methodology compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cavekit Methodology this skillJuliusBrussee/caveman-code942—~3.3kAutomated safety check: PassMIT
Agent Specificationruvnet/ruflo74k2 repos~1.8kAutomated safety check: PassMIT
Sparc Methodologyruvnet/ruflo74k—~262Automated safety check: PassMIT
Hunt Fintech Graphqlsickn33/agentic-awesome-skills47k1 repos~3.9kAutomated safety check: PassMIT
Specificity Managementthedaviddias/Front-End-Checklist74k—~477Automated safety check: PassMIT
Methodologyhashgraph-online/awesome-codex-plugins1.3k—~3.4kAutomated safety check: PassApache-2.0

Similar skills

  • Agent skill for specification - invoke with $agent-specification

    74k GitHub starsUsed in 2 repos~1.8k tokens
    Product & Project ManagementAuto-check passed
  • Sparc Methodology

    ruvnet/ruflo

    SPARC development workflow (Specification, Pseudocode, Architecture, Refinement, Completion).

    74k GitHub stars~262 tokensUpdated today
    Auto-check passed
  • Hunt Fintech Graphql

    sickn33/agentic-awesome-skills

    Hunt fintech-specific GraphQL vulnerabilities. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~3.9k tokens
    Backend & APIsAuto-check passed
  • Specificity Management

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Keep CSS specificity low and flat.

    74k GitHub stars~477 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Methodology

    hashgraph-online/awesome-codex-plugins

    Core Cavekit methodology — the master skill that teaches the Hunt lifecycle and routes to all sub-skills.

    1.3k GitHub stars~3.4k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Score a scoped competitor set into comparable profile cards: nine weighted dimensions (positioning, voice, visual craft, offer packaging, evidence, enterprise-readiness, thought leadership, pricing…

    276k GitHub starsUsed in 1 repo~2.5k tokens
    EducationAuto-check passed

More from JuliusBrussee/caveman-code

  • Cavekit Design System

    JuliusBrussee/caveman-code

    How to write and maintain DESIGN.md as the visual specification layer for Cavekit projects.

    942 GitHub stars~4.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Cavekit Revision

    JuliusBrussee/caveman-code

    Trace bugs and manual fixes back to kits and prompts; fix at the source so the iteration loop can reproduce the fix autonomously.

    942 GitHub stars~3.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Cavekit Validation First

    JuliusBrussee/caveman-code

    Validation-first design for Cavekit — every kit requirement must be automatically verifiable.

    942 GitHub stars~4.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Caveman Memory File Compressor

    JuliusBrussee/caveman-code

    Rewrites a memory file such as CLAUDE.md or a todo list in terse caveman-style text to cut input tokens, saving a readable backup outside the project tree.

    942 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Plugin Creator

    JuliusBrussee/caveman-code

    Scaffold a complete cave plugin bundle — generates .cave-plugin/plugin.json manifest and the standard directory structure (commands/, skills/, agents/, themes/, hooks/).

    942 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Cavekit Methodology

What does Cavekit Methodology do?

Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it. Cavekit Methodology is an agent skill from JuliusBrussee/caveman-code. Cavekit specification-driven development methodology — the Hunt lifecycle (Draft → Architect → Build → Inspect → Monitor) and how to apply it.

When should I use Cavekit Methodology?

Cavekit Methodology fits situations like: starting a Cavekit project; structuring an existing codebase as kits/plans; routing between sub-skills.

How do I install Cavekit Methodology in Claude Code?

Run `npx skills add JuliusBrussee/caveman-code --skill cavekit-methodology -a claude-code`. Or copy the skill folder (packages/coding-agent/skills/cavekit-methodology in JuliusBrussee/caveman-code) into .claude/skills/cavekit-methodology in your project. Claude Code loads it when a task matches its description.

How do I install Cavekit Methodology in Codex?

Run `npx skills add JuliusBrussee/caveman-code --skill cavekit-methodology -a codex`. Or copy the skill folder (packages/coding-agent/skills/cavekit-methodology in JuliusBrussee/caveman-code) into .agents/skills/cavekit-methodology in your project. Codex loads it when a task matches its description.

Can I use Cavekit Methodology 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 JuliusBrussee/caveman-code --skill cavekit-methodology -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cavekit-methodology, .gemini/skills/cavekit-methodology, .github/skills/cavekit-methodology and .opencode/skills/cavekit-methodology in your project.

What does Cavekit Methodology need to run?

SKILL.md names no scripts, command-line tools or credentials: Cavekit Methodology is instructions for the agent only. Its frontmatter pre-approves these tools: read, grep.

Does Cavekit Methodology 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 Cavekit Methodology 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 Cavekit Methodology use?

Cavekit Methodology is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cavekit Methodology use?

About 3.3k tokens (SKILL.md is roughly 13k 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 Cavekit Methodology?

Skills that share tags, products or a category with Cavekit Methodology: Agent Specification (ruvnet/ruflo, 74k stars), Sparc Methodology (ruvnet/ruflo, 74k stars), Hunt Fintech Graphql (sickn33/agentic-awesome-skills, 47k stars) and Specificity Management (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cavekit Methodology?

JuliusBrussee (a GitHub user) maintains it in JuliusBrussee/caveman-code, which has 942 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 14, 2026.

Source: JuliusBrussee/caveman-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.