_composicion

_composicion is a command for Claude Code from 686f6c61/alfred-dev. It costs 22 tokens per session (2,017 once invoked), scanned A, original, MIT.

An internal protocol for dynamically assembling Alfred's development team based on the task, technology stack, and runtime signals. It also defines default autonomy settings for a project.

In plain words
What is it for?
Use it when running Alfred workflows such as feature work, fixes, audits, experiments, or releases, especially when configuring project autonomy and team composition.
Why use it?
It gives Alfred's commands a shared process for deciding how the team should work and what level of independence each area has.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the alfred-dev plugin — 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it when running Alfred workflows such as feature work, fixes, audits, experiments, or releases, especially when configuring project autonomy and team composition.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/686f6c61/alfred-dev/_composicion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev

Made for: Claude Code.

Or install alfred-dev, the plugin that ships this one along with the rest of its 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for _composicion

README.md
[![agentmods](https://agentmods.dev/badge/commands/686f6c61/alfred-dev/_composicion/github.svg)](https://agentmods.dev/commands/686f6c61/alfred-dev/_composicion)
Your own site
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/_composicion"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/_composicion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for _composicion

Your own site · 80×15
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/_composicion"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/_composicion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,017 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02017
Opus 5.5 $0.00009 $0.00807
Sonnet 5.5 $0.00004 $0.00403
Haiku 4.5 $0.00002 $0.00202

Measured 1mo ago against content hash 172fa1d893cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

_composicion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/_composicion.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Protocolo de composición dinámica de equipo

Este fichero define el protocolo compartido para componer el equipo de cada sesión. Lo usan todos los comandos de Alfred (feature, quick, fix, spike, audit, ship). Cualquier cambio aquí se refleja en todos los flujos.

Paso 0 -- Configuración inicial del proyecto

Antes de cualquier otra cosa, comprueba si el proyecto ya tiene configurado el modo de autonomía. Lee .claude/alfred-dev.local.md y busca la sección autonomia: en el frontmatter YAML.

Si la sección autonomia: NO existe (primera vez que se usa Alfred en este proyecto):

  1. Escribe directamente una configuración por defecto compatible con Claude Code CLI en .claude/alfred-dev.local.md:

    autonomia:
      producto: autonomo
      arquitectura: autonomo
      desarrollo: autonomo
      calidad: autonomo
      documentacion: autonomo
      entrega: autonomo
    
  2. NO uses AskUserQuestion en este bootstrap inicial. El objetivo es que Alfred pueda actuar automáticamente desde la primera sesión si el usuario invoca /alfred, /alfred-dev:feature, /alfred-dev:quick, /alfred-dev:fix, /alfred-dev:spike, /alfred-dev:audit o /alfred-dev:ship.

  3. Muestra un mensaje breve indicando que Alfred ha activado el modo autopilot por defecto para evitar bloquear el flujo en la primera sesión y que el usuario puede cambiarlo más tarde con /alfred-dev:ajustes.

Si la sección autonomia: YA existe: salta este paso y continúa directamente.

Nota: el usuario puede cambiar el modo en cualquier momento con /alfred-dev:ajustes.

Paso 1 -- Contexto del proyecto

Llama a suggest_optional_agents(project_dir) para obtener señales basadas en I/O del proyecto (stack detectado, presencia de ORM, frontend, HTML público, remote GitHub, tamaño del proyecto, memoria activa). Estas señales son objetivas y complementan tu razonamiento semántico.

Paso 2 -- Razonamiento semántico

Lee la descripción de la tarea y las señales del proyecto. Decide qué agentes opcionales son relevantes usando tu comprensión semántica, no keywords. Razona sobre el dominio de la tarea, no sobre palabras sueltas.

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 195 lines · 22 tokens per session scan A 172fa1d893cb

Subscribe to this mod's changes

_composicion is a command published in the GitHub repository 686f6c61/alfred-dev (117 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 2,017 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories