first-plan-protocol

A project-workflow guide that makes the coding agent inspect a codebase, plan changes, get approval, execute them, and report the result in order.

In plain words
What is it for?
It helps investigate a repository, prepare feature plans, record open questions, and keep implementation work aligned with the project’s existing design.
Why use it?
It reduces guesswork by requiring the agent to understand the project’s structure, conventions, existing code, risks, and history before changing anything.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/vynazevedo/first-plan/protocol
Any agent
npx skills add vynazevedo/first-plan --skill protocol
Clone the repo
git clone --depth 1 https://github.com/vynazevedo/first-plan

Made for: Claude Code, Codex.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00081 $0.01687
Opus 5 $0.00041 $0.00843
Sonnet 5 $0.00016 $0.00337
Haiku 4.5 $0.00008 $0.00169

Measured 2d ago against content hash 0fd034156921, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

first-plan-protocol 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 2d 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.

skills/protocol/SKILL.md · 167 lines

How it starts

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

Protocol - first-plan

Skill base obrigatória do plugin. Toda execução de comando /fp:* carrega esta skill.

Filosofia

Antes de escrever uma linha de código, entenda o projeto. O plugin existe pra forçar essa disciplina. Não improvisar, não impor padrões externos, não duplicar trabalho.

Protocolo PLAN-FIRST (obrigatório)

Discovery -> Plan -> Approval -> Execution -> Report

Fases bloqueantes. Cada uma só inicia quando a anterior estiver concluída e validada.

Fase 1 - Discovery

Disparada por /fp:init. Resultado: .first-plan/ populado.

Mapear:

  • Topologia (stacks, arquitetura, boundaries, deployment)
  • Convenções (naming, errors, testing, logging, di, security)
  • Reuse Index invertido (componentes, utils, types, hooks)
  • Domínio (glossário, entidades, flows)
  • Riscos (fragile, untested, magic, debt)
  • Rationale (do, dont, why)
  • Spec-Code Reconciliation (matriz feature × status × evidência)
  • Git intelligence (activity, ownership, in-flight)

Cada finding tem confidence: 0.0-1.0. Findings com confidence < 0.7 viram entradas em .first-plan/08-meta/questions.md.

Fase 2 - Plan

Disparada por /fp:plan <feature>. Resultado: .first-plan/07-state/plans/<slug>.md.

Antes de escrever o plano:

  1. Consultar .first-plan/09-features/ - a feature ja existe?
  2. Consultar .first-plan/07-state/in-flight.md - alguém ja esta fazendo?
  3. Consultar .first-plan/03-reuse/INDEX.md - o que reusar?

O plano deve seguir o template em ${CLAUDE_PLUGIN_ROOT}/meta-templates/plan.md. Pausa pedindo aprovação humana ao final.

Fase 3 - Approval (gate humano)

Estado: awaiting_approval em .first-plan/07-state/STATE.md.

Aguardar:

  • /fp:execute → prossegue
  • Mensagem com mudança → reescreve plano e volta a aguardar

Não executa nada antes da aprovação. Não há atalho.

Fase 4 - Execution

Disparada por /fp:execute. Resultado: código modificado conforme plano + atualização do STATE.

Durante:

  • Seguir o plano à risca, na ordem definida
  • Commits pequenos e atômicos no padrão do projeto
  • Se descobrir algo que invalide o plano (premissa errada, contrato diferente, erro de discovery): PARAR e reportar, não improvisar
  • Atualizar STATE.md a cada passo

Read the full file on GitHub · 167 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. 2d ago First seen · 167 lines · 81 tokens per session scan A 0fd034156921

Subscribe to this mod's changes

first-plan-protocol is a skill published in the GitHub repository vynazevedo/first-plan (23 stars, last pushed 8d ago), licensed MIT. It adds 81 tokens to every session and 1,687 once invoked, about $0.0004 per session on Opus 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 skills, from other repositories

RecallMax

Enhances AI memory capabilities with long-context support.

Bilal140202/the-lord-of-the-skills · 13 tokens

agent-memory

Persistent memory system for AI coding agents. Use when you need to save facts about the user, store interaction preferences, log session events, or search previously saved memories. Triggers on remembering, saving context, recalling past decisions, or when the user says "remember this". Also use proactively when the…

OctavianTocan/agent-memory · 78 tokens

snip

You are an expert at writing declarative YAML filters for snip, a CLI proxy that reduces LLM token consumption by filtering shell output.

edouard-claude/snip · 0 tokens

release-notes

Draft user-facing release notes from a git log range. Trigger when the user asks for "release notes", "changelog entry", or "what shipped this week" with a git ref range. Output is markdown sections grouped by Features / Fixes / Breaking with PR links.

jnMetaCode/ai-coding-guide · 59 tokens

arch-check

架构与实现审查 —— 基于「概念建模 → 职责划分 → 机制/策略分离 → 因果与不变量 → 属性建模 → 模块化 → SOLID → GRASP → YAGNI」的全维度审查,带置信度门控与假阳性抑制(对抗"过度工程建议"这类 AI slop)。触发于:要求 review/审查架构、检查目录结构/依赖关系/职责划分、重构前评估、技术债盘点、判断是否过度设计,或问「这个设计合理吗 / 该怎么拆 / 有没有循环依赖 / 这个改动架构上 OK 吗」。一律按最高强度审查。用法:arch-check [范围] [--fix|--plan]。范围可为目录/文件/PR;缺省审当前分支相对基线的全部变更。.

AgentsMesh/AgentsMesh · 212 tokens

Agent Context File Writer

Writes a high-quality CLAUDE.md, .cursorrules, or .windsurfrules file that gives a coding agent the right project context, conventions, and constraints to work effectively.

Notysoty/openagentskills · 45 tokens