Claude Repo-Native Agent Lab · Architecture guide

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.

One primary agent by default Standardize the workflow, not the implementation Evidence before acceptance No new orchestration layer

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.

One primary agent remains the default. A reviewer, a researcher or extra agents are added only when the requirement justifies them, never because the structure has a slot for them.

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
Owns intent

The human

Defines what success means and approves anything that needs more permission.

Owns reasoning

The primary agent

Interprets findings and proposes actions. It never certifies its own claims without evidence in front of it.

Owns execution

Python tools

Scans, redaction and tool-use policy. Same input, same output, no model needed.

Proven here: two scans give byte-identical evidence.json.
Owns procedure

Skills

Describe how a task is done. They ask for good behaviour; the tools enforce it.

Keep two kinds of evidence apart. 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.

ContractPurposeHow this repo meets itRequired
IntentOutcome, inputs, outputs, success criteriaintent/current-feature.md, condensed from the verbatim original briefYes
ExecutionWho runs what, with which permissionsTool list, disallowed tools and max_turns in agent.py; tools/guard.py checks every tool call before it runsYes
EvidenceObservable proof of successoutput/evidence.json (schema 1.0) and report.md; agent-run.json for the agentYes
ValidationAcceptance checks and stop conditionsThe validation skill, the test suite, and the stop conditions in CLAUDE.mdYes
DeltaChanges discovered during executiontemplates/delta-template.md; Delta 1 appended to the intentWhen iterating
Enforce in code what must never happen. A skill or 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.

Intent-Drive Starterthe development workflow

Owns the intent format, progressive refinement, evidence expectations and validation principles.

Storm Chasers pluginreusable capabilities

Skills, agents, hooks and tools that do specific tasks inside that workflow.

Shared servicesonly where needed

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.
The human owns outcomes; the agent owns implementation within the boundaries. The intent stays readable instead of growing into a giant technical specification.

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:

Define intent→Implement capability→Execute→Collect evidence→Validate→Refine

The same workflow builds the plugins themselves and the applications that use them.

No new platformNo mandatory multi-agent hierarchyNo orchestration engine