You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/examples.md
+112Lines changed: 112 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,3 +391,115 @@ If you think your config is relevant to be shared for other people, [open a pull
391
391
(str/upper-case \"test\")
392
392
- Very large outputs may be truncated
393
393
```
394
+
395
+
??? quote "Agent orchestration, subagents, and reusable skills (@davidvujic)"
396
+
This example shows a Eca `config.json` that define the models, and
397
+
398
+
- AGENTS.md (human-readable definitions for agents, their responsibilities, and global guidance for use)
399
+
- agents/ (subagent configurations with task-specific instructions and expected outputs)
400
+
- skills/ (small, repeatable procedures that agents invoke to perform specialized work)
401
+
402
+
```json title="config.json"
403
+
{
404
+
"defaultModel": "anthropic/claude-opus-4-6",
405
+
"providers": {
406
+
"anthropic": {
407
+
"keyRc": "api.anthropic.com",
408
+
"models": {
409
+
"claude-opus-4-6": {},
410
+
"anthropic/claude-sonnet-4-5": {}
411
+
}
412
+
},
413
+
"google": {
414
+
"keyRc": "generativelanguage.googleapis.com",
415
+
"models": {
416
+
"gemini-2.5-flash": {},
417
+
"gemini-3-flash-preview": {},
418
+
"gemini-3-pro-preview": {}
419
+
}
420
+
}
421
+
}
422
+
}
423
+
```
424
+
425
+
```markdown title="AGENTS.md"
426
+
# AGENTS.md
427
+
428
+
## Review instructions
429
+
When the user asks for a code review / PR review / diff review, use the `code-review` subagent configured in `agents/code-review.md`.
430
+
431
+
## Five Whys instructions
432
+
When the user asks for a 5 Whys analysis, use the `five-whys` subagent configured in `agents/five-whys.md`.
433
+
434
+
## Changes summary instructions
435
+
When the user asks for a changes summary, use the `changes-summary` subagent configured in `agents/changes-summary.md`.
436
+
437
+
## Pull Request instructions
438
+
When the user asks to make a pull request, use the `pull-request` subagent configured in `agents/pull-request.md`.
439
+
440
+
## Planning instructions
441
+
When the user asks to plan an implementation or requests a step-by-step plan before coding, load the `plan` skill via `eca__skill` before writing the plan.
442
+
443
+
## Implementation instructions
444
+
When the user asks to implement a plan, write code, refactor, or apply changes, use the `implement` subagent configured in `agents/implement.md`.
445
+
```
446
+
447
+
```markdown title="agents/implement.md"
448
+
---
449
+
mode: subagent
450
+
description: Implement planned changes by editing code in the repo; uses functional-leaning, idiomatic style and lightweight data structures.
451
+
model: anthropic/claude-opus-4-6
452
+
---
453
+
454
+
STYLE POLICY (REQUIRED):
455
+
Load the `fp-idiomatic-style` skill via `eca__skill` before writing or modifying any code.
456
+
All generated code MUST follow that policy.
457
+
458
+
WORKFLOW:
459
+
- Identify target files and exact edits needed.
460
+
- Make minimal, correct changes consistent with existing project conventions.
description: "Coding style policy for generated code: prefer idiomatic language conventions with a functional-leaning approach (pure-ish functions, composability), and prefer lightweight data structures over heavy schema/class abstractions unless clearly justified."
0 commit comments