Aulafy

Technical playbooks

Concrete recipes for getting the most out of Claude Code on serious team projects: code review, large refactors, testing, CI/CD, and standardization. Each one includes a ready-to-use prompt or command.

On this page

Large codebases

Use CLAUDE.md at the root and per module to provide context; /init to generate it; /compact in long sessions. Fine-tune more details in Configuration.

Generate initial repository context

Automated code review

Use /code-review and /security-review on the diff; in CI you can automate it with claude -p.

Review the local diff

Review from GitHub CLI

TerminalCode
gh pr diff 123 | claude -p "haz un code review y comenta problemas por gravedad"

Large-scale refactors and migrations

Combine Plan Mode to review before touching code with parallel subagents. Dig deeper in Pro workflows and Subagents.

Migration with prior planning

Testing and TDD

Ask for concrete tests and have Claude Code run them to close the loop with evidence.

Unit tests for a module

Working in TDD

CI/CD and headless mode

Use claude -p for scripts and --output-format json when you need to parse the output from another process.

Example in GitHub Actions

TerminalCode
- name: Claude review
  run: claude -p "revisa los cambios del PR y resume riesgos" --output-format json > review.json
  env:
    ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

Standardize the team

Version the .claude/ folder in the repo with settings, skills, and agents so the whole team shares configuration, permissions, and workflows. Package the common setup as an internal plugin. See Skills and Plugins.

Internal skill for before the PR

Integrations

Connect MCP to your database or observability stack; use hooks to format on save. Continue with MCP Servers and Hooks.

Query data via MCP