Agentic Workflow Blueprint

Documenting systems at the agent level, with contracts and task routing, so the agent finds and operates the code.

The problem

Every project has an architecture behind it: auth, database layer, crons, background jobs, deploy pipeline. When the agent has to operate there, it needs to know how everything connects, and it usually finds out by reading random files, asking or guessing.

The Agentic Workflow Blueprint is a meta-skill that documents the system at the agent level: how it works, how the modules connect, how to operate each layer. The result is a set of skills the agent loads on demand, and when it does, it already knows where it is, what to touch and how to proceed.

The idea in one sentence: document the system's behavior as a blueprint, not as descriptive text. Each module becomes a contract the agent follows to work in that area.

Where it is and how to install it

The skill is public, in the agentic-workflow-blueprint repository: the SKILL.md with the procedure, the example workflows and the runbooks. It has no dependencies at all, it is markdown the agent reads. Install it once, in your agent:

# with the skills CLI, for any agent that reads skills
npx skills add devton/agentic-workflow-blueprint

# or by hand, into Claude Code's skills folder
git clone https://github.com/devton/agentic-workflow-blueprint \
    ~/.claude/skills/workflow-blueprint

Then, inside the repository you want to document, just ask. The agent asks a few questions and first delivers the project's entry file, skills/<projectSlug>/SKILL.md, already wired into AGENTS.md or CLAUDE.md:

# inside the repository you want to document, ask the agent:
blueprint this project.

# it asks projectSlug, baseBranch, techStack, workflowsWanted and
# constraints, then writes skills/<projectSlug>/SKILL.md and the rest

# already have a plan? turn it into workflows
/<projectSlug> plan-to-blueprint

# later, call the workflows through the project skill
/<projectSlug> document review changelog

The contract

The agent spots a pattern ("every time I finish an implementation, I need to document, review and write a changelog") and turns it into an executable contract, a SKILL.md with nine fixed sections.

workflows/document/SKILL.mdGoalgenerate docs from evidenceScopepost-implementation docsTriggers"document this change", diff readyInputsbaseBranch, diffScope, docTargetInvariantsnothing without evidence in the diffProcedureread diff, draft, validate claimsOutputsupdated documentationReview gateevery claim has evidenceReferencesproject skill, sibling workflows
The agent does not need the generic AGENTS.md instructions: it needs the task's specific contract, and only that.

The structure it scaffolds

Triggered with the project slug, the blueprint scaffolds an orchestrator that classifies the task and points to the right workflow. Each workflow is self-contained, and the agent loads only the relevant slice, never the whole structure.

TaskSKILL.mdorchestratorrouting-matrix.mdworkflows/document/workflows/review/workflows/changelog/closed until neededdocs/runbooks/for the operator: attempt limits, remediation
Two levels: SKILL.md is for the agent (procedure, gates); the runbook is for the human who has to step in.

Subskills and chaining

Workflows rarely live alone. Creating Linear issues, for example, needs a preflight before any mutation: the planner checks the MCP answers, reads the schemas, resolves team and project and produces a deterministic plan; the sync only runs that plan, without guessing payloads.

The documentation pipeline shows the chaining: document writes docs from the diff, review gives pass or fail, and on fail the findings go back to document, three times at most. On pass, changelog closes it.

documentdocs from git diffreviewpass / failpasschangelogfail: findings go back, 3 attempts max
The handoff is structured, with defined inputs and outputs, not a context dump. The retry focuses only on the gate that failed.

From plan to system

An implementation plan, with tasks, dependencies and acceptance criteria, is already a blueprint's raw material. Each task becomes a contract, each acceptance criterion becomes a review gate and each dependency becomes a reference between workflows. The plan stops being a static markdown file and becomes something the agent runs task by task.

plan       blueprint
task-1  →  workflows/task-1/SKILL.md
task-2  →  workflows/task-2/SKILL.md   # depends on task-1: reference
task-3  →  workflows/task-3/SKILL.md   # acceptance criterion: review gate

Memory lives in the project

The agent's memory of the project is not in an external database or a system prompt: it is in the blueprints, inside the repo. In the first session the agent scaffolds the structure; in later ones it reads it and already knows how the system works today; when the system changes, the blueprint changes with it. No sync, no MCP, no embeddings. The repo is the memory.

Stack-agnostic and agent-agnostic

The blueprint imposes no stack: specific rules live in the project skill. And the agent does not matter much either. Claude, GPT, Gemini, Codex, Hermes: any of them is just a runtime that interprets natural-language steps. The runtime changes, the contract does not.

In the lab, the learning system already produced skills in this format, such as plugin-lifecycle-pattern, validate-before-execute and distributed-token-refresh. The practical side, how to pull these contracts out of agents at work, is in behavior extraction.

References