Skip to content

Workflows agênticos — Maestria8 / 8

Multi-Tool Pipelines — Ticket to Reviewed Branch

The payoff: chain MCP, hooks, commands and subagents into one flow that takes a ticket to a reviewed branch — with you in the loop only where it counts.

Multi-Tool Pipelines — Ticket to Reviewed Branch

Each building block is useful alone. Chained, they become a pipeline that takes a ticket from "assigned" to "reviewed branch" while you watch the decisions, not the keystrokes.

The flow

  1. Pull the work — an MCP server fetches the ticket (Linear, Jira, GitHub) so the agent has the real spec, not your paraphrase.
  2. Plan first — start in plan mode. The agent reads the codebase and proposes an approach. You approve or redirect — the one human gate that matters.
  3. Implement with guardrails — it edits code; a PostToolUse hook auto-formats every file; a PreToolUse hook blocks anything destructive.
  4. Review by a specialist — a code-reviewer subagent reads the diff in its own context and reports bugs, security issues, and missing tests.
  5. Ship — a /open-pr custom command writes the branch, commit, and PR body from the diff.

Wiring it as one command

Package the repeatable part as a slash command so the team runs the same pipeline:

---
description: Take a ticket to a reviewed branch
argument-hint: [ticket-id]
allowed-tools: Read, Edit, Bash(git *:*), mcp__linear__*
---
1. Fetch ticket $1 via the Linear MCP and summarize the spec.
2. Propose a plan and wait for approval.
3. Implement; rely on hooks for formatting and safety.
4. Invoke the code-reviewer subagent on the diff.
5. Open a PR with a summary of changes and the review findings.

Unattended runs

For CI or overnight batches, run headless: claude -p with --output-format json and a strict --allowedTools. The agent never blocks on a prompt — because you set the limits up front.

Compartilhar este artigo

#AgenticAI #Productivity #DevTools #MCP

LinkedInX / TwitterBlueskyThreadsRedditHacker NewsWhatsAppE-mail

Série — Workflows agênticos — Maestria

  1. Parte 01A Mentalidade do Fluxo de Trabalho AgenticA maioria dos desenvolvedores trata IA como um autocomplete mais inteligente. Os que saem na frente a tratam como um colega de trabalho que age. Aqui está o modelo mental.
  2. Parte 02MCP Servers 101 — Dê Ferramentas Reais ao Seu AgentO Model Context Protocol é como seu agent para de adivinhar e começa a consultar seu banco de dados, seus issues, seu navegador. Aqui está o modelo mental e a primeira conexão.
  3. Parte 03Build Your First Custom MCP ServerOff-the-shelf servers cover GitHub and Postgres. The high-leverage one is the server only you can write — the bridge to your own system.
  4. Parte 04Hooks — Make the Agent Obey Your RulesA prompt asks the model to remember. A hook makes it happen — deterministically, every time, outside the model's control.
  5. Parte 05Custom Slash Commands as Team WorkflowsA custom slash command is a reusable prompt you commit to the repo — so the whole team runs the same high-quality instruction instead of re-typing it.
  6. Parte 06Subagentes — Delegando Trabalho que EscalaUm contexto gigante fica lento e vago. Subagentes deixam o agente principal delegar trabalho focado para especialistas com seu próprio contexto e ferramentas — e executá-los em paralelo.
  7. Parte 07The Daily-Driver Setup — Settings, Permissions, Status LineA diferença entre lutar contra o agent e fluir com ele é vinte minutos de configuração que você faz uma vez. Aqui está o setup.
  8. Parte 08Multi-Tool Pipelines — Ticket to Reviewed Branchvocê está aquiThe payoff: chain MCP, hooks, commands and subagents into one flow that takes a ticket to a reviewed branch — with you in the loop only where it counts.

Continue aprendendo

PDF — vitalício

CLI e fluxos de trabalho

Conduza o Claude Code a partir da linha de comandos — interativo, headless, CI.

Ver o PDF →

Curso

O curso Claude Mastery

12 módulos · 5 idiomas · certificado · teste 3 dias grátis.

Ver planos →
LinkedInX / TwitterBlueskyThreads