Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05c56904cf |
No files matched your search
@@ -0,0 +1,244 @@
|
||||
# Existing published infra skills: depend, adapt, or author
|
||||
|
||||
**Question (#169, part of map #166):** What published, reusable agent skills, agents, rule sets and
|
||||
MCP servers already exist for Ansible (playbooks, collections, ansible-lint, Molecule), Flux /
|
||||
Kustomize / Helm GitOps, Kubernetes troubleshooting, and OpenTofu/Terraform? For each, what are the
|
||||
quality, licence, maintenance and format? Should holocron **depend** on it (as with `mattpocock`),
|
||||
**vendor/adapt** it, or **author** its own?
|
||||
|
||||
**Researched:** 2026-11-12. Licence, star counts, last push and tags come from the GitHub REST API
|
||||
(`/repos/{owner}/{repo}` and `/tags`) on that date. Skill format comes from the raw `SKILL.md`
|
||||
frontmatter. Other facts come from the vendor page cited next to them.
|
||||
|
||||
**Constraint applied:** target packages must be generic and provider-agnostic. The target stack is an
|
||||
Ansible playbook monorepo, an Ansible Galaxy collection tested with Molecule, Flux (Kustomize and
|
||||
HelmRelease) with Sealed Secrets, and OpenTofu later.
|
||||
|
||||
## Answer
|
||||
|
||||
| Area | Best existing candidate | Licence | Recommendation |
|
||||
|---|---|---|---|
|
||||
| Flux / Kustomize / Helm GitOps | `fluxcd/agent-skills` (official) | Apache-2.0 | **Depend**, pinned. **Author** a thin Sealed Secrets and house-conventions skill on top. |
|
||||
| Ansible (playbooks, collections, lint, Molecule) | `ansible-community/ai-forge` (community) | **GPL-3.0-or-later** | **Author our own.** Do not depend on or adapt ai-forge, because of the copyleft licence and its stated instability. |
|
||||
| Kubernetes troubleshooting | No official skill. MCP: `containers/kubernetes-mcp-server` | Apache-2.0 | **Author** one thin skill. The MCP server is an optional companion, and declaring it needs its own decision. |
|
||||
| OpenTofu / Terraform | `antonbabenko/terraform-skill`; `hashicorp/agent-skills` | Apache-2.0; **MPL-2.0** | **Defer** until OpenTofu work starts. Then **depend** on `antonbabenko/terraform-skill`, pinned. Do not adopt HashiCorp's set wholesale. |
|
||||
|
||||
**apm-installable** below means that `SKILL.md` directories sit at a stable repo subpath and the repo
|
||||
has git tags. That is the same shape apm already resolves for
|
||||
`mattpocock/skills/skills/engineering/<skill>#v1.3.2` in `plugins/mattpocock/apm.yml`. I inferred
|
||||
this from the layout and **did not run `apm install` against any of these repos**.
|
||||
|
||||
## Flux / Kustomize / Helm GitOps
|
||||
|
||||
### `fluxcd/agent-skills`: official, recommended to depend
|
||||
|
||||
- **Source:** <https://github.com/fluxcd/agent-skills>; documented at <https://fluxcd.io/flux/agent-skills/>
|
||||
(v2.10 docs, last modified 2026-07-02).
|
||||
- **Licence:** Apache-2.0 (GitHub API). Each `SKILL.md` also declares `license: Apache-2.0`.
|
||||
- **Maintenance:** Last push on 2026-11-03. Tags `v0.0.4` through `v0.4.0`, so it is still pre-1.0 and
|
||||
breaking changes are possible. 244 stars. The repo ships `tests/` and `benchmarks/` directories.
|
||||
- **Format:** Agent Skills `SKILL.md` under `skills/<name>/`, with `name`, `description`, `license`
|
||||
and `compatibility` frontmatter. It also ships Claude Code, Codex and Copilot plugin manifests, and
|
||||
a cosign-signed OCI artifact installed with `flux operator skills install ghcr.io/fluxcd/agent-skills`.
|
||||
It is apm-installable by subpath, for example `fluxcd/agent-skills/skills/gitops-knowledge#v0.4.0`
|
||||
(inferred, see above).
|
||||
- **Skills** (per fluxcd.io):
|
||||
- `gitops-knowledge`: Flux CRD YAML generation, checked against bundled OpenAPI schemas and validated
|
||||
with `flux-schema`.
|
||||
- `gitops-repo-audit`: an offline audit of a GitOps repo in six phases. It runs deterministic tools:
|
||||
`flux schema` and `flux migrate --dry-run`.
|
||||
- `gitops-cluster-debug`: live HelmRelease and Kustomization troubleshooting through the Flux MCP
|
||||
server.
|
||||
- **Required tools:** `flux` ≥ v2.10, `flux-schema`, `kustomize` or `kubectl`, and `flux-operator-mcp`
|
||||
for the debug skill. The debug skill declares `compatibility: Requires flux-operator-mcp v0.60 or later`.
|
||||
- **Gaps for our stack:**
|
||||
- **Sealed Secrets is not mentioned.** `gitops-repo-audit` checks only "SOPS, External Secrets", and
|
||||
`gitops-cluster-debug` special-cases SOPS. I grepped all three `SKILL.md` files for
|
||||
`sealed|sops`.
|
||||
- It covers Flux `Kustomization` resources. Plain Kustomize overlays and `HelmRelease` are covered
|
||||
only as Flux sees them.
|
||||
- **Copyleft flag:** `flux-operator-mcp` is built from `controlplaneio-fluxcd/flux-operator`, which is
|
||||
**AGPL-3.0** (LICENSE file and GitHub API). The skills themselves are Apache-2.0. Running the MCP
|
||||
binary unmodified as a local tool should not put obligations on holocron's own content, because AGPL
|
||||
obligations attach to modifying and conveying, or network-serving, the program. **I'm not certain of
|
||||
that, and it is not legal advice.** Do not vendor or patch that binary.
|
||||
- **Open question:** fluxoperator.dev describes the MCP server as connecting to "clusters running Flux
|
||||
Operator". If the target clusters run plain `flux bootstrap` without Flux Operator,
|
||||
`gitops-cluster-debug` may be only partly usable. Not verified.
|
||||
- **Recommendation:** **Depend**, through a wrapper plugin like `plugins/mattpocock`, pinned to a tag.
|
||||
It is official, permissively licensed, tested, and grounded in deterministic tools. **Author** one
|
||||
small skill for Sealed Secrets (kubeseal workflow, which `SealedSecret` scope to use, rotation) and
|
||||
our repo layout conventions. Pin and bump it deliberately, because the project is pre-1.0.
|
||||
|
||||
### Flux MCP servers
|
||||
|
||||
- **Flux MCP server** (`flux-operator-mcp`): Go binary with a `--read-only` mode that masks Secret
|
||||
values (<https://fluxoperator.dev/mcp-server/>, <https://fluxcd.io/flux/agent-skills/>). It is
|
||||
**AGPL-3.0**, as above.
|
||||
|
||||
## Ansible (playbooks, collections, ansible-lint, Molecule)
|
||||
|
||||
No official, permissively licensed Ansible agent skill set exists.
|
||||
|
||||
### `ansible-community/ai-forge`: community, copyleft
|
||||
|
||||
- **Source:** <https://github.com/ansible-community/ai-forge>. It came out of the Ansible forum proposal
|
||||
of 2026-03-20 (<https://forum.ansible.com/t/proposal-new-repo-for-ansible-ai-collaboration/45575>)
|
||||
and was announced on 2026-04-09.
|
||||
- **Licence:** **GPL-3.0-or-later. COPYLEFT.**
|
||||
- **Maintenance:** Last push on 2026-11-06. **No tags**, so nothing can be pinned except a commit SHA.
|
||||
43 stars. The README warns that the repo is brand new and its "structure and contents may change
|
||||
frequently". The forum thread states it is "not Red Hat Supported".
|
||||
- **Format:** Lola modules, installed with `pip install lola-ai` then `lola install`. Skills live under
|
||||
`.agents/skills`. Neither the Claude plugin marketplace nor `npx skills` is documented. Whether apm
|
||||
can install it is unverified.
|
||||
- **Content:** Mostly collection SDLC: `ansible-collection-standards` (CoP review), `ansible-role`
|
||||
scaffolding, and `ansible-collection-sdlc` (17 skills covering changelog fragments, ansible-test,
|
||||
release and PR review). `ansible-content-development` includes `write-content-tests`, which covers
|
||||
Molecule. **There is no dedicated ansible-lint skill.**
|
||||
- **Recommendation:** **Do not depend and do not adapt.** Redistributing it through holocron's MIT
|
||||
marketplace, as we do with `mattpocock`, would convey GPL content. Adapting it would make the adapted
|
||||
skill a GPL derivative. Its own maintainers also say the structure is unstable and it has no tags.
|
||||
Reading it for ideas is fine. Copying its text is not.
|
||||
|
||||
### `leogallego/claude-ansible-skills`: community, copyleft
|
||||
|
||||
The four CoP review and scaffolding skills (role, collection, EE) that seeded ai-forge (forum thread
|
||||
above). The licence is **GPL-3.0** (GitHub API) and it has 48 stars. **Avoid**, for the same reasons.
|
||||
|
||||
### `akin-ozer/cc-devops-skills`: community, permissive
|
||||
|
||||
- **Licence:** Apache-2.0. 339 stars, last push on 2026-07-26, tags `v1`/`v1.0.0`, single maintainer.
|
||||
- **Format:** Agent Skills `SKILL.md` under `devops-skills-plugin/skills/<name>/`. It includes
|
||||
`ansible-generator` and `ansible-validator`. Aggregators report that the validator runs Molecule
|
||||
when a role has a `molecule/` directory; I did not verify that. The same repo also has `k8s-debug`
|
||||
and Terraform skills.
|
||||
- **Quality:** Unreviewed by me beyond the frontmatter. The `ansible-validator` description is a
|
||||
terse keyword list ("Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN,
|
||||
tasks."), which falls short of ADR-0020's description contract.
|
||||
- **Recommendation:** A permissible **reference to adapt from** (Apache-2.0 requires keeping the
|
||||
NOTICE and attribution). It is not worth depending on: one maintainer, and pushes stopped in July.
|
||||
|
||||
### Red Hat material
|
||||
|
||||
- **Ansible development tools MCP server** (`@ansible/ansible-mcp-server`, image
|
||||
`ghcr.io/ansible/devtools-mcp-server`): a **Technology Preview**
|
||||
(<https://developers.redhat.com/articles/2026/08/19/red-hat-ansible-development-tools-mcp-server>,
|
||||
<https://docs.ansible.com/projects/vscode-ansible/mcp/>).
|
||||
- **Tools:** Zen of Ansible and best-practice lookup, environment setup, `ansible-creator`
|
||||
scaffolding, ansible-lint with fixes, the EE builder, and `ansible-navigator` execution.
|
||||
- **Molecule is not a tool.**
|
||||
- **Licence:** not stated on either page. The `ansible/vscode-ansible` repo that bundles it is MIT,
|
||||
but I did not confirm that the server source lives there.
|
||||
- It can execute playbooks, so ADR-level scoping applies before any adoption.
|
||||
- **`RHEcosystemAppEng/agentic-collections`:** Red Hat's Summit 2026 skills repo, Apache-2.0
|
||||
(LICENSE file). Its `rh-automation` plugin is **Ansible Automation Platform governance**, not
|
||||
playbook or collection authoring. That is product-specific and fails the provider-agnostic
|
||||
constraint. Its only tag is a moving `latest`. **Not relevant.**
|
||||
- **Tooling licences, for awareness:** `ansible/ansible-lint` and `ansible/ansible-dev-tools` are
|
||||
**GPL-3.0**. `ansible/molecule` is MIT and `ansible/ansible-creator` is Apache-2.0. Skills that
|
||||
*invoke* these CLIs do not redistribute them, so this does not affect holocron.
|
||||
|
||||
**Recommendation for Ansible: author our own.** Suggested split, to be settled in the map: playbook
|
||||
authoring, collection authoring, and Molecule testing, with ansible-lint run as a deterministic gate
|
||||
inside those skills rather than as its own skill. Ground them in the canonical sources below, not in
|
||||
ai-forge text.
|
||||
|
||||
## Kubernetes troubleshooting
|
||||
|
||||
No official Kubernetes-project agent skill was found. Community skills are plentiful and uneven:
|
||||
|
||||
- `akin-ozer/cc-devops-skills` → `k8s-debug`: Apache-2.0, see above.
|
||||
- `laurigates/claude-plugins` → `kubectl-debugging`: MIT, last push on 2026-11-12. It covers ephemeral
|
||||
containers and `kubectl debug`.
|
||||
- `ahmedasmar/devops-claude-skills` → `k8s-troubleshooter`: **no licence** (GitHub API `None`, no
|
||||
LICENSE file), so all rights are reserved. **We cannot depend on it or adapt it.**
|
||||
- Many registry mirrors (`majiayu000/claude-skill-registry` and others) are re-hosts with unclear
|
||||
provenance. **Avoid them.**
|
||||
|
||||
MCP servers:
|
||||
|
||||
- **`containers/kubernetes-mcp-server`:** Apache-2.0, 2,243 stars, last push on 2026-11-12, latest tag
|
||||
`v0.1.2`. Its toolsets include `core` and `helm`. It has a `read_only` setting, plus
|
||||
`denied_resources`, which its README calls best-effort, deferring to RBAC as the real control. It
|
||||
ships as a native binary, npm, uvx and a container. This is the strongest generic option.
|
||||
- `Azure/mcp-kubernetes` (MIT, 62 stars) and `rohitg00/kubectl-mcp-server` (MIT) are alternatives.
|
||||
`k8sgpt-ai/k8sgpt` (Apache-2.0) is an analyser rather than a skill.
|
||||
|
||||
**Recommendation: author** one thin troubleshooting skill (events, describe, logs, `kubectl debug`,
|
||||
then hand off to Flux's `gitops-cluster-debug` for anything Flux-owned), grounded in kubernetes.io.
|
||||
Treat `containers/kubernetes-mcp-server` in read-only mode as an optional companion. Root `apm.yml`
|
||||
currently has `mcp: []`, and adding an MCP dependency is a change that needs its own decision.
|
||||
|
||||
## OpenTofu / Terraform
|
||||
|
||||
### `antonbabenko/terraform-skill`: community, recommended when needed
|
||||
|
||||
- **Licence:** Apache-2.0 (LICENSE file; the `SKILL.md` declares `license: Apache-2.0`).
|
||||
- **Maintenance:** 2,461 stars, last push on 2026-10-24, tagged regularly (latest `v1.17.2`). The
|
||||
author runs terraform-best-practices.com.
|
||||
- **Format:** Agent Skills `skills/terraform-skill/SKILL.md`. Also a Claude marketplace
|
||||
(`antonbabenko/agent-plugins`) and `npx skills`. It is apm-installable by subpath (inferred).
|
||||
- **Scope:** Explicitly covers **Terraform 1.0+ and OpenTofu 1.6+**: testing (native `test` vs
|
||||
Terratest), modules, state, CI, and Trivy/Checkov. Examples default to AWS. The guidance itself is
|
||||
cloud-generic, but we would want to check that the AWS examples do not bias a provider-agnostic
|
||||
package.
|
||||
|
||||
### `hashicorp/agent-skills`: official, mostly out of scope
|
||||
|
||||
- **Licence:** **MPL-2.0. Weak, file-level copyleft:** files we modify must stay MPL and their source
|
||||
must be made available. Depending on it unmodified carries no extra obligation. Adapting it means
|
||||
keeping the MPL on each derived file.
|
||||
- **Maintenance:** 927 stars, last push on 2026-11-04, **one tag, `v1.0.0`**.
|
||||
- **Format:** Agent Skills `SKILL.md` under `plugins/terraform/skills/<name>/`.
|
||||
- **Scope:** 16 Terraform skills (SKILLS.md). Most target provider development, Terraform Stacks,
|
||||
Sentinel/policy and Azure Verified Modules, which are HashiCorp or provider-specific. OpenTofu is
|
||||
**not mentioned**. Only `terraform-style-guide`, `terraform-test` and `refactor-module` are plausibly
|
||||
generic.
|
||||
- **Recommendation:** at most, depend on those two or three skills individually, pinned to `v1.0.0`.
|
||||
Check each against OpenTofu semantics first.
|
||||
|
||||
### MCP servers
|
||||
|
||||
- **`opentofu/opentofu-mcp-server`:** official. MPL-2.0 (LICENSE file; the GitHub API reports
|
||||
NOASSERTION because some folders carry different licences). Latest tag `v1.0.0`, last push on
|
||||
2026-09-21. It is **registry lookup only** (search, provider, module, resource and data-source docs),
|
||||
hosted at `https://mcp.opentofu.org/mcp` or run with `npx @opentofu/opentofu-mcp-server`. Read-only
|
||||
and low-risk.
|
||||
- **`hashicorp/terraform-mcp-server`:** MPL-2.0, `v1.4.1`. It is the Terraform Registry and HCP
|
||||
equivalent. Prefer the OpenTofu server for an OpenTofu target.
|
||||
|
||||
**No official OpenTofu agent skills exist** (search on 2026-11-12 found only the MCP server).
|
||||
|
||||
**Recommendation: defer.** When OpenTofu work starts, **depend** on `antonbabenko/terraform-skill`
|
||||
through a pinned wrapper plugin and **author** only OpenTofu-specific deltas (state encryption, `tofu`
|
||||
CLI differences) if they prove necessary.
|
||||
|
||||
## Canonical sources for our own skills' research registries
|
||||
|
||||
All URLs resolved on 2026-11-12.
|
||||
|
||||
- **Ansible:**
|
||||
- ansible-lint: <https://docs.ansible.com/projects/lint/>
|
||||
- Molecule: <https://docs.ansible.com/projects/molecule/>
|
||||
- Ansible dev tools MCP: <https://docs.ansible.com/projects/vscode-ansible/mcp/>
|
||||
- Red Hat CoP good practices: <https://github.com/redhat-cop/automation-good-practices>. The GitHub
|
||||
API reports **no detected licence**; cite and paraphrase it, do not copy it.
|
||||
- `ansible-creator` (Apache-2.0) for scaffolding conventions.
|
||||
- **Flux:**
|
||||
- <https://fluxcd.io/flux/>
|
||||
- Sealed Secrets guide: <https://fluxcd.io/flux/guides/sealed-secrets/>
|
||||
- <https://github.com/bitnami-labs/sealed-secrets> (Apache-2.0)
|
||||
- Agent skills page: <https://fluxcd.io/flux/agent-skills/>
|
||||
- **Kustomize:** <https://kubectl.docs.kubernetes.io/references/kustomize/>
|
||||
- **Helm:** <https://helm.sh/docs/>
|
||||
- **Kubernetes troubleshooting:** <https://kubernetes.io/docs/tasks/debug/>
|
||||
- **OpenTofu:** <https://opentofu.org/docs/>. Terraform: <https://developer.hashicorp.com/terraform>.
|
||||
|
||||
## Caveats
|
||||
|
||||
- Quality judgements are based on frontmatter, READMEs and vendor docs. No skill was evaluated
|
||||
end-to-end, and none was installed with apm.
|
||||
- Star counts and last-push dates are a snapshot from 2026-11-12.
|
||||
- The licence readings, especially AGPL for `flux-operator-mcp` and MPL-2.0 for HashiCorp and
|
||||
OpenTofu, are my reading of the licence terms and not legal advice.
|
||||
@@ -1,269 +0,0 @@
|
||||
# Multi-agent team patterns in practice
|
||||
|
||||
Research findings for Gitea issue #167, "Multi-agent team patterns in practice", which is part of
|
||||
map #166. Researched 2026-11-12. This note gathers evidence and makes a recommendation. It does not
|
||||
decide anything; the decision belongs to the map's owner.
|
||||
|
||||
## Question
|
||||
|
||||
Which provider-agnostic multi-agent "team" patterns are actually used to take work from specs to
|
||||
tickets to code to review? And which of them fit an apm package in this repo? The sub-questions:
|
||||
|
||||
1. Role-specialist agents versus a small set of generic role agents that load skills on demand
|
||||
2. Orchestration shapes, and how state and hand-offs travel without a provider runtime
|
||||
3. What apm primitives can carry portably across Claude Code, Copilot, Codex, Gemini and Cursor
|
||||
4. A verdict on this repo's `*-orchestrate` agents
|
||||
5. How much the `mattpocock` dependency already covers
|
||||
|
||||
## Answer in brief
|
||||
|
||||
- **Generic roles plus on-demand skills is the dominant pattern in coding tools.** Every coding
|
||||
harness checked ships a few *generic* built-in agents: an explorer/investigator, a planner and a
|
||||
general worker. Tech-stack specialists are not among them. Anthropic positions skills explicitly
|
||||
as the alternative to "fragmented, custom-designed agents". Role-persona teams (CrewAI, MetaGPT,
|
||||
ChatDev) also use functional roles such as Product Manager, Architect and Engineer, not tool
|
||||
specialists. Tool-specialist agents ("kubernetes-architect") show up mainly in community
|
||||
catalogues.
|
||||
- **Orchestrator–worker is the production shape.** Its workers run in isolated contexts and pass
|
||||
back only references or summaries. Pipeline/hand-off and generator–critic review are the other
|
||||
two shapes in common use. Peer-to-peer teams with a shared task list exist, but only as an
|
||||
experimental, Claude-specific runtime feature, and vendors steer you away from them for coding
|
||||
work that writes code.
|
||||
- **The issue tracker and the files are the portable state carriers.** None of the harnesses
|
||||
checked carries a multi-agent runtime that another harness can read. What *is* portable is
|
||||
SKILL.md (the Agent Skills open standard), AGENTS.md, and files, branches and tracker issues
|
||||
referenced by pointer.
|
||||
- **The `mattpocock` dependency already ships the pipeline as skills.** The chain is wayfinder →
|
||||
to-spec → to-tickets → triage → implement / implement-spec → tdd → code-review. Its roles
|
||||
(exploration, implementer, merger, standards reviewer and spec reviewer) are defined inline as
|
||||
fresh-context subagent prompts. It ships no agent files.
|
||||
- **The `*-orchestrate` agents are an outlier, with two anti-pattern traits.** The narrow
|
||||
dispatcher shape itself is accepted practice. The traits are rules restated from the skills
|
||||
(the GLOSSARY "Delegation discipline" defect) and safety gates enforced only by prompt.
|
||||
|
||||
**Recommendation:** do not build role-specialist agents. If a team package is built at all, keep
|
||||
it domain-agnostic and thin. That means at most three or four generic role agents (planner,
|
||||
implementer, reviewer, and optionally operator) whose only job is to carry a tool fence. The
|
||||
procedure stays in skills, and most of those skills `mattpocock` already ships. State goes in the
|
||||
tracker and on git branches. The infra package then contributes *tool* skills (Ansible, k8s and so
|
||||
on) that those generic roles load on demand. The tradeoff is weaker per-agent tool restriction on
|
||||
harnesses that cannot express a fence, such as Gemini and Codex. On those harnesses, enforcement
|
||||
has to come from the session's own permissions and from hooks.
|
||||
|
||||
## 1. Role-specialist versus generic role agents
|
||||
|
||||
### What the vendors ship and recommend
|
||||
|
||||
| Source | Built-in or example agents | Shape |
|
||||
|---|---|---|
|
||||
| Claude Code subagents [S4] | Built-in: `Explore` (read-only), `Plan`, `general-purpose`. Examples: `code-reviewer`, `debugger` | Generic and functional |
|
||||
| Codex subagents [S12] | Built-in: `default`, `worker` ("execution-focused… implementation and fixes"), `explorer` ("read-heavy") | Generic |
|
||||
| Gemini CLI subagents [S13] | Built-in: `codebase_investigator`, `generalist`, `cli_help`, `browser_agent` | Generic |
|
||||
| Cursor subagents [S14] | Built-in: `Explore`, `Browser` | Generic |
|
||||
| GitHub Copilot custom agents [S10] | Examples: "Testing specialist", "Implementation planner" | Functional |
|
||||
| OpenAI Agents SDK [S8] | "Have specialized agents that excel in one task" | Functional specialisation |
|
||||
| CrewAI [S11] | `role`/`goal`/`backstory`. Examples: "Research Analyst", "Senior Python Developer" | Persona roles |
|
||||
| MetaGPT [S15] | "assembly line paradigm to assign diverse roles" encoding SOPs | Persona roles (PM, Architect, Engineer) |
|
||||
| ChatDev [S16] | "specialized agents" across "design, coding, and testing phases" | Persona roles by phase |
|
||||
|
||||
Two things stand out.
|
||||
|
||||
1. **No vendor ships a tech-stack specialist as a built-in.** The specialisation that vendors *do*
|
||||
recommend is by **function**: review, debug, test, plan or explore. Codex puts it directly:
|
||||
"The best custom agents are narrow and opinionated", meaning one clear job and a tool surface to
|
||||
match [S12]. A job is a function ("review"). It is not a technology ("Ansible").
|
||||
2. **Domain knowledge moves into skills.** Anthropic introduced skills so that, "instead of
|
||||
building fragmented, custom-designed agents for each use case", you specialise a
|
||||
general-purpose agent by packaging procedural knowledge it loads on demand. Anthropic has
|
||||
published the format as an open standard [S5]. LangChain lists "Skills: specialized prompts and
|
||||
knowledge loaded on-demand" as a first-class alternative to multi-agent setups, with a single
|
||||
agent keeping control [S17].
|
||||
|
||||
Claude Code wires the two together. An agent's `skills:` frontmatter preloads named skills, and
|
||||
"subagents can still invoke unlisted… skills through the Skill tool" [S4]. A generic `implementer`
|
||||
can therefore pick up an `ansible` skill without anyone writing an `ansible-engineer` agent.
|
||||
|
||||
### Where tool specialists do appear
|
||||
|
||||
Tool specialists do appear, in community catalogues. `wshobson/agents`, for example, ships 202
|
||||
agents next to 185 skills across 94 plugins [S18]. Those catalogues show that people *write* such
|
||||
agents. They do not show that teams *run* them as the working structure, and I found no primary
|
||||
vendor source that recommends the tool-specialist layout. **Not certain:** no usage telemetry
|
||||
compares the two approaches, so "more used" rests on what vendors ship and recommend, not on
|
||||
measured adoption.
|
||||
|
||||
### Why generic roles win: the reasons the sources give
|
||||
|
||||
- **Context and cost.** Multi-agent systems use "about 15× more tokens than chats" [S2]. Each extra
|
||||
agent costs a full context window, and Claude Code also warns once the combined subagent
|
||||
descriptions pass 15,000 tokens [S4]. A roster of N tech specialists grows linearly in
|
||||
descriptions that are always loaded. Skills cost about 100 tokens each until they are activated
|
||||
[S6].
|
||||
- **Coding parallelises poorly.** Anthropic notes that "most coding tasks have fewer parallelizable
|
||||
subtasks than research", and that domains needing shared context are a poor fit [S2]. Cognition
|
||||
argues that "actions carry implicit decisions, and conflicting decisions carry bad results", and
|
||||
recommends a single-threaded linear agent [S3]. Specialists that split one change *by
|
||||
technology* (an Ansible role plus the k8s manifests it deploys) are exactly the kind of agents
|
||||
that make conflicting implicit decisions.
|
||||
- **Measured failure modes.** The MAST study annotated 1,600+ traces across 7 multi-agent
|
||||
frameworks and found 14 failure modes in three groups: system design, inter-agent misalignment
|
||||
and task verification. It found that "performance gains on popular benchmarks are often minimal"
|
||||
[S19].
|
||||
- **Start simple.** Anthropic's advice is to "find the simplest solution possible, and only
|
||||
increasing complexity when needed" [S1]. LangChain says "not every complex task requires this
|
||||
approach" [S17].
|
||||
|
||||
This repo's earlier factory research reached the same answer independently: six *functional*
|
||||
roles that run sequentially, because "concurrent agent teams compound error rates and explode
|
||||
token cost" (`docs/research/ai-coding-factory/ai-coding-factory-principles.md` §4–5).
|
||||
|
||||
## 2. Orchestration shapes and how state travels
|
||||
|
||||
| Shape | First-party description | Fit for spec → code → review |
|
||||
|---|---|---|
|
||||
| Orchestrator–worker | "a central LLM dynamically breaks down tasks, delegates them to worker LLMs, and synthesizes their results" [S1]. A lead agent with parallel subagents [S2]. "Agents as tools… manager keeps control" [S8]. ADK "Coordinator/Dispatcher" and "Hierarchical decomposition" [S9] | **Primary.** It is the one shape every harness supports natively (subagents) |
|
||||
| Pipeline / hand-off | Prompt chaining [S1]. ADK "Sequential Pipeline… hands the baton" [S9]. OpenAI "handoffs: a triage agent routes… specialist takes over" [S8] | Good for phase boundaries (spec → tickets → code), each phase being a fresh session |
|
||||
| Generator–critic / review loop | Evaluator–optimizer [S1]. ADK "Generator and critic", "Iterative refinement" [S9] | Good for review. `code-review` is already a two-critic fan-out |
|
||||
| Parallel fan-out / gather | Parallelisation [S1]. ADK "Parallel Fan-Out/Gather" [S9] | Good for read-heavy work. Codex: be careful with write-heavy parallel work [S12] |
|
||||
| Peer team with a shared task list | Claude Code agent teams: lead, teammates, a shared task list with blocking, and mailboxes [S7] | **Experimental and Claude-only.** Vendor advice is to "start with research and review", because parallel implementation brings coordination problems [S7] |
|
||||
| Human-in-the-loop | ADK "Human-in-the-loop" [S9] | Needed before irreversible steps (governance rule) |
|
||||
|
||||
**State without a provider runtime.** First-party sources converge on *external artifacts passed by
|
||||
reference*:
|
||||
|
||||
- Anthropic: "Subagents call tools to store their work in external systems, then pass lightweight
|
||||
references back to the coordinator" [S2].
|
||||
- Delegation needs "an objective, an output format, guidance on the tools and sources to use, and
|
||||
clear task boundaries" [S2].
|
||||
- ADK passes state through `session.state`, with each agent writing to an `output_key` [S9]. That
|
||||
is runtime-specific. Its portable equivalent is a file or an issue.
|
||||
- Claude agent teams keep their task list in `~/.claude/tasks/…`. That is session-scoped and
|
||||
"one team per session", so it is not portable and not shareable [S7].
|
||||
|
||||
The portable carriers are therefore these:
|
||||
|
||||
- **Issue tracker:** tickets, native blocking links as the task graph, assignee as the claim,
|
||||
comments as the resolution record. This is the mechanism `wayfinder` and `implement-spec` already
|
||||
use.
|
||||
- **Git:** an integration branch per spec and one worktree plus branch per worker
|
||||
(`implement-spec`).
|
||||
- **Files:** research notes, specs and ADRs.
|
||||
- **AGENTS.md:** standing conventions. More than 20 tools read it, including Codex, Copilot's
|
||||
coding agent, Cursor, Gemini CLI, Jules, Devin, Zed and VS Code [S20].
|
||||
|
||||
## 3. What is portable across harnesses
|
||||
|
||||
| Primitive | Portable? | Evidence |
|
||||
|---|---|---|
|
||||
| Skill (`SKILL.md`) | **Yes.** It is the open standard, and apm copies it verbatim to every target (`.agents/skills/` for most, `.claude/skills/` for Claude) | [S6]. `plugins/kyberforge/docs/research/docs/microsoft-apm/agent-primitive-schema.md:64-66` |
|
||||
| AGENTS.md | **Yes.** It is read natively by 20+ tools | [S20] |
|
||||
| Agent (`.agent.md`) | **Partly.** `name`, `description` and the body survive everywhere apm deploys agents. Claude, Copilot and Cursor get a verbatim copy. Codex gets a TOML rebuild in which `model` and `tools` are dropped. Kiro strips `name`. Apm's research records that Gemini and Windsurf get no agent at all | `agent-primitive-schema.md:27-37`. ADR-0016 |
|
||||
| Tool fence on an agent | **No.** `tools:` vocabularies conflict. `disallowedTools` is honoured by Claude, but its meaning on Copilot is unverified, and Codex drops it | ADR-0016 and its 2026-08-14 amendment. Codex: "To prevent edits, set sandbox and approval controls on the parent session, not in agent instructions" [S12] |
|
||||
| Skill preload on an agent (`skills:`) | Claude only. Agent-team teammates ignore it even in Claude [S7] | [S4], [S7] |
|
||||
| Peer-team runtime | **No.** Experimental and Claude-only | [S7] |
|
||||
|
||||
**A gap to verify.** Apm's research says Gemini "has no agents primitive" (`agent-primitive-schema.md:37`).
|
||||
Gemini CLI now documents `.gemini/agents/*.md` subagents, with `name`/`description`/`tools`/`model`
|
||||
frontmatter, enabled by default [S13]. Cursor reads `.claude/agents/` and `.codex/agents/` as
|
||||
compatibility paths [S14]. Apm's Gemini mapping may therefore be stale. Check the current apm
|
||||
release before relying on it either way.
|
||||
|
||||
Consequence: in this repo, **a role agent can portably carry only a name, a description and a body
|
||||
of prose.** So a generic-role agent is cheap to make portable. A specialist agent whose value
|
||||
depends on a tool fence or a skill preload is not portable at all.
|
||||
|
||||
## 4. Verdict on the `*-orchestrate` agents
|
||||
|
||||
The three agents are `git-orchestrate`, `gitea-orchestrate` and `apm-orchestrate`
|
||||
(`plugins/{git,gitea,kyberforge}/.apm/agents/`). Each is a dispatcher for one tool domain. An
|
||||
*agent* caller sends it an `operation` plus `confirm`. It enforces "Hard rules", routes to that
|
||||
domain's skills, and returns JSON.
|
||||
|
||||
| Aspect | Judgement | Basis |
|
||||
|---|---|---|
|
||||
| Narrow job, an isolated context, a structured result | **Accepted** | Codex "narrow and opinionated" [S12]. Anthropic's delegation contract (objective, output format, boundaries) [S2]. ADK Coordinator/Dispatcher [S9] |
|
||||
| Read-only fence (`disallowedTools` on gitea/apm) | Accepted intent, **Claude-only effect** | §3 above. On Codex the fence is dropped, and the vendor says to put it on the session instead [S12] |
|
||||
| Specialised by *tool domain* (git, Gitea, apm), not by function | **Outlier.** In the sources reviewed, no vendor or framework puts a dispatcher agent between an agent and a set of skills. The vendor pattern is that the working agent loads the skill itself [S4], [S5], [S17] | §1 |
|
||||
| "Hard rules" restated from the domain skills | **Anti-pattern** (GLOSSARY "Delegation discipline": restatement). `git-orchestrate` says it outright: "Sub-skills carry their own local copies of these rules" | `plugins/git/.apm/agents/git-orchestrate.agent.md` |
|
||||
| Safety gates enforced only by the prompt (`confirm: true`, never force-push `main`) | **Anti-pattern for invariants.** Governance makes deterministic tooling the enforcement layer ("Agent instructions alone cannot enforce what deterministic tooling must enforce"), and vendors put it in session permissions or hooks [S7], [S12] | `core/instructions/governance.md`. Pre-push hooks in `.pre-commit-config.yaml` are the repo's existing deterministic layer |
|
||||
| Code-smell view | "Middle Man: a class or function that mostly just delegates onward → cut it" | mattpocock `code-review` baseline |
|
||||
|
||||
Net: **an outlier, not accepted practice for a team pattern.** The parts worth keeping are the
|
||||
domain gotchas, such as the Gitea `delete_release` id-versus-tag asymmetry and 404-means-forbidden.
|
||||
Those belong in the domain skills. Irreversible-action gates belong in hooks and permissions. A
|
||||
generic implementer or operator agent would then call `git-commits` or `gitea-prs` directly, which
|
||||
also saves a nesting level against Claude's default subagent depth limit of three [S4].
|
||||
`lint-runner` is the one agent of this kind that sits closer to accepted practice: it is a
|
||||
read-only, function-scoped worker ("run linters, report findings").
|
||||
|
||||
## 5. Overlap with `mattpocock`
|
||||
|
||||
`plugins/mattpocock/apm.yml` pins 20 upstream skills at `v1.3.2`. Mapped onto the pipeline:
|
||||
|
||||
| Pipeline stage | Skill already shipped | Roles it defines inline |
|
||||
|---|---|---|
|
||||
| Fog → decisions | `wayfinder` (tracker map, typed tickets, frontier, claim by assignee, research subagents on `research/<name>` branches) | Research subagent |
|
||||
| Spec | `to-spec`, `grill-with-docs`, `domain-modeling` | — |
|
||||
| Tickets | `to-tickets` (vertical slices, native blocking edges, expand–contract for wide refactors) | — |
|
||||
| Ready-for-agent | `triage` (`ready-for-agent` / `ready-for-human` states, agent briefs) | — |
|
||||
| Code | `implement` (single session), `implement-spec` (integration branch, frontier-driven parallel implementers in worktrees, merger subagent, "communicate primarily through context pointers") | Exploration, implementer and merger subagents |
|
||||
| Test-first | `tdd`, `codebase-design` | — |
|
||||
| Review | `code-review` (Standards and Spec as parallel fresh-context subagents, not merged or reranked) | Standards reviewer and spec reviewer |
|
||||
| Learn | `retro` | — |
|
||||
|
||||
`implement-spec` already *is* the orchestrator–worker shape with tracker and git state that §2
|
||||
recommends. Its roles are generic (implementer, reviewer) and load skills (`tdd`). So the pipeline
|
||||
and the generic roles are covered. What is not covered:
|
||||
|
||||
1. **No named role-agent files.** The roles exist only as prompts inside the orchestrating skill,
|
||||
so they cannot carry a tool fence and cannot be reused on their own.
|
||||
2. **No operator or deploy role.** Nothing covers plan/apply against infrastructure with a HITL
|
||||
gate. Today that is the infra package's territory.
|
||||
3. **The entry points are hand-invoked only.** `wayfinder`, `to-tickets`, `to-spec`, `implement`,
|
||||
`implement-spec` and `triage` set `disable-model-invocation: true`, so another agent cannot
|
||||
route to them through the Skill tool (`plugins/mattpocock/apm.yml` comments). A team package
|
||||
could not chain them autonomously without a local wrapper.
|
||||
4. **There is a tracker dependency.** They read the tracker doc that `setup-matt-pocock-skills`
|
||||
writes, and here that is Gitea through the `gitea-*` skills (`docs/agents/issue-tracker.md`).
|
||||
|
||||
## Options for the map (evidence, not a decision)
|
||||
|
||||
| Option | For | Against |
|
||||
|---|---|---|
|
||||
| A. No team package. Use `mattpocock` as is, and the infra package adds tool skills only | Zero new surface. Matches vendor guidance and §5 coverage | Roles stay unfenced prompts, and the pipeline is hand-driven stage by stage |
|
||||
| B. **Thin generic-roles package** (recommended): `planner`, `implementer`, `reviewer`, optional `operator` agents, each a short body that names the skills to load. Reviewer and planner fenced read-only with `disallowedTools`. State in Gitea and branches | Matches what vendors ship ([S4], [S12], [S13]). Portable as name, description and body. Reusable as subagents and as Claude teammates [S7] | Fences hold on Claude only. Needs a skill-level wrapper to start the hand-invoked `mattpocock` entry points |
|
||||
| C. Role-specialist roster (`ansible-engineer`, `k8s-reviewer`, …) | Familiar from CrewAI and community catalogues | Linear description cost, overlapping implicit decisions [S3], no vendor precedent, couples the team to the infra domain, which the brief rules out |
|
||||
|
||||
## Sources
|
||||
|
||||
Primary sources were fetched 2026-11-12. Quotations are verbatim from the fetched page.
|
||||
|
||||
- [S1] Anthropic, "Building effective agents" — <https://www.anthropic.com/engineering/building-effective-agents>
|
||||
- [S2] Anthropic, "How we built our multi-agent research system" — <https://www.anthropic.com/engineering/multi-agent-research-system>
|
||||
- [S3] Cognition, "Don't build multi-agents" — <https://cognition.com/blog/dont-build-multi-agents>
|
||||
- [S4] Claude Code docs, "Subagents" — <https://code.claude.com/docs/en/sub-agents>
|
||||
- [S5] Anthropic, "Equipping agents for the real world with Agent Skills" — <https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills>
|
||||
- [S6] Agent Skills specification — <https://agentskills.io/specification>
|
||||
- [S7] Claude Code docs, "Agent teams" — <https://code.claude.com/docs/en/agent-teams>
|
||||
- [S8] OpenAI Agents SDK, "Orchestrating multiple agents" — <https://openai.github.io/openai-agents-python/multi_agent/>
|
||||
- [S9] Google Developers Blog, "Developer's guide to multi-agent patterns in ADK" — <https://developers.googleblog.com/en/developers-guide-to-multi-agent-patterns-in-adk/>
|
||||
- [S10] GitHub Docs, "Creating custom agents" — <https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents>
|
||||
- [S11] CrewAI docs, "Agents" — <https://docs.crewai.com/en/concepts/agents>
|
||||
- [S12] OpenAI Codex docs, "Subagents" — <https://learn.chatgpt.com/docs/agent-configuration/subagents>
|
||||
- [S13] Gemini CLI docs, "Subagents" — <https://geminicli.com/docs/core/subagents/>
|
||||
- [S14] Cursor docs, "Subagents" — <https://cursor.com/docs/context/subagents>
|
||||
- [S15] Hong et al., "MetaGPT" — <https://arxiv.org/abs/2308.00352>
|
||||
- [S16] Qian et al., "ChatDev" — <https://arxiv.org/abs/2307.07924>
|
||||
- [S17] LangChain docs, "Multi-agent" — <https://docs.langchain.com/oss/python/langchain/multi-agent>
|
||||
- [S18] wshobson/agents (community catalogue, practitioner evidence) — <https://github.com/wshobson/agents>
|
||||
- [S19] Cemri et al., "Why Do Multi-Agent LLM Systems Fail?" (MAST) — <https://arxiv.org/abs/2503.13657>
|
||||
- [S20] AGENTS.md — <https://agents.md/>
|
||||
|
||||
Repo sources: ADR-0015, ADR-0016 (and its 2026-08-14 amendment), ADR-0024; `GLOSSARY.md`
|
||||
("Delegation discipline"); `plugins/kyberforge/docs/research/docs/microsoft-apm/agent-primitive-schema.md`;
|
||||
`plugins/mattpocock/apm.yml`; the upstream `mattpocock/skills` SKILL.md files at `v1.3.2`
|
||||
(installed under `apm_modules/`); `plugins/*/.apm/agents/*.agent.md`.
|
||||
|
||||
**Not reached:** OpenAI's "A practical guide to building agents" PDF could not be read as text, and
|
||||
LangGraph's legacy multi-agent concepts page redirected away, so neither is cited. AutoGen was not
|
||||
consulted separately.
|
||||
Reference in new issue
Block a user