AI adoption · agentic engineering · spec-driven development

Pedro Santos. Your teams already use AI. Let's make it engineering.

Tools are the easy part. Trustworthy output takes a way of working. I bring a method I've applied to real products, the workshops to teach it, and the agents and checks to make it stick.

Prompts are for thinking. Specs are for keeping.

Agentic engineering · workshop author · Madrid, Spain

  • 332repositories assessed for test debt
  • 8skills in one plugin that turns a spec into code
  • 19test skills and 3 agents added in one contribution
  • 49AI review and generation skills, with automated prompt evals

01 · how I can help

Wherever your teams are today, we start there.

The tools arrived faster than the playbook. Whatever practice is already there, good or bad, gets louder, so adoption is less about picking a tool and more about what you make durable.

  1. Assess

    Where your teams sit on the maturity curve, which practices AI will amplify, and which it will expose. You get a scored view and a short list of priorities.

  2. Train

    Hands-on workshops where engineers feel the difference between vibe coding and spec-guided generation.

  3. Pilot

    One real thin slice with your team, spec first: acceptance tests that judge the result, automated architecture checks, one implementation prompt, evidence.

  4. Scale

    Skills, review agents, tests the agent cannot edit, PR traceability and the health metrics that keep it honest.

half or full day

AI Amplifies Everything

Software engineering in the AI era: facts over hype, from the evidence (DORA, METR) to what matters more now.

  1. Amplifier audit of your practices
  2. Rules-only vibe-coding build
  3. Draft the specs to regenerate it
  4. Spec-guided rebuild, compared for trust
3 days

Spec-Driven Development with AI Agents

Build, repair and evolve software with coding agents. Dry-run on real code at Vista, with a cheat sheet, 10 participant packages and an eight-skill plugin.

  1. Green field: two runs, prompt-first against spec-first, then a comparison
  2. Legacy: recover the rules, then make change safe
  3. Architecture: evolve in four phases under fitness checks
  4. Tooling: a plugin of eight skills, from specify to deletion test
2.5 days

AI-Assisted Evolutionary Architecture

From monolith to modules to extraction and event sourcing on a companion codebase, with AI in every step.

  1. Naive AI: see what goes wrong without structure
  2. Build your own agent: learn what is inside the tools
  3. Professional agents: work with real coding agents
  4. Orchestrated workflows: many agents, one spec

02 · recent work

Shipped on real codebases.

One method, two very different companies. At Vista, a global company with hundreds of repositories, I teach it and build the agents that enforce it. At Refine, an AI startup that checks research papers, I built the code reviewer and the guardrails around its LLM product.

Vista · 2026

A product rebuilt from its specifications

Wrote the decision that made specs the source of truth for an internal AI content-generation tool: people change specs, one fixed prompt generates the code, and a failure means fix the spec and regenerate. Then led the rebuild as its main author.

  • specs as source of truth
  • Gherkin oracle
  • architecture checks
  • rebuild from nothing

Vista · 2025–2026

A skill library for AI review and generation

Claude Code and GitHub Copilot skills and agents that review and generate code against DDD, hexagonal and CQRS rules, with an orchestrator handing work to specialist reviewers and an n8n workflow reviewing merge requests. The prompts are tested like code.

  • 49 skills
  • 11 agents
  • sole author
  • promptfoo evals on pass/fail samples

Vista · 2026

An agent team for test coverage

Three agents with separate duties: an auditor ranks modules by risk, an executor adds tests behind a gate, and a reviewer is the independent gate before merge. Behind them, skills for characterization and golden-master tests, seam refactoring, test smells and focused mutation testing. Contributed to the company-wide skills repository in one change, with a skill that splits large merge requests.

  • 19 test skills
  • 3 agents
  • 6 coverage report formats

Vista · tooling · 2026

A specification you can execute

Eight skills built on Chad Fowler's Phoenix Architecture and its four primitives: specification, evaluation, context boundary and provenance. A checker validates the trace from rule to scenario to code. A deletion test asks what survives a full rewrite. The generator refuses to work from a plan that no human approved.

  • 8 skills
  • 1 checker
  • deletion test

Vista · methods · 2025–2026

Methods that outlive one product

Authored or co-authored the method documents other teams apply: a 7-level testing maturity model that separates governance from guidance, an approved engineering-excellence framework with pillars, rubric and measurement, and an execution plan for fleet-wide test-debt removal. The plan assessed 332 repositories. 248 were candidates, and 214 reported no coverage at all.

  • testing maturity
  • engineering excellence
  • test-debt plan
  • measurement
  • governance

Refine · 2026

An AI code reviewer in under two weeks

Three tiers: deterministic AST rules first, a small judgment model second, an optional LLM summary last. Reviews only changed files, fails CI only on new findings, and ships as a GitHub Action and a hosted GitHub App, delivered spec-first with Gherkin scenarios and ADRs.

  • 64 rules
  • 8 languages
  • 41 s measured · ~$0.20 estimated per 280-file repo

Refine · 2025–2026

The testing strategy behind an LLM product

Designed Refine's testing strategy and built its first version: unit tests split by hexagonal layer (domain, application, infrastructure), an acceptance suite for every use case, and architecture tests that enforce the best-practices guide I wrote, including a test-driven algorithm for implementing a user story. The team has since grown it into a full test pyramid. Around it: work on the multi-provider LLM pipeline, and the instruction files that keep coding agents inside the architecture.

  • testing strategy
  • test pyramid
  • architecture tests
  • hexagonal · DDD · CQRS
  • agent instructions

03 · the approach

Pedro's Law.

Working with agents is not using a coding assistant more often. It is a different way of organizing the work: engineers move from in the loop to on the loop, spending less time directing code changes and more time designing the specifications, constraints and evaluations that produce reliable code. How far they get is not up to the model: autonomy is bounded by verification capacity, not by generation capacity. Specs, not prompts, drive the code; the production loop feeds what happens in production back into the specs. Yes, I named it after myself, so that nobody else gets the blame.

the specs loop · humans

Use as many rich, iterative prompts as you need to create the specifications.

the implementation loop · agent

Then with ONE prompt: generate the code and associated unit tests.

Pedro's Law, two loops. In the specs loop, humans use many prompts with AI agents to write, approve and version a specification, and review the result. In the implementation loop, the agent receives one controlled prompt, then generates, evaluates and improves the implementation within the approved specification. Every specification failure returns to the specs loop.
Humans own the specs loop. The agent owns the implementation loop and may iterate as long as it needs, but it may not add requirements, weaken a test or bypass a boundary. If the spec is wrong, it stops and escalates.

risk tiers

Spec depth follows risk

A copy change needs behavior, scope and acceptance tests. A public contract or a security control also needs ADRs, observability, rollback and a named human approver.

the oracle

Not the generated unit test

Human-approved acceptance tests (the oracle) and fitness functions (automated architecture checks) judge the code. CODEOWNERS, CI and sandbox permissions lock them, not a polite line in a prompt.

regeneration

Code is disposable output

Implementation is the output of a versioned spec and a controlled process. Fix the spec, discard the slice, regenerate, and run the same gates again.

traceability

Every change has a pedigree

Each pull request records the spec version, ADR, prompt template, baseline commit, agent, model and evaluation report, so a run can be reproduced and judged.

parallel agents

Shared specs, many agents

Parallel agents only help when they share durable contracts and evaluation criteria. Otherwise you get five interpretations of one problem.

health metrics

Measure the system, not the prompts

  • Spec traceability% PRs
  • Corrective promptsper PR
  • Regeneration success% gates
  • Post-merge defectsescaped
If this prompt disappears, where is the knowledge it introduced? The prompt-local knowledge test

What next: the production loop

Pedro's Law, three loops. The production loop attaches to Merge: CI/CD ships the change, live evaluation watches it against SLOs, and a rollback, automatic on a breach or triggered by a human, redeploys the last stable version. The root cause always goes back to specification work, never straight to the implementation loop. Telemetry and business events from the stable version feed a spec mining agent that proposes spec changes, closing the loop.
In production, every root cause goes back to the spec, and a mining agent reads telemetry to propose spec changes. Humans still approve every spec change; only a low-risk change may skip human code review on its way to merge.

04 · foundation

AI amplifies what is already there.

Before agents, I spent over three decades writing software and teaching teams how to keep it easy to change: test-driven development, refactoring, domain-driven design and hexagonal architecture.

That is the ground this work stands on. An acceptance test is an oracle. A bounded context is a context boundary. An ADR is provenance. Teams with strong engineering get far more out of AI; teams without it get their problems faster.

The same ideas are written down as guidance for other teams: service classification, seam refactoring, decision records and fitness functions.

  • Principal author of Agile Technical Practices Distilledwith Marco Consolaro and Alessandro Di Gioia · Packt
  • Speaker at DDD Europe, KanDDDinsky, SPA, Agile Spain, Software Crafters Barcelona and many SoCraTes2012–2026 · craft, design, ensemble programming, spec-driven development
  • Hundreds of hours pairing, mentoring and coachingan open mentoring program
  • Open-source music theory libraries in F#, Kotlin, TypeScriptvaughan and friends · my favorite kata
Portrait of Pedro Santos

06 · get in touch

Let's talk.

About bringing AI agents into your engineering organization, a workshop for your teams, or a pilot on a real slice of your product. Send me a message on LinkedIn with your team size and where AI has changed your delivery so far.

Also on GitHub and X