agentleFS
GustavoAlecioGustavoAlecio/claude-setup/skills/implement/SKILL.md

implement

Skill0 starsChanged 5 months agoMITView on GitHub

Etapa 4 do Fluxo Smart — executa as tasks em ordem, seguindo o plano tecnico aprovado

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 36 projects that use this

  • AWSSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

    Also in 75 projects that use this

  • qwlabsSkill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 22 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 18 projects that use this

  • +5 more from aws

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Nao, todas concluidas: delete phases.md e informe que o projeto foi implementado por completo.

    line 137

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

1. Detectar projeto

PROJECT_PATH=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
PROJECT_NAME=$(basename "$PROJECT_PATH")

2. Verificar pre-requisitos e detectar retomada

Leia ~/.claude/workflow/$PROJECT_NAME/plan.md e ~/.claude/workflow/$PROJECT_NAME/tasks.md. Se algum nao existir, informe qual etapa esta faltando. Leia ~/.claude/workflow/$PROJECT_NAME/current.json para contexto.

Nao leia spec.md — plan.md ja contem o contexto suficiente.

Checkpointing — retomar de onde parou

Verifique tasks.items no current.json. Se houver tasks com status "done":

  1. Pule tasks ja concluidas — nao re-execute
  2. Se houver uma task com status "in_progress" (tasks.current_task_id preenchido):
    • Verifique no codigo se a implementacao foi parcial (arquivos criados/editados mas incompletos)
    • Se completa → marque como "done" e avance
    • Se parcial → retome do ponto onde parou
    • Se nenhuma evidencia → comece a task do zero
  3. Avise: "Retomando implementacao — N tasks ja concluidas, continuando a partir de Task #ID"

Apenas tasks com status "pending" ou "in_progress" serao executadas.

Context budget

Se o plan.md tiver mais de 200 linhas, leia apenas: "Visao geral", "Arquivos impactados", "Ordem de execucao" e "Estrategia de testes". Use o tasks.md como guia primario — ele ja referencia as secoes relevantes do plano.

3. Consultar lessons learned

Se ~/.claude/projects/$PROJECT_NAME/lessons.md existir, leia-o. Aplique as regras como constraints durante a implementacao. Se uma task pode repetir um erro documentado, evite-o proativamente.

Lessons sao cross-cycle (propriedade do projeto, nao do ciclo). Vivem em projects/, nao em workflow/.

4. Capturar metricas de inicio — EXECUTE AGORA

bash ~/.claude/bin/capture-metrics.sh start implement "$PROJECT_NAME" "$PROJECT_PATH"

Guarde o output como STEP_START_TS.

5. Registrar estado git inicial

git rev-parse HEAD

Guarde como GIT_START_SHA — sera usado no resumo de impacto.

6. Executar tasks

Liste tasks pendentes com TaskList. Execute na ordem do tasks.md.

Para cada task:

  1. Anuncie: "Task #ID — Titulo [S/M/L]"
  2. Atualize current.json: set tasks.current_task_id para o ID da task e tasks.items[n].status para "in_progress"
  3. Implemente seguindo o plan.md
  4. Validacao imediata: se a task tem teste mapeado na tabela "Estrategia de testes (TDD)" do plan.md, execute-o agora. Registre resultado no tasks.items[n]:
    { "id": "T2", "status": "done", "test_result": "pass" }
    • Se o teste falhar ("test_result": "fail"), corrija antes de avancar
    • Se nao ha teste mapeado, registre "test_result": "no_test"
  5. Atualize status com TaskUpdate
  6. Marque [x] no tasks.md
  7. Atualize current.json: set tasks.items[n].status para "done" e incremente tasks.completed
  8. Resumo de 1 linha do que foi feito

Protocolo de desvio (backtrack)

Se durante a implementacao voce encontrar algo que invalida o plano:

  1. Pare a execucao — nao force uma implementacao que nao faz sentido
  2. Documente o problema: descreva claramente o que encontrou e por que o plano e inviavel nesse ponto
  3. Proponha a correcao: sugira o ajuste necessario no plan.md (e na spec.md se for o caso)
  4. Aguarde aprovacao: pergunte "Encontrei um desvio necessario. Posso atualizar o plano e continuar?"
  5. Se aprovado: atualize os artefatos, registre em current.json no campo backtracks:
    "backtracks": [{"task": "#ID", "reason": "...", "resolution": "..."}]
  6. Se rejeitado: siga com o plano original ou pare conforme o usuario decidir

Regras gerais:

  • Nunca desvie do plano sem consultar o usuario
  • Pause se encontrar algo inesperado
  • Aguarde confirmacao para tasks com risco alto

7. Resumo de impacto — EXECUTE AGORA

Apos todas as tasks:

git diff --stat <GIT_START_SHA>..HEAD

Se alguma task teve test_result: "no_test", execute a suite de testes completa do projeto como safety net:

# Adapte ao projeto — ex: flutter test, npm test, etc.

Apresente o resumo:

## Resumo de impacto
- **Arquivos criados:** N
- **Arquivos editados:** N
- **Arquivos removidos:** N
- **Testes por task:** X pass / Y fail / Z sem teste
- **Suite completa:** PASS/FAIL/nao executada
- **Feature:** <nome> implementada

8. Capturar metricas finais — EXECUTE AGORA (obrigatorio)

bash ~/.claude/bin/capture-metrics.sh end implement "$PROJECT_NAME" "$PROJECT_PATH"

Atualize current.json: set tasks.current_task_id para null e status para "implemented".

9. Verificar phases pendentes

Verifique se ~/.claude/workflow/$PROJECT_NAME/phases.md existe.

Se existir:

  1. Marque a phase recem-concluida como [x]
  2. Verifique se ainda ha phases com [ ]:
    • Sim, ha phases pendentes: exiba o resumo e pergunte: "Phase N concluida! Phases restantes:

      • Phase N+1: <nome>

      Deseja verificar a implementacao? Execute /verify. Ou iniciar a proxima phase? Execute /specify."

    • Nao, todas concluidas: delete phases.md e informe que o projeto foi implementado por completo.

Se nao existir: avance automaticamente executando /verify.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.