Wrong way
Ask one agent to run the whole team
agent.run("understand, plan,
build, review, and remember")
Hidden context becomes the integration layer. Failures are difficult to locate and retries repeat too much work.
The portable systems guide
Learn how agents, skills, commands, artifacts, and deterministic orchestration combine into an engineering system you can port to any language.
Interactive system map
The agent interviews you, resolves ambiguity, and writes the user truth. It does not inspect application code.
Choose a stage to inspect its boundary and handoff.
01 / The boundary
A dependable AI system does not make everything probabilistic. It gives interpretation to specialists and keeps sequence, validation, persistence, and routing explicit.
Wrong way
agent.run("understand, plan,
build, review, and remember")
Hidden context becomes the integration layer. Failures are difficult to locate and retries repeat too much work.
System boundary
route(stage, artifact)
require_file(output)
combine(verdicts)
Code controls the rails. Each agent performs one kind of judgment, writes evidence, and terminates.
“The handoff is an artifact, not hidden reasoning.”Open the full architecture guide
02 / The primitives
An agent owns judgment. A skill carries reusable policy. A command gives the workflow a deterministic entrance.
Probabilistic specialist
A bounded expert that reads approved context, makes domain judgments, and produces one defined result.
name: architect
tools: [Read, Write]
skills:
- language-principles
- spec-format
Reusable policy
A focused rule set injected only where needed, so experience compounds without bloating every agent.
# Scope capture
Trigger: adjacent work noticed
Record: idea + route tag
Do not: expand current scope
Routing contract
The user-facing boundary that parses intent, selects a mode, and adopts or launches the correct coordinator.
/feature "Add sync status"
/feature resume 001
/roadmap
03 / The compounding system
Delivery creates product evidence. Strategy orders what should happen next. Learning improves the rules used on the next run.
Loop 01
Intent becomes a reviewed implementation through explicit, append-only handoffs.
Loop 02
Adjacent ideas become labeled GitHub issues; persona ICP files give the Roadmap Analyst a definition of value.
Loop 03
Structured evidence becomes proposed policy, but only after a human approves the change.
04 / Build the smallest team
Start with one coordinator, one builder, one reviewer, and an artifact directory. Add roles only after the first retry can resume without hidden context.
Start with system architecturePaths, schemas, verdicts, and done conditions.
Coordinator → engineer → artifact existence check.
A reviewer returns PASS, NOTES, or NEEDS WORK.
Restart at the first missing artifact without replaying finished work.
Reference implementation
The repository contains the working agents, skills, commands, artifact grammar, review loop, evidence recorder, scope capture, ICP workflow, and Roadmap Analyst.
Use it as a reference implementation. Preserve the contracts; replace the Rails-specific judgment.