Back to blog
Tutorials

Integrating Claude Code into your daily development workflow

Bruno Bracaioli
Integrating Claude Code into your daily development workflow

The leap from "personal use" to "part of the pipeline"

Most developers discover Claude Code writing code over a weekend, get impressed, and come back to work on Monday using it as a fancy chat — open the terminal, paste an error, get a fix. Useful, but fleeting. The problem is that this mode doesn't scale: it doesn't persist across sessions, it doesn't share with the team, it doesn't integrate with the infrastructure that already exists.

The qualitative leap happens when Claude Code stops being "an assistant I call" and becomes "part of the workflow that already runs on its own". It's the difference between using a hammer and having a workshop set up. This article covers the three axes where that integration happens — git, hooks and MCP — and how to start without breaking what already works.

If you're still in "fancy chat" mode, go back to the definitive guide to Claude Code for the complete picture first. The rest of this article assumes you already master slash commands, skills and the CLI basics.

CLAUDE.md: the foundation that makes everything else possible

Before talking about integration, a confession: the single piece that most improves Claude Code output is not some exotic feature. It's the CLAUDE.md file at the root of the project.

Claude Code reads that file every time it opens a session in the directory. It's the canonical way to tell the agent things it can't infer from the code: commands to run/test/deploy, team conventions, product name, architectural decisions, what to avoid.

A good CLAUDE.md has four sections, in this order:

  1. Current status — what phase the project is in, what's alive, what's legacy.
  2. Commands — the exact commands the agent should use (npm run build, npm run deploy). Writing these here prevents it from inventing wrong ones.
  3. Architecture & Conventions — stack, folder structure, naming, coding patterns.
  4. Constraints — environment restrictions (e.g. "static export, no middleware", "Cloudflare free tier, no Workers").

Writing 100 lines of CLAUDE.md pays off on day one. Without it, the next integrations are built on sand — the agent will guess details and get them wrong. The highest discipline for personal ergonomics via slash commands and skills assumes an honest CLAUDE.md as the starting point.

Axis 1: Git

Git is the most immediate integration and the one that most impacts daily work. Claude Code already knows how to run git status, git diff, git log, git commit, git push and open PRs through gh. All you need is to give it clear conventions so it doesn't invent random messages.

A standard flow that works: a slash command /commit that reads the diff, analyzes the changes, picks the type (feat, fix, refactor, chore) and writes a 1-2 line message in conventional commits format. Another /pr that compares against the base branch, drafts title, description and test plan, and opens via gh pr create.

For your first time automating commits and PRs — including how to deal with pre-commit hooks, commit signing, and the difference between creating a new commit and using --amend — read Git + Claude Code: automating commits and PRs. It's the article that saves the most clicks per day in practice.

Axis 2: Hooks

Hooks are shell commands executed automatically by the harness at predefined moments: before/after every Edit, before Bash, at session start, when a subagent finishes, on prompt submission. They live in .claude/settings.json and run without intervention.

Three cases that pay off fast:

  • Format-on-edit. After any Edit or Write, run biome format <file> or prettier -w <file>. Code comes out already formatted; the agent doesn't waste tokens debating style.
  • Lint gate. After Edit, run npm run lint -- <file>. If it fails, the hook returns the error message to the agent, which tries to fix it on its own before you even see it.
  • Audit log. Record every Bash call into a .claude/audit.log file. Cheap to implement, valuable when something goes wrong and you need to reconstruct what happened.

Hooks are either project-level or user-level — in the project they travel with the repo and are shared; at user level they apply to every project. The full explanation of each available event, with ready-to-paste settings.json examples and permission pitfalls, is in Claude Code Hooks: event automation.

Axis 3: MCP servers

If hooks are internal automation, MCP servers are the door to the outside world. A Model Context Protocol server exposes tools over a standardized protocol — Claude Code connects and gains new actions without you writing any CLI code.

The cases that show up most:

  • Issue trackers — Linear, Jira, GitHub Issues. The agent reads and creates issues straight from the terminal.
  • Databases — a Postgres MCP lets the agent query real schemas before writing migrations. Kills 100% of "field does not exist" hallucinations.
  • Messaging — Slack, Telegram, Discord. You notify the team channel when a deploy ships, without leaving the conversation.
  • Calendar and docs — Google Calendar, Google Drive, Notion. Organizational context that doesn't live in the repo.

The critical point of MCP is authorization. Every MCP that connects to an external service is, by definition, a risk vector. Reading from Linear is safe; creating an issue in production is another level of authorization. The full trade-offs, how to pick trustworthy MCPs and how to restrict scopes, are in MCP Servers: connecting external tools to Claude Code.

The fourth axis: CI/CD

Everything shown so far assumes interactive use — you in the terminal, watching. Claude Code also runs in headless mode inside CI: a GitHub Actions workflow can fire an agent to review a PR, run tests, fix typos, generate release notes, all automatically, no human in the loop.

The rules change here. You can't rely on interactive approval — you need restricted --allowedTools, --permission-mode plan for risky tasks, and hooks that abort if anything goes off-script. Building that pipeline safely has specific pitfalls (secrets, rate limits, timeouts, per-run cost) that I covered in Claude Code in CI/CD pipelines.

How to start without blowing anything up

Order matters. People who try to wire everything at once break something and blame Claude Code. The safe progression:

  1. Write CLAUDE.md — 50-100 lines, real, versioned in the repo. Today.
  2. Create 2-3 slash commands — start with /commit and /review, use them for a week.
  3. Turn on 1 hook — just format-on-edit, the most harmless. If that works without oddness, you understood the mental model.
  4. Connect 1 MCP server — the one you use most outside the editor, read-only at first.
  5. Only then think about CI — when interactive use is already stable and you have mature team skills + hooks.

Next steps

This article closes the three main branches of the series — you already have the map of the seven pillars of Claude Code, you know how to customize your flow with slash commands and skills and you understand the integration model. The next step depends on your priority: if you want to save clicks today, start with the git axis. If you want automation that runs on its own, move to hooks. If the goal is to connect Claude Code to the rest of your toolchain, go to MCP servers. And when the whole team is adopting it, tie everything together in CI/CD pipelines.

Compartilhar:

Fique por dentro

Receba novos artigos sobre IA, desenvolvimento e tecnologia direto no seu email.