Intent-Driven Engineering · Plugin libraries
Building plugin capabilities,
one evidence loop at a time
This guide is not a list of skills, hooks and agents. It is a repeatable workflow for developing, validating and maintaining them. This repository is the reference implementation: one primary agent, project skills, deterministic Python tools, and evidence that a person accepts or sends back.
1 · The workflow
From a human requirement to an accepted capability
Every new skill, hook, agent or tool follows the same loop. The reviewer is optional and appears only when a requirement justifies it. A change request becomes an Intent Delta and starts the next iteration.
2 · Reference structure
Standardize the workflow, not the implementation
A common layout each plugin can use, shown with this repository's real files. It is a reference, not a requirement: a documentation skill probably needs no reviewer, no Python tools and no execution engine of its own.
plugin-name/
├── CLAUDE.md # rules for the agent
├── README.md
├── intent/
│ └── current-feature.md # intent + deltas
├── templates/
│ └── delta-template.md
├── .claude/
│ ├── settings.json # allow / deny
│ ├── skills/
│ │ ├── implementation/SKILL.md
│ │ └── validation/SKILL.md
│ └── agents/
│ └── reviewer.md # optional
├── tools/ # deterministic
│ ├── readiness.py
│ ├── redact.py
│ └── guard.py
├── tests/
└── output/
├── evidence.json # deterministic
├── report.md
└── agent-run.json # agent activity
The human
Defines what success means and approves anything that needs more permission.
The primary agent
Interprets findings and proposes actions. It never certifies its own claims without evidence in front of it.
Python tools
Scans, redaction and tool-use policy. Same input, same output, no model needed.
evidence.json.Skills
Describe how a task is done. They ask for good behaviour; the tools enforce it.
evidence.json holds deterministic findings and must stay reproducible. agent-run.json records what the model actually did: skills invoked, tool calls, blocked calls, turns. Mixing them would make the reproducible record unreproducible.3 · Five contracts
What every plugin agrees to
The specific tools, languages and agent definitions can vary. These contracts don't, which gives consistency without forcing every plugin into the same architecture.
| Contract | Purpose | How this repo meets it | Required |
|---|---|---|---|
| Intent | Outcome, inputs, outputs, success criteria | intent/current-feature.md, condensed from the verbatim original brief | Yes |
| Execution | Who runs what, with which permissions | Tool list, disallowed tools and max_turns in agent.py; tools/guard.py checks every tool call before it runs | Yes |
| Evidence | Observable proof of success | output/evidence.json (schema 1.0) and report.md; agent-run.json for the agent | Yes |
| Validation | Acceptance checks and stop conditions | The validation skill, the test suite, and the stop conditions in CLAUDE.md | Yes |
| Delta | Changes discovered during execution | templates/delta-template.md; Delta 1 appended to the intent | When iterating |
CLAUDE.md can describe a boundary. Only a deterministic check, like the guard's PreToolUse hook, guarantees it. Even then the guard governs Claude's tools, not the operating system: untrusted code still belongs in a container.4 · Worked example
A new capability: test-coverage recommendations
The requirement: "Create a skill that analyzes an existing repository and recommends improvements to its test coverage." Here is how it moves through the workflow.
Intent
Define what the analysis must accomplish and what evidence would prove it worked.
Inputs
Repository location, supported languages, the existing test configuration.
Execution
The primary agent invokes the analysis skill and approved deterministic tools: the project's own coverage runner, never a new one.
Evidence
Real coverage measurements where available, the untested areas, and a clear line between measurements and AI recommendations.
Validation
Tools ran successfully, every finding has supporting evidence, and the skill did not modify the repository.
Review
A specialist reviewer runs only when someone asks for one.
Delta
What should change next iteration goes into an Intent Delta, not a rewrite.
5 · Applying it to the libraries
Three concerns, kept separate
No duplicated responsibilities across libraries, and no new orchestration layer. Claude Code already provides the agent runtime, skill discovery and delegation. The plugins use those instead of recreating them.
Owns the intent format, progressive refinement, evidence expectations and validation principles.
Skills, agents, hooks and tools that do specific tasks inside that workflow.
Common deterministic validators, permission controls and evidence conventions.
6 · Progressive Intent
Start small. The agent decides the how.
INTENT-001 for this lab was a full specification, right for a reference implementation. New plugin features don't need that much. The human starts with six headings, and changes arrive as Intent Deltas.
# Intent
## Outcome
What useful capability should exist?
## Inputs / Context
What must the agent know?
## Outputs
What should be produced?
## Success Criteria
What observable evidence proves success?
## Constraints
What must not happen?
## Stop Conditions
When must execution stop?
# Intent Delta
## Observation
What the human saw in the running result.
## Keep
What should remain.
## Change
What should become different.
## New Boundary
Any newly discovered constraint.
## Evidence
How we'll know this iteration worked.
Recommendation
A reference implementation, not a mandatory architecture
Use this lab as the example of how plugin capabilities are built. Then add one capability to Intent-Drive Starter, plugin-feature-workflow, that guides developers through the loop:
The same workflow builds the plugins themselves and the applications that use them.