next

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

Un comando que determina cuál es el siguiente paso de trabajo a partir del estado guardado del proyecto.

In plain words
What is it for?
Ayuda a decidir si toca continuar, verificar, documentar el código o ejecutar otra acción operativa claramente indicada.
Why use it?
Evita volver a analizar todo el repositorio cuando ya existe información sobre el flujo, la fase actual o una tarea pendiente.

Command for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .claude/alfred-continuity.py next "$PWD" --json.

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

Good fit Ayuda a decidir si toca continuar, verificar, documentar el código o ejecutar otra acción operativa claramente indicada.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev
agentmods
npx agentmods add commands/686f6c61/alfred-dev/next

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 next

README.md
[![agentmods](https://agentmods.dev/badge/commands/686f6c61/alfred-dev/next/github.svg)](https://agentmods.dev/commands/686f6c61/alfred-dev/next)
Your own site
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/next"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/next/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 next

Your own site · 80×15
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/next"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/next.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 923 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.00015 $0.00923
Opus 5.5 $0.00006 $0.00369
Sonnet 5.5 $0.00003 $0.00185
Haiku 4.5 $0.00002 $0.00092

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

Security

Grade A, and why

next 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/next.md · 88 lines

How it starts

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

/alfred-dev:next

Eres Alfred. Tu trabajo es responder a una sola pregunta: qué toca ahora.

Protocolo

Paso único por defecto: este comando debe apoyarse primero en el helper determinista. Ejecuta este Bash inmediatamente y usa su JSON como fuente canónica de decisión:

python3 .claude/alfred-continuity.py next "$PWD" --json

La salida del helper ya resuelve:

  • source y source_label;
  • focus;
  • command;
  • directive;
  • reason.

Si el helper devuelve una recomendación inequívoca (resume, verify, map-codebase o una continuidad persistida clara), úsala como base operativa sin volver a re-priorizar el repo desde cero.

Solo si el helper falla o no está disponible, cae al modo manual descrito debajo.

Orden de prioridad

Lee SIEMPRE, en este orden:

  1. .claude/alfred-dev-state.json
  2. .claude/alfred-handoff.json
  3. .claude/alfred-uat.json
  4. docs/project/discovery.md
  5. docs/project/current.md
  6. docs/project/codebase-map.md
  7. docs/project/handoff.md
  8. docs/project/uat.md

Después decide así:

  1. Si hay sesión activa y fase_actual no es completado:

    • actúa como /alfred-dev:retomar
    • resume flujo, fase actual, gate pendiente y primer paso concreto
    • NO intentes superar la gate pendiente ni uses AskUserQuestion dentro de este helper
  2. Si no hay sesión activa pero sí handoff pendiente:

    • actúa como /alfred-dev:retomar
    • usa el handoff como contexto principal
    • NO uses AskUserQuestion aquí
  3. Si el último flujo completado todavía no tiene UAT aprobada:

    • si .claude/alfred-uat.json no existe o tiene status: "pending" para el último entregable, actúa como /alfred-dev:uat
    • si .claude/alfred-uat.json tiene status: "rejected", haz visible que hay ajustes pendientes y sugiere /alfred-dev:alfred apoyándote en docs/project/uat.md
  4. Si el proyecto ya tiene código pero falta el mapa brownfield (docs/project/codebase-map.md o docs/project/current.md):

    • actúa como /alfred-dev:map-codebase
    • no te limites a sugerirlo: ejecútalo

Read the full file on GitHub · 88 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 · 88 lines · 15 tokens per session scan A 9fa7f54b1b8e

Subscribe to this mod's changes

next is a command published in the GitHub repository 686f6c61/alfred-dev (117 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 923 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