Agent ยท Dev ๐ป โ
E11 Dev (skill: e11-agent-dev) โ the implementation engineer. Executes stories, drives the quick flow for small work, launches unattended runs, and reviews code. Alloy discipline is baked into its persistent facts: pre-load before editing @engineering11/* code, cite what you applied, be honest about what you skipped.
What it produces โ
- Code + tests in the target repo, scoped to the story's tasks or the quick-flow spec.
- An updated story file โ tasks marked
[x]only when tests pass, Dev Agent Record with the "Alloy pre-load complete" evidence, File List, Change Log. - Spec files (quick flow) โ
spec-<slug>.mdunder{implementation_artifacts}with status frontmatter. - Review findings written into the spec/story when
[CR]runs.
When to use it โ
- A story is
ready-for-devon the sprint board โ[DS]. - Small build/fix/refactor that doesn't deserve story ceremony โ
[DF](quick flow, oneshot for tiny changes). - You want the story implemented while you're at lunch โ
[DA](unattended; haltsblockedinstead of asking). - Code needs a fresh-context review โ
[CR].
How to invoke โ
Invoke e11-agent-dev; it greets and presents its menu:
| Code | Dispatches to | Purpose |
|---|---|---|
[DS] | e11-dev-story | Execute a prepared story, tests-first, in order |
[DF] | e11-dev-flow | Quick flow โ plan/implement/review, or oneshot |
[DA] | e11-dev-auto | One fully unattended iteration; HALTs done/blocked |
[CR] | e11-code-review | Layered adversarial review + triage |
[QK] | e11-knowledge | Pull an alloy doc directly |
The alloy pre-load (capability-driven) โ
Before touching code, e11-dev-story step 2b resolves which platform docs matter โ and not just from imports:
- Derives the story's task flavor (backend / frontend / shared) and its capabilities via
skill:e11-knowledge pattern:backend-capability-map(+pattern:forbidden-backend-patterns). - Maps capabilities to SDKs, then unions that with every
@engineering11/*found in the story's SDK stamp (**E11 SDKs touched:**, written bye11-create-epics-and-stories), Dev Notes, tasks, and the architecture composition table. - Loads each SDK's doc (
sdk:<name>:backend-using/:frontend-using), falls back to package source atnode_modules/@engineering11/<name>/src/, and halts on a gap:[R]ead source/[S]kip convention check/[A]scalate. - Writes an "Alloy pre-load complete" record (capabilities, SDK lists, counts,
alloy://cites) into the Dev Agent Record โ the exact evidencee11-code-review's alloy auditor later verifies.
Example session โ
You: e11-agent-dev
Dev: ๐ป E11 Dev. Board says story 2-3-tenant-switch is ready-for-dev.
You: DS
Dev: Loaded 2-3-tenant-switch.md. Stamp: @engineering11/auth, access, user.
Capability pass: pattern:backend-capability-map โ +datastores (counters).
Alloy pre-load complete: 4 SDKs (4 alloy-covered, 0 gaps). Cites recorded.
Task 1/4: TenantSwitch handler ... tests 24/24 โ marked [x]
...
Story โ review. Run CR in a fresh context.Gotchas โ
- The story file is authoritative. Dev implements tasks in order and refuses to mark
[x]without passing tests. Fix the story, not the agent. - Skips are visible. Choosing
[S]kipat a gap writes a skip marker the alloy auditor will surface (AUDIT-HIDDEN-SKIPif it's concealed). That's the point. [CR]in a fresh context. The review orchestrator assigns severity only after reading surrounding code โ give it a clean session, ideally a stronger model.[DA]never asks. If intent is unclear it HALTsblockedwith the reason written into the spec file. Sharpen the intent and re-run.
Customizing โ
Persona/menu/facts: .foundry/custom/e11-agent-dev.toml. Workflow behavior belongs to the workflow skills โ e.g. review layers in .foundry/custom/e11-code-review.toml, the e11_platform_preload gate in .foundry/custom/e11-dev-story.toml. See Customization.
Source โ
src/foundry/workflows/4-implementation/e11-agent-dev/SKILL.md
See also: Phase 4 โ Implementation ยท Quick flow ยท Unattended runs ยท Ship a story end-to-end.