$ recombobulate _
~/recombobulate $ user --show "bagwaa"
@bagwaa
bagwaa

@bagwaa

Richard Bagshaw

Member since Mar 2026

tips: 318 comments: 0 | upvotes: 22 downvotes: 0
~/recombobulate $ tip --list --author="bagwaa"

// 318 published tips

2
Use /add-dir to Expand Claude's File Access Beyond Your Working Directory

The /add-dir command lets you expand Claude's file access to additional directories mid-session — essential for monorepos and shared libraries.

bagwaa @bagwaa · 11 hours ago
1
Use CLAUDE.md to Set Project Context

A CLAUDE.md file at the root of your project gives Claude Code persistent context about your codebase.

bagwaa @bagwaa · 1 day ago
1
Use Plan Mode for Complex Tasks

Plan mode lets Claude research and design an approach before writing any code.

bagwaa @bagwaa · 3 days ago
1
Search Laravel Docs with the Laravel Boost MCP Server

Use the Laravel Boost MCP server to give Claude access to version-specific Laravel docs, your database schema, and read-only SQL queries — all without leaving the conversation.

bagwaa @bagwaa · 5 days ago
1
Keep Your Context Window Clean

Keep your context window focused and uncluttered — use subagents for research, .claudeignore to hide noise, and /clear when switching tasks.

bagwaa @bagwaa · 6 days ago
1
Write Tests First with TDD Workflow

Use Claude Code to write failing tests first, then implement the code to make them pass.

bagwaa @bagwaa · 1 week ago
1
Set Up Permissions to Avoid Constant Approvals

Configure permission rules so Claude can run common commands without asking every time — and keep guardrails on anything destructive.

bagwaa @bagwaa · 2 weeks ago
1
Use /compact to Summarise Long Conversations

Long sessions eat into your context window — /compact lets Claude summarise the conversation and continue with a lighter footprint.

bagwaa @bagwaa · 16 hours ago
1
Run /init to Bootstrap Your CLAUDE.md Automatically

Skip the blank page — /init scans your codebase and generates a tailored CLAUDE.md in seconds.

bagwaa @bagwaa · 16 hours ago
1
Toggle Plan Mode Instantly with Shift+Tab

No need to type /plan — Shift+Tab instantly toggles between plan mode and execution mode mid-conversation.

bagwaa @bagwaa · 16 hours ago
1
Scope MCP Servers Globally or Per-Project

Configure MCP servers at user scope for cross-project tools and project scope for repo-specific connections — both configs merge at runtime.

bagwaa @bagwaa · 15 hours ago
1
Optimise Slow SQL Queries by Pasting Them to Claude

Paste a sluggish query and Claude will explain what's wrong, suggest indexes, and rewrite it — no DBA required.

bagwaa @bagwaa · 15 hours ago
1
Ask Claude to Map Out an Unfamiliar Codebase

Jumping into an unfamiliar repo is painful — ask Claude to be your tour guide before you start making changes.

bagwaa @bagwaa · 14 hours ago
1
Add the Postgres MCP Server for Live Database Queries

The Postgres MCP server gives Claude read access to your real schema and data — so it writes SQL against your actual tables, not imaginary ones.

bagwaa @bagwaa · 14 hours ago
1
Use "ultrathink" to Unlock Maximum Reasoning

When a problem is genuinely hard, the word "ultrathink" pushes Claude to allocate its maximum reasoning budget before responding.

bagwaa @bagwaa · 14 hours ago
1
Maintain Your CHANGELOG.md with Claude

Stop updating CHANGELOG.md by hand — pipe your git log to Claude and get a properly formatted Keep a Changelog entry appended in seconds.

bagwaa @bagwaa · 14 hours ago
1
Ask Claude to Hunt Down Dead Code

Unused functions, unreferenced exports, and orphaned CSS classes accumulate silently — ask Claude to track them down before they become a maintenance burden.

bagwaa @bagwaa · 14 hours ago
1
Use Taskmaster to Break Down PRDs Before Writing Code

Feed your PRD into Taskmaster to get a structured task list before writing any code — then work through it with Claude one task at a time.

bagwaa @bagwaa · 12 hours ago
1
Auto-Update CLAUDE.md Every Time You Correct Claude

Ask Claude to add a rule to CLAUDE.md whenever you correct it, so the same mistake never happens twice.

bagwaa @bagwaa · 11 hours ago
1
Run Multiple Claude Code Sessions in Parallel

Open multiple terminal windows and run separate Claude Code sessions simultaneously to work on several tasks at once.

bagwaa @bagwaa · 11 hours ago
1
Play a Sound When Claude Finishes with a Stop Hook

Configure a Stop hook to play a system sound the moment Claude finishes, so you can step away without constantly checking the terminal.

bagwaa @bagwaa · 11 hours ago
1
Use git bisect with Claude to Track Down Regressions Fast

Ask Claude to write a git bisect test script, then paste the identified bad commit's diff for an instant explanation of what broke and why.

bagwaa @bagwaa · 11 hours ago
0
Run Shell Commands with the ! Prefix

Quickly execute shell commands without leaving your Claude Code conversation.

bagwaa @bagwaa · 2 days ago
0
Automate Repetitive Tasks with Hooks

Claude Code hooks let you run shell commands automatically before or after tool calls.

bagwaa @bagwaa · 4 days ago
0
Use Git Worktrees for Parallel Tasks

Claude Code agents can work in isolated git worktrees so they don't interfere with your current branch.

bagwaa @bagwaa · 1 week ago
0
Install Claude Code Globally via npm

Install Claude Code globally with npm, then run it from any project directory — the CLI is where the full power of piping, hooks, and scripting lives.

bagwaa @bagwaa · 1 week ago
0
Create Custom Slash Commands

Build reusable slash commands that trigger specific prompts or workflows.

bagwaa @bagwaa · 1 week ago
0
Debug Faster with Error Context

When hitting an error, paste the full stack trace — Claude Code can pinpoint the issue instantly.

bagwaa @bagwaa · 1 week ago
0
Build Up Claude's Memory Over Time with CLAUDE.md

Every time you correct Claude or agree on a preference, capture it in CLAUDE.md — it becomes the persistent memory that carries across every future session.

bagwaa @bagwaa · 1 week ago
0
Refactor with Confidence Using Agents

Let Claude Code agents explore your codebase before making sweeping changes.

bagwaa @bagwaa · 1 week ago
0
Pipe Commands to Claude for Quick Analysis

The -p flag turns Claude into a non-interactive shell tool — pipe in any command output and get an instant analysis without opening a session.

bagwaa @bagwaa · 2 weeks ago
0
Use Compact Test Output for Faster Feedback

Run Laravel/Pest tests with --compact for clean, scannable output that wastes less of Claude's context window — fewer lines means less noise when Claude is reading your test results.

bagwaa @bagwaa · 2 weeks ago
0
Paste Screenshots to Debug Visual Bugs

Drop a screenshot of a broken UI into Claude Code and get an instant diagnosis and fix.

bagwaa @bagwaa · 18 hours ago
0
Run Claude Code in CI/CD Pipelines

Use headless mode to automate code reviews, generate changelogs, and enforce standards in your CI pipeline.

bagwaa @bagwaa · 17 hours ago
0
Choose the Right Thinking Level for the Problem

Not every hard problem needs maximum reasoning — matching the thinking keyword to the task's actual complexity gets better results faster.

bagwaa @bagwaa · 17 hours ago
0
Use .claudeignore to Control What Claude Can See

A .claudeignore file lets you hide irrelevant files and directories from Claude Code, keeping it focused on what matters.

bagwaa @bagwaa · 17 hours ago
0
Commit Often to Create Rollback Points

Ask Claude Code to commit after each logical step so you always have a safe point to roll back to if things go sideways.

bagwaa @bagwaa · 16 hours ago
0
Use /clear to Wipe Context and Start Fresh

Sometimes you don't want a summary — you want a clean slate. /clear wipes the conversation history so you can start a new task without any baggage.

bagwaa @bagwaa · 16 hours ago
0
Use # to Add Memory Notes Mid-Conversation

Start any message with # to instantly save a note to Claude Code's persistent memory — without breaking your flow to run a separate command.

bagwaa @bagwaa · 16 hours ago
0
Use --resume to Pick Up Where You Left Off

Closed your terminal mid-task? The --resume flag reopens your last session with full context intact — no re-explaining needed.

bagwaa @bagwaa · 16 hours ago
0
Use Tab Completion to Reference Files in Prompts

Stop describing files vaguely — use tab completion and @ references to point Claude at exactly the right files.

bagwaa @bagwaa · 16 hours ago
0
Use /context to See What Claude Can Actually See

See exactly what files Claude has loaded, how much context they consume, and whether you're approaching the limit.

bagwaa @bagwaa · 16 hours ago
0
Spawn Subagents to Work on Multiple Things at Once

Let Claude spawn parallel subagents to tackle multiple tasks simultaneously — like having a team of junior devs on demand.

bagwaa @bagwaa · 16 hours ago
0
Switch Models Mid-Conversation with /model

Use /model to swap between Opus, Sonnet, and Haiku mid-conversation — match the model's power to the task's complexity.

bagwaa @bagwaa · 16 hours ago
0
Use --output-format for Structured JSON Responses

Force Claude to return structured JSON instead of conversational text — perfect for piping into scripts and automation.

bagwaa @bagwaa · 16 hours ago
0
Add MCP Servers to Give Claude Superpowers

Extend Claude Code with MCP servers to add database access, GitHub integration, web search, and more — right from the terminal.

bagwaa @bagwaa · 16 hours ago
0
Break Big Tasks into Focused Prompts

Don't dump an entire feature into one prompt — break it into focused steps for better results and easier review.

bagwaa @bagwaa · 16 hours ago
0
Nest CLAUDE.md Files for Monorepo Context

Stack CLAUDE.md files at different directory levels so each part of your monorepo gets the exact context it needs.

bagwaa @bagwaa · 16 hours ago
0
Ask Claude to Explain Code Before Editing It

One simple habit that prevents a lot of silent regressions: ask Claude to explain what the code does before touching it.

bagwaa @bagwaa · 16 hours ago
0
Use Claude for Pre-Commit Code Reviews

You don't need a teammate to catch issues before committing — pipe your diff to Claude for a fast, targeted review.

bagwaa @bagwaa · 16 hours ago
0
Restrict Tool Access with --allowedTools

Lock Claude down to a specific set of tools when running automated tasks — no file writes, no shell execution, just the tools you trust for that job.

bagwaa @bagwaa · 16 hours ago
0
Generate a README from Your Codebase in One Shot

Staring at a blank README? Claude Code can read your entire project and write one for you — complete with setup steps, usage examples, and architecture notes.

bagwaa @bagwaa · 16 hours ago
0
Use --verbose to Watch Every Tool Call Live

Not sure why Claude is doing what it's doing? --verbose streams every tool call in real time so you can see exactly how it's working through your request.

bagwaa @bagwaa · 16 hours ago
0
Assign Claude a Role for Better Specialised Output

Framing your prompt with a specific role sharpens the quality of Claude's output — it primes the model to weight the right kind of expertise.

bagwaa @bagwaa · 16 hours ago
0
Add Tests to Legacy Code Without Rewriting It

Got untested legacy code? Claude can write tests around the existing behaviour as-is — no refactoring required first.

bagwaa @bagwaa · 16 hours ago
0
Press Escape to Interrupt Claude Mid-Task

Claude's heading in the wrong direction and you can see it — don't wait for it to finish. Hit Escape to stop it immediately and redirect.

bagwaa @bagwaa · 16 hours ago
0
Launch Claude Code with a Specific Model Using --model

Set the model right from the command line when you launch Claude Code — useful for scripting, CI, and matching the model's power to the task at hand.

bagwaa @bagwaa · 16 hours ago
0
Set Global Defaults in ~/.claude/CLAUDE.md

A CLAUDE.md in your home directory sets preferences that apply to every project — no more re-explaining your coding style from scratch.

bagwaa @bagwaa · 15 hours ago
0
Run /doctor to Validate Your Claude Code Environment

The /doctor command validates your API key, model access, and tool availability in one shot — run it first when things go wrong.

bagwaa @bagwaa · 15 hours ago
0
Cap Autonomous Iterations with --max-turns

Use --max-turns to cap how many tool-use cycles Claude takes in non-interactive mode — prevents runaway automation in CI pipelines and scripts, and exits with a non-zero code when the limit is hit.

bagwaa @bagwaa · 15 hours ago
0
Set a Default Model with the ANTHROPIC_MODEL Env Var

The ANTHROPIC_MODEL environment variable sets your preferred model globally — no more passing --model on every command.

bagwaa @bagwaa · 15 hours ago
0
Add the GitHub MCP Server for Repository Automation

The GitHub MCP server gives Claude Code read/write access to your repos, issues, and PRs — all from the terminal.

bagwaa @bagwaa · 15 hours ago
0
Reference Multiple Files at Once with @ Mentions

Combine multiple @filename references in one prompt to give Claude precise, simultaneous context across related files — no describing, no guessing.

bagwaa @bagwaa · 15 hours ago
0
Use --append-system-prompt for Pipeline-Specific Rules

Append extra rules to Claude's system prompt per pipeline run without overriding your project's CLAUDE.md — perfect for CI guardrails.

bagwaa @bagwaa · 15 hours ago
0
Let Claude Write Your Conventional Commit Messages

Pipe your staged diff to Claude with -p to get a properly formatted conventional commit message back — add it as a shell alias for a one-keystroke workflow.

bagwaa @bagwaa · 15 hours ago
0
Use --output-format stream-json for Real-Time Processing

--output-format stream-json emits newline-delimited JSON events as Claude works — perfect for real-time processing, cost logging, and building tooling around Claude Code.

bagwaa @bagwaa · 15 hours ago
0
Generate GitHub Actions Workflows from a Description

Describe what you want your CI pipeline to do in plain English and let Claude write the full YAML — no more fumbling with Actions syntax.

bagwaa @bagwaa · 15 hours ago
0
Generate TypeScript Types from a JSON Payload

Paste raw API JSON and ask Claude to derive fully typed TypeScript interfaces — no more writing them by hand.

bagwaa @bagwaa · 15 hours ago
0
Connect the Brave Search MCP for Real-Time Web Research

Give Claude live access to the web by connecting the Brave Search MCP server — no more answers that stop at its training cutoff.

bagwaa @bagwaa · 15 hours ago
0
Write Dockerfiles from a Plain-English Stack Description

Tell Claude what your app runs on and it will write a production-ready Dockerfile complete with multi-stage builds and sensible defaults.

bagwaa @bagwaa · 15 hours ago
0
Ask Claude to Brainstorm Edge Cases for Your Tests

Once you've written the happy path, ask Claude to think of every edge case you probably haven't — then write the tests for them too.

bagwaa @bagwaa · 15 hours ago
0
Track Your Session Cost with /cost

The /cost command shows you exactly how many tokens and dollars the current session has used — run it any time you want a reality check.

bagwaa @bagwaa · 15 hours ago
0
Audit Your package.json for Outdated and Vulnerable Dependencies

Ask Claude to scan your package.json and flag dependencies worth updating, explaining why each one matters before you blindly run npm update.

bagwaa @bagwaa · 15 hours ago
0
Summarise Your Git Log for a Daily Standup

Pipe yesterday's git log to Claude and get a clean, human-readable summary of what you actually shipped — perfect for standups.

bagwaa @bagwaa · 15 hours ago
0
Generate Regex Patterns by Describing Them in Plain English

Stop wrestling with regex syntax — describe the pattern you need and Claude will write it, test it, and explain every part.

bagwaa @bagwaa · 15 hours ago
0
Use Claude to Document a Function as You Write It

Ask Claude to write JSDoc, PHPDoc, or docstrings for your functions as you go — consistent documentation without the context-switching.

bagwaa @bagwaa · 15 hours ago
0
Generate E2E Tests with Playwright or Cypress

Describe your user journeys in plain English and let Claude write the full E2E test suite — beats staring at Playwright docs for an hour.

bagwaa @bagwaa · 14 hours ago
0
Generate Realistic Seed Data for Local Development

Hand-crafting fake data for development is tedious — describe your models and let Claude write a realistic seeder in seconds.

bagwaa @bagwaa · 14 hours ago
0
Generate an OpenAPI Spec from Your Existing Routes

If your API predates your documentation, ask Claude to reverse-engineer a full OpenAPI spec from your route files.

bagwaa @bagwaa · 14 hours ago
0
Write Kubernetes Manifests from a Plain-English Description

Kubernetes YAML is verbose and unforgiving — describe what you need in plain English and let Claude write the manifests.

bagwaa @bagwaa · 14 hours ago
0
Modernise Legacy Code One File at a Time

Upgrading a codebase doesn't require a big-bang rewrite — ask Claude to modernise individual files while keeping the behaviour identical.

bagwaa @bagwaa · 14 hours ago
0
Generate Database Migration Files from a Schema Description

Describe the change you want in plain English and Claude will write the migration — foreign keys, indexes, enums, and all.

bagwaa @bagwaa · 13 hours ago
0
Visualise Your Codebase Architecture with Mermaid Diagrams

Ask Claude to read your code and produce a Mermaid diagram — render it instantly in GitHub, Notion, or any Markdown viewer.

bagwaa @bagwaa · 13 hours ago
0
Ask Claude to Diagnose CORS Errors

CORS errors are cryptic and inconsistent across browsers — paste your headers and config and let Claude pinpoint exactly what's wrong.

bagwaa @bagwaa · 13 hours ago
0
Build a Multi-Service Docker Compose Stack from a Description

Describe your full stack in plain English and Claude will write a production-ready docker-compose.yml with all services wired up correctly.

bagwaa @bagwaa · 13 hours ago
0
Generate Terraform Infrastructure from Plain-English Requirements

Describe your cloud infrastructure in plain English and let Claude write the Terraform — modules, variables, outputs, and all.

bagwaa @bagwaa · 13 hours ago
0
Pipe Log Files to Claude for Pattern Analysis

Feed your application logs to Claude via stdin and get an instant summary of errors, anomalies, and patterns worth investigating.

bagwaa @bagwaa · 13 hours ago
0
Auto-Generate Pull Request Descriptions from Your Git Diff

Pipe your staged diff to Claude and get a clear, detailed PR description in seconds — no more blank PR boxes or one-liners that say "fixes stuff".

bagwaa @bagwaa · 13 hours ago
0
Generate Personal Shell Aliases for Your Repetitive Commands

Tell Claude what commands you type repeatedly and it'll write a set of shell aliases tailored to your workflow — ready to drop straight into your shell config.

bagwaa @bagwaa · 13 hours ago
0
Convert Between Data Formats with a Single Prompt

Paste JSON, CSV, YAML, TOML, or XML and ask Claude to convert it — it handles nested structures, tricky edge cases, and format quirks automatically.

bagwaa @bagwaa · 13 hours ago
0
Ask Claude to Review Your API Design for Consistency

Paste your API routes or controller methods and ask Claude to audit them for naming inconsistencies, missing conventions, and design smells before they ship.

bagwaa @bagwaa · 13 hours ago
0
Generate a .gitignore Tailored to Your Tech Stack

Describe your tech stack and let Claude write a comprehensive .gitignore — no more accidental commits of build caches, editor files, or .env secrets.

bagwaa @bagwaa · 12 hours ago
0
Refactor Nested Conditionals into Guard Clauses

Paste deeply nested if/else blocks and ask Claude to refactor them into flat guard clauses — same behaviour, dramatically easier to read.

bagwaa @bagwaa · 12 hours ago
0
Audit Your Codebase for Hardcoded Secrets and Credentials

Pipe your git diff or config files to Claude to catch hardcoded API keys, passwords, and tokens before they ever reach your remote repository.

bagwaa @bagwaa · 12 hours ago
0
Generate ESLint and Prettier Configs from Your Preferences

Describe your coding preferences and let Claude write working ESLint and Prettier configs — no more config docs rabbit holes or mysterious rule conflicts.

bagwaa @bagwaa · 12 hours ago
0
Convert Callbacks and Promise Chains to async/await

Paste your nested .then() chains or callback-style code and ask Claude to rewrite it as clean async/await — it handles edge cases that naive refactors miss.

bagwaa @bagwaa · 12 hours ago
0
Generate a Load Testing Script from Your API Routes

Give Claude your API routes and it'll write a complete k6 or Artillery load testing script — thresholds, ramp-up stages, and realistic payloads included.

bagwaa @bagwaa · 12 hours ago
0
Generate a Postman Collection from Your Route Files

Ask Claude to read your route files and generate an importable Postman or Insomnia collection — complete with example payloads inferred from your validation rules.

bagwaa @bagwaa · 12 hours ago
0
Write Human-Friendly Release Announcements from Git Tags

Pipe your git log between two tags to Claude and get polished, user-facing release notes for GitHub Releases or a blog post — not just a list of commits.

bagwaa @bagwaa · 12 hours ago
0
Set Up lint-staged and Husky Pre-commit Hooks

Ask Claude to set up lint-staged and Husky for your project — it handles the config, hook files, install commands, and the edge cases you'd otherwise debug for an hour.

bagwaa @bagwaa · 12 hours ago
0
Generate a CONTRIBUTING.md for Your Project

Ask Claude to read your project structure and write a complete CONTRIBUTING.md — setup steps, branching conventions, test instructions, and PR process, all tailored to your actual stack.

bagwaa @bagwaa · 12 hours ago
0
Let Claude Fix Your Eloquent N+1 Query Problems

Paste your controllers or service methods and ask Claude to spot N+1 query problems and fix them with proper eager loading.

bagwaa @bagwaa · 12 hours ago
0
Generate Laravel Policies and Gates with Claude

Describe your authorisation rules in plain English and let Claude generate a complete Laravel Policy class, Gates, and the tests to cover them.

bagwaa @bagwaa · 12 hours ago
0
Generate Custom Artisan Commands with Claude

Describe what your Artisan command should do and let Claude generate the full class, scheduler registration, and Pest tests to go with it.

bagwaa @bagwaa · 12 hours ago
0
Run Multiple Claude Code Sessions Side by Side with tmux Panes

Split your terminal into panes with tmux and run a separate Claude Code session in each — monitor one while working in another, all in a single window.

bagwaa @bagwaa · 11 hours ago
0
Run Claude Code Inside Your IDE Terminal

Run Claude Code directly inside Cursor, VS Code, or any editor with an integrated terminal — keep your editor and AI session in a single window.

bagwaa @bagwaa · 11 hours ago
0
Generate Zod Validation Schemas Directly from TypeScript Interfaces

Paste your TypeScript interfaces and ask Claude to generate matching Zod schemas with sensible validators — not just bare type mappings.

bagwaa @bagwaa · 11 hours ago
0
Add Python Type Hints to Legacy Code with Claude

Paste untyped Python functions and ask Claude to add proper type annotations — it infers types from usage and replaces loose dicts with TypedDict or dataclasses.

bagwaa @bagwaa · 11 hours ago
0
Let Claude Audit and Fix Your React useEffect Dependency Arrays

Paste your React components and ask Claude to audit every useEffect dependency array — it catches stale closures and fixes the root cause, not just the lint warning.

bagwaa @bagwaa · 11 hours ago
0
Route Claude Code Through a Team Proxy with ANTHROPIC_BASE_URL

Set ANTHROPIC_BASE_URL to route Claude Code through a central gateway for cost tracking, usage limits, and compliance — no code changes required.

bagwaa @bagwaa · 11 hours ago
0
Generate Mock Service Worker Handlers for Frontend Tests

Paste your API routes and ask Claude to generate complete MSW 2.x handlers with realistic payloads and error variants — no more hand-crafting mocks.

bagwaa @bagwaa · 11 hours ago
0
Ask Claude to Generate Your .env.example from Application Source

Ask Claude to scan your codebase for all environment variable usages and generate a complete .env.example with placeholder values and inline comments.

bagwaa @bagwaa · 11 hours ago
0
Scaffold a GraphQL Schema and Resolver Stubs from a Plain-English Description

Describe your data model in plain English and let Claude generate a complete GraphQL SDL schema, resolver stubs, and DataLoader setup in one shot.

bagwaa @bagwaa · 11 hours ago
0
Ask Claude to Explain and Document Cryptic Regex Patterns

Paste any cryptic regex and ask Claude to explain it in plain English and rewrite it with verbose inline comments — so you understand it when you need to change it.

bagwaa @bagwaa · 11 hours ago
0
Generate i18n Translation Files from Your Codebase

Scan your source files for hardcoded strings and let Claude generate complete locale files — keys, structure, and all.

bagwaa @bagwaa · 10 hours ago
0
Ask Claude to Audit Your Frontend for Accessibility Issues

Paste your components and Claude will flag WCAG violations, missing ARIA attributes, and keyboard navigation issues — then fix them.

bagwaa @bagwaa · 10 hours ago
0
Generate GitHub Issue and PR Templates for Your Project

Let Claude write your .github templates so contributors always provide the context reviewers actually need.

bagwaa @bagwaa · 10 hours ago
0
Ask Claude to Design a Redis Caching Strategy for Your App

Describe your data access patterns and let Claude decide what to cache, for how long, and how to invalidate it properly.

bagwaa @bagwaa · 10 hours ago
0
Generate Storybook Stories from Your Existing Components

Paste your components and Claude will write a complete stories file — variants, edge cases, and interactive controls included.

bagwaa @bagwaa · 10 hours ago
0
Let Claude Convert Vanilla CSS to Tailwind Utility Classes

Migrating to Tailwind doesn't have to be tedious — paste your CSS and Claude converts it to utility classes and updates your markup.

bagwaa @bagwaa · 10 hours ago
0
Add a "Bad Patterns" Section to CLAUDE.md

Add a "bad patterns" section to CLAUDE.md with concrete examples of code you never want to see -- Claude absorbs your no-go list before writing a single line.

bagwaa @bagwaa · 10 hours ago
0
Use Claude to Write Architecture Decision Records

ADRs document why you made a technical choice. Claude can write them after you explain the trade-offs — keeping your decision history intact.

bagwaa @bagwaa · 10 hours ago
0
Use Claude to Fix TypeScript Strict Mode Violations

Enabling strict: true on an existing codebase unleashes hundreds of errors — pipe them to Claude in batches and work through them fast.

bagwaa @bagwaa · 10 hours ago
0
Let Claude Code Configure Your Terminal in Seconds

Instead of reading docs and editing config files manually, ask Claude Code to configure your entire shell, plugins, and prompt in one go.

bagwaa @bagwaa · 10 hours ago
0
Compact Your Context at 60%, Not 95%

Don't wait until your context window is nearly full -- run /compact at around 60% while Claude still has full visibility over the session.

bagwaa @bagwaa · 10 hours ago
0
Ask Claude to Analyse and Reduce Your JavaScript Bundle Size

Paste your bundle analysis output and Claude will identify the biggest wins — duplicate dependencies, oversized imports, and code-splitting opportunities.

bagwaa @bagwaa · 10 hours ago
0
Use Claude to Write Centralised API Error Handling Middleware

Inconsistent API error shapes are a frontend developer's nightmare — describe your error contract and let Claude write middleware that enforces it everywhere.

bagwaa @bagwaa · 10 hours ago
0
Skip the Bypass Permissions Confirmation Prompt

Add skipDangerousModePermissionPrompt: true to your settings.json to stop Claude Code asking "are you sure?" at the start of every bypass-mode session.

bagwaa @bagwaa · 9 hours ago
0
Set Your Editor to Autosave So Claude Sees Your Changes Instantly

Configure your editor to autosave every 500ms so Claude Code picks up your edits from the filesystem almost in real time.

bagwaa @bagwaa · 9 hours ago
0
Use plan.md to Coordinate Work Across Parallel Claude Sessions

When running multiple Claude sessions in parallel, a shared plan.md acts as the source of truth — each agent reads it to understand what's in progress, what's done, and what to pick up next.

bagwaa @bagwaa · 9 hours ago
0
Migrate Vue Options API Components to Composition API with Claude

Paste your Options API component and ask Claude to rewrite it with script setup syntax — it handles emits, watchers, lifecycle hooks, and composable extraction automatically.

bagwaa @bagwaa · 9 hours ago
0
Ask Claude to Wire Up Sentry Error Tracking in Your Project

Tell Claude your stack and what you need from Sentry — user context, environment filtering, source maps, release tracking — and it wires up the full integration rather than just the hello-world snippet from the docs.

bagwaa @bagwaa · 9 hours ago
0
Use the Filesystem MCP Server for Direct File and Directory Access

The Filesystem MCP server gives Claude read/write access to whole directories, unlocking bulk file operations, cross-project searches, and codebase-wide audits without copying content into the chat.

bagwaa @bagwaa · 9 hours ago
0
Convert Your Jest Test Suite to Vitest with Claude

Ask Claude to plan the full Jest-to-Vitest migration — it converts mocks, fakes, and spies, updates configs, and flags anything that needs manual attention before you touch a single test file.

bagwaa @bagwaa · 9 hours ago
0
Generate a Project Makefile for All Your Common Commands

Describe your project and the commands you run constantly — Claude will write a complete Makefile with phony targets, a help command, and coloured output that makes your workflow self-documenting.

bagwaa @bagwaa · 9 hours ago
0
Let Claude Implement the Repository Pattern in Your Codebase

Show Claude a controller with scattered Eloquent calls and ask it to extract a repository — it generates the interface, implementation, service provider binding, and test fake in one shot.

bagwaa @bagwaa · 9 hours ago
0
Write Python Click CLI Tools with Claude

Describe your CLI's commands, flags, and validation rules and Claude will write a complete Click application — argument types, help text, error handling, and a pyproject.toml entry to install it as a real command.

bagwaa @bagwaa · 9 hours ago
0
Let Claude Generate Your Dependabot Configuration

Tell Claude your project layout and preferences — grouping strategy, schedules, PR limits, assignees — and it'll write a Dependabot config that keeps your dependencies fresh without drowning you in PRs.

bagwaa @bagwaa · 9 hours ago
0
Ask Claude to Diagnose and Fix Your Core Web Vitals

Paste your PageSpeed Insights or DevTools data and ask Claude to identify the root causes of poor LCP, CLS, and INP scores — it traces each metric back to specific code and writes the fixes.

bagwaa @bagwaa · 9 hours ago
0
Generate Custom Laravel Middleware with Claude

Describe your cross-cutting concern — rate limiting, API versioning, request logging, auth checks — and Claude generates the full middleware class, registers it in the correct group, and writes Pest tests to cover it.

bagwaa @bagwaa · 9 hours ago
0
Dictate Prompts into Claude Code with a Voice Input App

Use voice dictation tools like Monologue or WhisperFlow to speak prompts directly into your Claude Code terminal — Claude handles imperfect transcription better than any traditional dictation app.

bagwaa @bagwaa · 8 hours ago
0
Paste Screenshots into Claude Code in Ghostty Using Ctrl+V

In Ghostty, use Ctrl+Shift+Cmd+4 to copy a screen region to clipboard, then Ctrl+V (not Cmd+V) to paste it directly into Claude Code.

bagwaa @bagwaa · 8 hours ago
0
Use mosh Instead of SSH to Keep Remote Claude Code Connections Alive

mosh (mobile shell) keeps your SSH connection to a remote Claude Code server alive through network switches, laptop sleep, and wifi drops — where regular SSH would silently die.

bagwaa @bagwaa · 8 hours ago
0
Generate Laravel Queued Jobs and Workers with Claude

Describe your async processing requirements and let Claude write the complete queued job class, retry logic, event dispatching, and Pest tests — without the boilerplate grind.

bagwaa @bagwaa · 8 hours ago
0
Ask Claude to Design a Feature Flag System for Your App

Describe your stack and requirements and let Claude scaffold a complete feature flag system — database-backed toggles, per-user overrides, a Blade directive, and a Vue composable — without reaching for a paid service.

bagwaa @bagwaa · 8 hours ago
0
Generate Webhook Handlers with Signature Verification

Ask Claude to write a complete webhook handler — signature verification, idempotency checks, and per-event-type routing — so security is baked in from the start rather than bolted on later.

bagwaa @bagwaa · 8 hours ago
0
Extract Pinia Stores from Bloated Vue Components

Paste a Vue component packed with inline data-fetching logic and ask Claude to extract it into a typed Pinia store — it handles the refactor, updates the component, and writes the Vitest tests.

bagwaa @bagwaa · 8 hours ago
0
Ask Claude to Write Nginx or Caddy Server Configs

Describe your stack and hosting setup and let Claude write a production-ready Nginx or Caddy config — rate limiting, cache headers, SPA routing, and proxy settings all handled correctly.

bagwaa @bagwaa · 8 hours ago
0
Let Claude Recommend the Right Database Indexes for Your Queries

Paste your real query patterns and ask Claude to recommend the right database indexes — composite vs single-column, correct column order, write performance trade-offs, and ready-to-run migrations.

bagwaa @bagwaa · 8 hours ago
0
Use Claude to Set Up Your Vite Build Configuration

Describe your stack and build requirements and let Claude write a proper vite.config.ts — path aliases, dev proxies, chunk splitting, source maps, and tree-shaking all configured correctly.

bagwaa @bagwaa · 8 hours ago
0
Generate Streaming CSV and Excel Data Exports with Claude

Ask Claude to write streaming CSV and Excel exports that use LazyCollection to handle large datasets without memory spikes — plus queued exports and email delivery for very large result sets.

bagwaa @bagwaa · 8 hours ago
0
Create GitHub Reusable Workflows to Share CI Logic Across Repos

Ask Claude to write a GitHub reusable workflow for your shared CI steps — lint, static analysis, tests, caching, and coverage — so every repo calls one central definition instead of duplicating YAML.

bagwaa @bagwaa · 8 hours ago
0
Scaffold a Secure OAuth 2.0 Login Flow with Claude

Describe your OAuth providers and requirements and let Claude scaffold the full login flow — PKCE, state verification, account linking, token issuance, and Pest tests — with the security pitfalls handled correctly.

bagwaa @bagwaa · 8 hours ago
0
Chain Commands with && to Keep Claude's Work Atomic

Chain multi-step operations with && so Claude's sequence halts immediately on failure — no more half-applied refactors or committed broken code.

bagwaa @bagwaa · 7 hours ago
0
Paste a Design Mockup into Claude Code to Build UI from a Visual Spec

Show Claude Code a Figma export, a hand-drawn wireframe, or a screenshot of a reference design and ask it to build the component — no describing layouts in words required.

bagwaa @bagwaa · 7 hours ago
0
Use tmux to Keep Claude Code Sessions Alive Through Dropped Connections

Wrapping Claude Code in a tmux session on a remote machine means your session survives connection drops, airplane wifi, and closed laptops.

bagwaa @bagwaa · 7 hours ago
0
Use a plan.md File as a Checkpoint That Survives Context Resets

Writing a plan.md before Claude starts building gives you a persistent checkpoint you can hand to a fresh session to continue exactly where you left off.

bagwaa @bagwaa · 7 hours ago
0
Use Claude to Write Pest PHP Tests

Describe a feature in plain English and let Claude generate expressive Pest tests that read like documentation.

bagwaa @bagwaa · 7 hours ago
0
Generate Inertia.js Page Components with Claude

Tell Claude about your backend route and data shape, and get a fully wired Inertia page component back in seconds.

bagwaa @bagwaa · 7 hours ago
0
Ask Claude to Add Rate Limiting to Your API

Paste your routes file and ask Claude to add sensible rate limiting rules tailored to each endpoint's risk profile.

bagwaa @bagwaa · 7 hours ago
0
Connect the Slack MCP Server for Team Notifications

Add the Slack MCP server to let Claude post deployment updates, incident alerts, or standup summaries directly to your channels.

bagwaa @bagwaa · 7 hours ago
0
Use Claude to Write Alpine.js Components

Describe the interactive behaviour you want and let Claude generate a clean Alpine.js component with the right x-data, x-bind, and x-on directives.

bagwaa @bagwaa · 7 hours ago
0
Refactor Legacy PHP to Modern PHP 8 Features

Paste old PHP 7 code and ask Claude to modernise it with enums, named arguments, match expressions, and constructor property promotion.

bagwaa @bagwaa · 7 hours ago
0
Generate Livewire Components from a Feature Description

Describe a UI feature in plain English and get a fully wired Livewire component — properties, actions, validation, and Blade template included.

bagwaa @bagwaa · 7 hours ago
0
Use Claude to Write Go HTTP Handlers

Describe your API endpoint and let Claude generate idiomatic Go handlers with proper error handling, middleware, and JSON responses.

bagwaa @bagwaa · 7 hours ago
0
Ask Claude to Scaffold a Nuxt 3 Module

Describe the functionality you want to share across Nuxt apps and let Claude generate a properly structured Nuxt 3 module with composables, plugins, and auto-imports.

bagwaa @bagwaa · 7 hours ago
0
Ask Claude to Implement an Event Sourcing Pattern

Describe your domain and let Claude design an event sourcing implementation with event classes, a store interface, and aggregate reconstruction logic.

bagwaa @bagwaa · 7 hours ago
0
Ask Claude to Scaffold a SvelteKit App

Use Claude to generate a full SvelteKit project structure with routes, layouts, and server-side data loading patterns — ready to run from day one.

bagwaa @bagwaa · 6 hours ago
0
Generate Ruby on Rails Models and Migrations with Claude

Describe your data model in plain English and get back ActiveRecord models, associations, validations, and migration files ready to run.

bagwaa @bagwaa · 6 hours ago
0
Let Claude Fix Rust Ownership and Borrow Checker Errors

Paste your Rust compiler errors into Claude and get a clear explanation of the ownership issue plus a corrected version of your code.

bagwaa @bagwaa · 6 hours ago
0
Ask Claude to Generate Next.js Server Actions and Route Handlers

Describe your backend logic and let Claude scaffold Next.js Server Actions or Route Handlers with TypeScript types, Zod validation, and proper error handling.

bagwaa @bagwaa · 6 hours ago
0
Let Claude Write Your Symfony Console Commands

Describe the job your Symfony command should do and get back a fully wired console command with argument definitions, progress bars, and styled output.

bagwaa @bagwaa · 6 hours ago
0
Enable Auto Mode for Fewer Interruptions

Auto mode lets Claude judge which actions are safe to run on your behalf, so long sessions complete without constant approval prompts.

bagwaa @bagwaa · 6 hours ago
0
Use Claude to Design and Write a Prisma Schema

Describe your data model in plain English and let Claude generate a complete Prisma schema with relations, indexes, and enums — ready to migrate.

bagwaa @bagwaa · 6 hours ago
0
Set Up Claude Code Review to Automatically Review Pull Requests

Claude Code Review installs as a GitHub App and dispatches a team of AI agents on every PR to catch bugs with inline comments before they hit your codebase.

bagwaa @bagwaa · 6 hours ago
0
Ask Claude to Audit Your HTTP Security Headers

Share your server config or middleware code and ask Claude to identify missing or misconfigured security headers and provide drop-in fixes.

bagwaa @bagwaa · 6 hours ago
0
Approve Claude's Prompts from Your Phone with Permission Relay

The --channels flag lets MCP channel servers forward Claude's permission prompts to your phone, so long-running sessions don't stall while you're away from the keyboard.

bagwaa @bagwaa · 6 hours ago
0
Generate Filament Resources from Your Eloquent Models

Paste your Eloquent model into Claude and get back a complete Filament v3 resource with form fields, table columns, filters, and a RelationManager stub.

bagwaa @bagwaa · 6 hours ago
0
Ask Claude to Migrate Your Webpack Config to Vite

Paste your webpack.config.js into Claude and get a working vite.config.ts back, with notes on any plugins, aliases, or environment variable handling that needs updating.

bagwaa @bagwaa · 6 hours ago
0
Use Claude to Generate React Testing Library Tests

Paste a React component and ask Claude to write comprehensive RTL tests covering rendering, user interactions, and async behaviour — following RTL best practices.

bagwaa @bagwaa · 6 hours ago
0
Add a "Decisions" Section to CLAUDE.md to Prevent Repeated Debates

Once you've settled an architectural debate with Claude, write the decision into CLAUDE.md — or it will suggest the same alternatives again next session.

bagwaa @bagwaa · 5 hours ago
0
Structure Complex Prompts Faster by Speaking Them Aloud

Long multi-step prompts with lots of context are harder to type than to speak — your brain can narrate relationships and constraints faster than your fingers can type them.

bagwaa @bagwaa · 5 hours ago
0
Use plan.md Files for Writing Tasks, Not Just Code

Claude Code's full codebase context makes it a powerful writing partner for strategy docs, product specs, and meeting notes -- the plans it produces reference your actual technical constraints, not generic boilerplate.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Generate a Changelog Entry from Your Git Diff

Pipe your git diff directly to Claude and get a properly formatted Keep a Changelog entry — Added, Changed, Fixed, and all.

bagwaa @bagwaa · 5 hours ago
0
Use Claude to Implement Cursor-Based Pagination

Offset pagination breaks at scale. Cursor-based pagination is the right approach — and Claude can implement it in any framework from a plain-English description.

bagwaa @bagwaa · 5 hours ago
0
Use Claude to Write SQL Views and Stored Procedures

Stop hand-crafting complex SQL — describe the logic you need and let Claude write the view or stored procedure, complete with a migration file.

bagwaa @bagwaa · 5 hours ago
0
Use Claude to Generate PHP 8.1 Enum Classes

PHP 8.1 backed enums are cleaner than constants — but scaffolding them with helpers, labels, and Eloquent casts is boilerplate Claude can write instantly.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Set Up Structured JSON Logging

Printf debugging doesn't belong in production. Claude can wire up structured JSON logging with request context, log levels, and external service routing in minutes.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Scaffold a pnpm Workspace Monorepo

pnpm workspaces are powerful but the initial config always involves fiddling with workspace files and tsconfig paths. Just describe your packages and let Claude generate the whole structure.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Write Your WebSocket Event Handlers

Real-time features feel complex but Claude can wire up WebSocket connections, rooms, and broadcast events for your stack faster than reading the docs.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Write a Custom ESLint Rule

Can't find an ESLint rule that enforces your team's specific convention? Describe the bad pattern in plain English and Claude will write the rule and the tests.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Write CSS Keyframe Animations

CSS animations are expressive but syntax-heavy. Describe the motion you want — fade, slide, bounce, shimmer — and Claude handles the keyframes, timing functions, and accessibility considerations.

bagwaa @bagwaa · 5 hours ago
0
Ask Claude to Audit Your Project for Unused Dependencies

Packages accumulate over time and slow down installs. Claude can analyse your dependency list against your source files and flag the ones that are likely dead weight.

bagwaa @bagwaa · 5 hours ago
0
Run Claude Code Non-Interactively with --print

Use the --print flag to send a single prompt to Claude and pipe the response straight to stdout — perfect for scripts and CI pipelines.

bagwaa @bagwaa · 4 hours ago
0
Use the /mcp Command to Inspect Your MCP Servers

When an MCP server misbehaves, /mcp gives you a live view of every connected server, its status, and the tools it's exposing — right inside your session.

bagwaa @bagwaa · 4 hours ago
0
Generate PHPDoc and JSDoc Comments Across Your Codebase

Undocumented code is technical debt waiting to bite you. Ask Claude to bulk-generate accurate docblocks for your entire codebase in one sweep.

bagwaa @bagwaa · 4 hours ago
0
Pass Multiline Prompts to Claude Code with Shell HEREDOCs

Complex prompts are unreadable as escaped single-liners. Use shell HEREDOCs to write clean, structured prompts directly in your scripts.

bagwaa @bagwaa · 4 hours ago
0
Set acceptEdits Mode to Skip File-Write Prompts

acceptEdits mode auto-approves all file writes and edits while still asking you to confirm bash commands — the sweet spot between default mode and full auto.

bagwaa @bagwaa · 4 hours ago
0
Generate a Typed API Client from an OpenAPI Spec

Stop writing API clients by hand. If you have an OpenAPI or Swagger spec, Claude can generate a fully-typed client that matches your codebase conventions in minutes.

bagwaa @bagwaa · 4 hours ago
0
Use the FileChanged Hook to Reload Environment Variables Automatically

Attach a FileChanged hook to your .envrc or .env file so Claude Code automatically reloads your environment variables the moment it edits them.

bagwaa @bagwaa · 4 hours ago
0
Ask Claude to Add Retry Logic with Exponential Backoff

External API calls fail. Retry logic with exponential backoff is boilerplate most developers put off — hand it to Claude instead and get it done properly.

bagwaa @bagwaa · 4 hours ago
0
Add OpenTelemetry Tracing to Your App with Claude

Distributed tracing turns mysterious slowdowns into pinpointed bottlenecks. Ask Claude to wire up OpenTelemetry across your application without digging through the docs.

bagwaa @bagwaa · 4 hours ago
0
Use Claude to Write Ansible Playbooks

Writing Ansible YAML by hand is repetitive and easy to get wrong. Describe your infrastructure requirements in plain English and let Claude generate the playbook.

bagwaa @bagwaa · 4 hours ago
0
Scaffold a Turborepo Monorepo with Claude

Setting up Turborepo from scratch means juggling workspaces, pipeline configs, and shared packages. Claude can scaffold the whole thing in one prompt.

bagwaa @bagwaa · 4 hours ago
0
Use Claude to Audit and Fix Your Database Transaction Boundaries

Forgetting to wrap related database writes in a transaction is a classic source of data corruption. Ask Claude to audit your codebase and fix the boundaries.

bagwaa @bagwaa · 4 hours ago
0
Install Laravel Best Practices as a Boost Skill for Idiomatic Code

Install the laravel-best-practices Boost skill to equip your AI agent with 100+ curated Laravel conventions, so it generates idiomatic code by default.

bagwaa @bagwaa · 4 hours ago
0
Use Claude Code Exit Codes to Handle Failures in Shell Scripts

Claude Code exits 0 on success and non-zero on failure — use standard shell patterns like &&, ||, and $? to build reliable automation that handles errors gracefully.

bagwaa @bagwaa · 3 hours ago
0
Paste Screenshots into Claude Code in iTerm2

In iTerm2, paste clipboard images into Claude Code with Cmd+V — first capture a screenshot to your clipboard with Ctrl+Shift+Cmd+4 instead of the default Cmd+Shift+4.

bagwaa @bagwaa · 3 hours ago
0
Use Claude to Implement the Circuit Breaker Pattern

Prevent cascading failures in distributed systems by asking Claude to wire up a circuit breaker — describe the thresholds and it handles the state machine.

bagwaa @bagwaa · 3 hours ago
0
Ask Claude to Scaffold Production-Ready Health Check Endpoints

Every production app needs a health check endpoint for load balancers and container orchestrators — Claude scaffolds a robust one in seconds.

bagwaa @bagwaa · 3 hours ago
0
Let Claude Add Soft Deletes to Your Data Models

Soft deletes let you recover accidentally deleted records and maintain audit trails — Claude handles the migration, model changes, and query scoping in one shot.

bagwaa @bagwaa · 3 hours ago
0
Generate ER Diagrams from Your Database Migrations

Ask Claude to read your migrations and output a Mermaid ER diagram — it renders natively in GitHub, Notion, and most wikis with zero extra tooling.

bagwaa @bagwaa · 3 hours ago
0
Ask Claude to Add Idempotency Keys to Your API

Idempotency keys prevent duplicate charges and double-submitted orders when clients retry failed requests — Claude scaffolds the middleware in one prompt.

bagwaa @bagwaa · 3 hours ago
0
Write BDD Feature Files with Claude

BDD Gherkin feature files document expected behaviour in plain English and drive your test suite — Claude writes them from a user story in seconds.

bagwaa @bagwaa · 3 hours ago
0
Resume Sessions by Name with --resume

The --resume flag lets you pick up any past session by name or UUID, so you can defer work and return to it days later without re-explaining context.

bagwaa @bagwaa · 3 hours ago
0
Track Claude Code Costs and Duration in Automated Runs

Claude Code's JSON output includes cost_usd and duration_ms metadata — pipe it through jq to log spending per run and catch runaway automation before it gets expensive.

bagwaa @bagwaa · 3 hours ago
0
Ask Claude to Generate API Versioning Middleware

API versioning keeps old clients working while you evolve your interface — Claude scaffolds the routing structure and deprecation headers in one prompt.

bagwaa @bagwaa · 3 hours ago
0
Ask Claude to Audit Your Dockerfile for Size and Security

Bloated Docker images slow CI, increase attack surface, and cost money — paste your Dockerfile and ask Claude to audit it for quick wins.

bagwaa @bagwaa · 3 hours ago
0
Connect Claude Code to Amazon Bedrock or Google Cloud Vertex AI

Point Claude Code at your existing cloud provider using CLAUDE_CODE_USE_BEDROCK or CLAUDE_CODE_USE_VERTEX — no direct Anthropic API key required, and all traffic stays within your cloud security boundary.

bagwaa @bagwaa · 3 hours ago
0
Add Custom Rules Without Breaking the Default Prompt with --append-system-prompt

The --append-system-prompt flag adds your custom rules to the end of Claude's default system prompt without replacing it, giving you extra control without losing built-in capabilities.

bagwaa @bagwaa · 3 hours ago
0
Use Claude to Write Integration Tests for Your Service Layer

Integration tests cover the seams between your code and real dependencies — they're the tests that actually catch production bugs, and Claude writes them fast.

bagwaa @bagwaa · 3 hours ago
0
Ask Claude to Extract Logic from a Fat Controller

Fat controllers are where good architecture goes to die — paste yours into Claude and ask it to extract the business logic into a proper service layer.

bagwaa @bagwaa · 3 hours ago
0
Set a Persistent Default Model and Lock Available Models in settings.json

Set your preferred model once in settings.json rather than passing --model on every command — and use availableModels to restrict model choice for teams and cost control.

bagwaa @bagwaa · 3 hours ago
0
Speed Up CI Scripts with --bare Mode

The --bare flag skips CLAUDE.md, hooks, skills, plugins, and MCP servers at startup, giving you a minimal, fast Claude Code invocation ideal for CI pipelines and scripted tasks.

bagwaa @bagwaa · 3 hours ago
0
Set Environment Variables for Every Session with env in settings.json

The env key in settings.json injects environment variables into every Claude Code session, so you can set NODE_ENV, database URLs, or telemetry config without touching your shell profile.

bagwaa @bagwaa · 3 hours ago
0
Block Dangerous Commands Before They Run with PreToolUse Hooks

The PreToolUse hook fires before every tool call and supports blocking via exit code 2, letting you write custom scripts that intercept dangerous commands before Claude executes them.

bagwaa @bagwaa · 3 hours ago
0
Debug API and MCP Issues with --debug

The --debug flag enables verbose logging for Claude Code, and an optional category filter like "api,mcp" lets you narrow output to exactly the subsystem you need to investigate.

bagwaa @bagwaa · 3 hours ago
0
Set a Spending Cap for Automated Runs with --max-budget-usd

The --max-budget-usd flag sets a hard spending limit on print-mode runs, stopping Claude Code when the cap is hit so automated workflows never go over budget unexpectedly.

bagwaa @bagwaa · 3 hours ago
0
Set ANTHROPIC_SMALL_FAST_MODEL to Control Background Task Performance

Claude Code uses a small, fast model for background operations like title generation and memory summarisation. You can override which model it uses with an environment variable.

bagwaa @bagwaa · 2 hours ago
0
Use Max Effort for Architectural Decisions

Reserve Claude Code's max effort level for architectural and complex decisions where deeper reasoning pays off, and stick to default for everyday tasks to keep token usage in check.

bagwaa @bagwaa · 2 hours ago
0
Use Skills to Teach Claude Reusable Project Workflows

Turn repetitive instructions into reusable skills that persist across sessions and keep Claude consistent without manual reminders.

bagwaa @bagwaa · 2 hours ago
0
Ask Claude to Generate Responsive HTML Email Templates

Let Claude generate battle-tested HTML email templates with inline styles, table layouts, and Outlook-compatible markup that renders correctly everywhere.

bagwaa @bagwaa · 2 hours ago
0
Build a Node.js CLI Tool with Commander.js Using Claude

Scaffold a full Node.js CLI tool with Commander.js, including subcommands, flags, interactive prompts, and coloured output — all from a single prompt.

bagwaa @bagwaa · 2 hours ago
0
Ask Claude to Write Custom PHPStan Rules for Your Codebase

Let Claude write custom PHPStan and Larastan rules that enforce your team's conventions, complete with AST visitor logic and config registration.

bagwaa @bagwaa · 2 hours ago
0
Let Claude Implement Multi-Tenancy in Your Laravel App

Scaffold single-database or database-per-tenant multi-tenancy in Laravel with global scopes, middleware, queue context, and tenant-aware caching.

bagwaa @bagwaa · 2 hours ago
0
Generate SEO Meta Tags and OpenGraph Markup from Your Routes

Generate complete SEO meta tags, OpenGraph properties, and Twitter Card markup for all your pages using a reusable helper Claude builds from your routes.

bagwaa @bagwaa · 2 hours ago
0
Convert React Class Components to Functional Hooks with Claude

Migrate React class components to functional components with hooks — Claude handles lifecycle methods, state, refs, and HoC replacements automatically.

bagwaa @bagwaa · 2 hours ago
0
Use Claude to Generate Typed Data Transfer Objects for Your API

Generate typed, immutable Data Transfer Objects with validation and factory methods for your API endpoints in PHP or TypeScript.

bagwaa @bagwaa · 2 hours ago
0
Set Up Background Job Processing with BullMQ Using Claude

Scaffold a complete BullMQ setup with typed job queues, retry logic, rate limiting, scheduled jobs, and a monitoring dashboard in one prompt.

bagwaa @bagwaa · 2 hours ago
0
Generate a Browser Extension Boilerplate with Claude

Scaffold a complete Chrome extension with Manifest V3, TypeScript, Vite bundling, content scripts, and background workers from a single prompt.

bagwaa @bagwaa · 2 hours ago
0
Manage Claude Code Settings with the Config CLI

Instead of hand-editing settings.json, use `claude config` to get, set, list, and delete configuration values from the command line.

bagwaa @bagwaa · 2 hours ago
0
Control Reasoning Depth with the --effort Flag

Use --effort to set reasoning depth per session, from quick low-effort tasks to maximum reasoning on complex problems.

bagwaa @bagwaa · 2 hours ago
0
Use --dangerously-skip-permissions for Fully Unattended CI

In CI environments where no human is present to approve tool calls, --dangerously-skip-permissions lets Claude Code run without any permission prompts — use it only in sandboxed, throwaway environments.

bagwaa @bagwaa · 2 hours ago
0
Rename Sessions Mid-Conversation with /rename

Use /rename to give any session a meaningful name mid-conversation — it updates the terminal title immediately and makes the session easy to find in the resume picker later.

bagwaa @bagwaa · 2 hours ago
0
Auto-Fallback to Another Model When Overloaded

Set a backup model with --fallback-model so automated tasks survive temporary model overloads without failing.

bagwaa @bagwaa · 2 hours ago
0
Get Validated JSON Output with --json-schema

Use --json-schema to get validated, schema-conforming JSON output from Claude Code in automated pipelines.

bagwaa @bagwaa · 2 hours ago
0
Discover CLI Flags Quickly with claude --help

claude --help and its subcommand variants give you a full reference for every flag and option without opening a browser — useful when you're in the middle of a script or a flow state.

bagwaa @bagwaa · 2 hours ago
0
Block Specific Tools with --disallowedTools

Remove tools entirely from Claude's context with --disallowedTools to enforce hard constraints like read-only analysis.

bagwaa @bagwaa · 2 hours ago
0
Lock Down MCP Servers with --strict-mcp-config

Use --strict-mcp-config to restrict Claude Code to only the MCP servers you explicitly provide, ignoring all other sources.

bagwaa @bagwaa · 2 hours ago
0
Branch a Conversation with --fork-session

Use --fork-session to branch a conversation into a new session, keeping the original intact while exploring alternatives.

bagwaa @bagwaa · 2 hours ago
0
Set Up Claude Code GitHub Actions with /install-github-app

Skip the manual setup and get Claude responding to @claude mentions in your PRs with a single command.

bagwaa @bagwaa · 2 hours ago
0
Use apiKeyHelper to Rotate Credentials Automatically

Point Claude Code at a script that returns a fresh API key from your vault, so you never hardcode credentials again.

bagwaa @bagwaa · 2 hours ago
0
Lower the MCP Tool Search Threshold to Save Tokens

Trigger automatic tool search earlier so idle MCP tool definitions stop consuming your context window and tokens.

bagwaa @bagwaa · 2 hours ago
0
Prefer CLI Tools Over MCP Servers to Reduce Context Overhead

CLI tools like gh, aws, and gcloud don't add persistent tool definitions to your context, saving tokens compared to equivalent MCP servers.

bagwaa @bagwaa · 2 hours ago
0
Use OTEL_RESOURCE_ATTRIBUTES to Track Claude Code Costs by Team

Tag Claude Code telemetry with team, department, and cost centre attributes so you can track spending per group in your observability backend.

bagwaa @bagwaa · 2 hours ago
0
Configure Worktree Symlinks and Sparse Checkout for Monorepos

Use worktree.symlinkDirectories and worktree.sparsePaths to avoid duplicating large directories and speed up worktree creation in monorepos.

bagwaa @bagwaa · 2 hours ago
0
Use Deny Rules to Block Access to Sensitive Files

Add deny rules to your project settings to prevent Claude Code from reading .env files, credentials, and other sensitive paths.

bagwaa @bagwaa · 2 hours ago
0
Enable Sandbox Mode to Isolate Bash Commands

Enable sandbox mode to let Claude run bash commands freely within controlled filesystem and network boundaries.

bagwaa @bagwaa · 2 hours ago
0
Add Custom Compaction Instructions to Preserve Key Context

Pass custom instructions to /compact so Claude preserves test output, code changes, and other context that matters to your workflow.

bagwaa @bagwaa · 2 hours ago
0
Use /rewind to Undo Bad Turns Without Wasting Tokens

Rewind bad turns instead of correcting them, so Claude never processes the wrong output and you save tokens on every subsequent message.

bagwaa @bagwaa · 2 hours ago
0
Use /model to Switch Between Claude Models Mid-Session

Type /model mid-session to switch from Opus to Sonnet, saving tokens on execution-heavy work without losing output quality.

bagwaa @bagwaa · 1 hour ago
0
Make Claude's Shell Scripts Safer with set -euo pipefail

When Claude generates shell scripts for you, ask it to add `set -euo pipefail` at the top — three flags that turn silent failures into hard stops.

bagwaa @bagwaa · 1 hour ago
0
Give Claude Visual Context by Pasting Images from Any Source

Claude Code accepts images from any clipboard source — screenshots, Slack messages, browser windows, and design mockups all paste directly into your prompt.

bagwaa @bagwaa · 1 hour ago
0
Generate draw.io Architecture Diagrams with Claude Code

Ask Claude Code to generate draw.io XML and paste it straight into diagrams.net for a quick, editable architecture overview.

bagwaa @bagwaa · 1 hour ago
0
Describe the Entire Feature in Plain English Before Claude Starts Building

Give Claude the full picture upfront before it writes any code, so it builds the right thing the first time with fewer correction rounds.

bagwaa @bagwaa · 1 hour ago
0
Resolve Git Merge Conflicts by Pasting Them into Claude

Paste git merge conflict markers into Claude Code and let it intelligently resolve both sides — then verify with your test suite.

bagwaa @bagwaa · 1 hour ago
0
Build a Custom MCP Server to Expose Your Internal APIs

Scaffold a custom MCP server with Claude to give it direct access to your internal APIs, dashboards, and microservices.

bagwaa @bagwaa · 1 hour ago
0
Use Claude to Analyse Test Coverage and Fill the Gaps

Feed your test coverage report to Claude and let it write the missing tests — targeting uncovered branches, edge cases, and error paths.

bagwaa @bagwaa · 1 hour ago
0
Prototype a Full-Stack MVP in a Single Claude Code Session

Give Claude a clear product brief and let it scaffold a working full-stack MVP — backend, frontend, and dev tooling — in a single session.

bagwaa @bagwaa · 1 hour ago
0
Write a Codebase Onboarding Guide for New Developers with Claude

Let Claude read your entire codebase and generate a comprehensive onboarding guide that actually reflects the current state of the project.

bagwaa @bagwaa · 1 hour ago
0
Process Hundreds of Files in Batch with a Shell Loop and --print

Combine shell loops with claude --print to apply AI-powered transformations to hundreds of files in one go — add headers, convert formats, or extract data at scale.

bagwaa @bagwaa · 1 hour ago
0
Ask Claude to Generate tRPC Routers from Your Existing API

Convert your existing REST API routes into fully typed tRPC procedures with Zod validation — Claude reads your handlers and generates the routers.

bagwaa @bagwaa · 1 hour ago
0
Add Progressive Web App Support to Your Site with Claude

Let Claude generate a complete PWA setup — manifest, service worker with Workbox, caching strategies, and all the meta tags you'd otherwise forget.

bagwaa @bagwaa · 1 hour ago
0
Set Up Monorepo Build Orchestration with Nx Using Claude

Let Claude configure Nx in your monorepo — dependency graphs, affected builds, caching, and task pipelines — so CI only rebuilds what changed.

bagwaa @bagwaa · 1 hour ago
0
Convert JavaScript to TypeScript Incrementally with Claude

Migrate JavaScript to TypeScript one file at a time with Claude — set up allowJs, convert leaf modules first, then tighten strict mode when you're ready.

bagwaa @bagwaa · 1 hour ago
0
Use --permission-mode to Start Claude in a Specific Permission Mode

Launch Claude Code directly in Plan, Default, or Auto mode from the command line, so you never forget to set the right guardrails before starting work.

bagwaa @bagwaa · 1 hour ago
0
Use --system-prompt to Fully Replace Claude's Default Prompt

Replace Claude Code's entire default system prompt with your own custom instructions, turning it into a specialised tool for reviews, audits, or migrations.

bagwaa @bagwaa · 1 hour ago
0
Use --tools to Restrict Which Built-In Tools Claude Can Use

Define exactly which built-in tools Claude can access in a session, from full capabilities down to read-only or even no tools at all.

bagwaa @bagwaa · 1 hour ago
0
Use --permission-prompt-tool for Custom Approval Flows in CI

Route Claude Code's permission prompts to a custom MCP tool in CI, so automated runs get programmatic approval instead of blanket allow-all or fail-on-prompt.

bagwaa @bagwaa · 1 hour ago
0
Move Sessions Between Terminal and Web with --remote and --teleport

Start a Claude Code session in your terminal and continue it on the web, or pull a web session into your local terminal with --remote and --teleport.

bagwaa @bagwaa · 1 hour ago
0
Define Custom Subagents on the Fly with --agents

Define specialised subagents inline with JSON when launching Claude Code, perfect for quick experiments and CI pipelines that need custom agents without config files.

bagwaa @bagwaa · 1 hour ago
0
Use --init-only to Run Setup Hooks Without Starting a Session

Run Claude Code's initialization hooks and exit immediately, reusing your hook infrastructure for CI setup and environment preparation without starting a session.

bagwaa @bagwaa · 1 hour ago
0
Use Prompt Hooks to Let Claude Guard Its Own Tool Calls

Use prompt hooks to evaluate tool calls with an LLM instead of bash scripts, describing your safety policies in plain English rather than brittle regex patterns.

bagwaa @bagwaa · 1 hour ago
0
Use HTTP Hooks to Send Webhooks on Tool Execution

Send POST requests to external services on every tool call using HTTP hooks, with header authentication and the ability to block actions from a remote endpoint.

bagwaa @bagwaa · 1 hour ago
0
Use --no-session-persistence for Ephemeral Automated Runs

Prevent automated Claude Code runs from saving session data to disk, keeping your CI pipelines clean and your .claude directory lean.

bagwaa @bagwaa · 1 hour ago
0
Pass CLI Flags to Claude in GitHub Actions with claude_args

The v1 release of Claude Code GitHub Actions consolidates model, max_turns, and other options into a single claude_args parameter that accepts any CLI flag.

bagwaa @bagwaa · 1 hour ago
0
Schedule Automated Tasks with Claude Code GitHub Actions

Use a cron schedule trigger with Claude Code GitHub Actions to run automated tasks like daily commit summaries without any human mention.

bagwaa @bagwaa · 1 hour ago
0
Export Claude Code Events with OpenTelemetry Logs

Claude Code exports detailed events via OpenTelemetry logs, giving you a full audit trail of every tool call, API request, and user prompt.

bagwaa @bagwaa · 1 hour ago
0
Use prompt.id to Trace All Activity from a Single User Prompt

Every event emitted while processing a single prompt shares a prompt.id UUID, letting you trace the complete chain of API calls and tool executions.

bagwaa @bagwaa · 1 hour ago
0
Control OTel Metrics Cardinality to Reduce Storage Costs

Three environment variables control which attributes are included in Claude Code OTel metrics, letting you manage cardinality and storage costs.

bagwaa @bagwaa · 1 hour ago
0
Use otelHeadersHelper for Dynamic Auth Tokens in Telemetry

The otelHeadersHelper setting runs a script to generate fresh authentication headers for your OTel backend, refreshing automatically every 29 minutes.

bagwaa @bagwaa · 1 hour ago
0
Filter Test Output with a PreToolUse Hook to Cut Token Costs

A PreToolUse hook can intercept test runner commands and filter output to show only failures, cutting thousands of tokens from Claude's context.

bagwaa @bagwaa · 1 hour ago
0
Move Specialised CLAUDE.md Instructions into Skills to Shrink Context

CLAUDE.md loads into every message. Move workflow-specific instructions into skills that load on demand to reduce token costs across your session.

bagwaa @bagwaa · 1 hour ago
0
Build a Custom Agent with the Claude Agent SDK in 10 Lines

The Claude Agent SDK gives you Claude Code's full tool suite as a Python or TypeScript library. Build autonomous agents with built-in file, bash, and search tools.

bagwaa @bagwaa · 1 hour ago
0
Set Custom Trigger Phrases for Claude in GitHub PRs

The trigger_phrase parameter lets you change the default @claude mention to any custom keyword, useful for running multiple Claude workflows on the same repo.

bagwaa @bagwaa · 1 hour ago
0
Use Authentication Precedence to Debug Login Issues

Claude Code checks credentials in a specific order. A stale ANTHROPIC_API_KEY in your shell can shadow your subscription login without any obvious error.

bagwaa @bagwaa · 1 hour ago
0
Ask Claude to Write Storybook Stories for Your React Components

Ask Claude to generate Storybook stories from your existing React components — it reads your prop types and produces complete CSF3 story files with meaningful variants in seconds.

bagwaa @bagwaa · 46 minutes ago
0
Generate Ansible Playbooks from a Plain-English Description

Describe your server setup in plain English and let Claude write a complete, idempotent Ansible playbook — modules, handlers, roles, and all the boilerplate you'd otherwise look up.

bagwaa @bagwaa · 46 minutes ago
0
Audit Your UI Components for Accessibility Issues with Claude

Ask Claude to audit your UI components for WCAG accessibility issues — it catches semantic problems, missing ARIA attributes, and keyboard navigation gaps that automated tools miss.

bagwaa @bagwaa · 46 minutes ago
0
Convert Your SQL Schema to a Prisma Schema with Claude

Pipe your SQL DDL or Laravel migrations to Claude and get a complete Prisma schema back — foreign keys become relations, enums map correctly, and @@map attributes preserve your existing table names.

bagwaa @bagwaa · 46 minutes ago
0
Detect and Fix Memory Leaks in Your Node.js Application with Claude

Hand Claude your heap snapshots or server code and ask it to trace memory leaks — it spots missing event listener cleanup, unbounded caches, and stream lifecycle bugs that are easy to miss in code review.

bagwaa @bagwaa · 46 minutes ago
0
Migrate Your Tailwind CSS v2 Classes to v4 with Claude

Ask Claude to migrate your Tailwind v2 utility classes and config to v4 — it handles renamed utilities, the new CSS-first config format, and @theme variable mappings across your whole codebase.

bagwaa @bagwaa · 46 minutes ago
0
Generate GitHub Issue Templates for Your Project with Claude

Ask Claude to read your repo and generate complete GitHub Issue template files in the YAML forms format — bug reports, feature requests, and config.yml all tailored to your actual stack.

bagwaa @bagwaa · 45 minutes ago
0
Generate a Typed API Client SDK from Your OpenAPI Spec with Claude

Give Claude your OpenAPI spec and ask for a handcrafted typed API client — clean method names, custom error handling, and TanStack Query hooks, without the ugly auto-gen output.

bagwaa @bagwaa · 45 minutes ago
0
Write Property-Based Tests with fast-check and Claude

Ask Claude to write property-based tests for your functions using fast-check — it identifies the mathematical invariants in your code and generates tests that cover inputs you'd never enumerate by hand.

bagwaa @bagwaa · 45 minutes ago
0
Ask Claude to Scaffold New Features Using Your Existing Code Conventions

Before asking Claude to scaffold a new feature, point it at your existing code first — it will match your naming, structure, error handling, and test patterns exactly rather than defaulting to framework boilerplate.

bagwaa @bagwaa · 45 minutes ago
0
Enable the Smarter /init Experiment to Get Interviewed, Not Overwritten

Set CLAUDE_CODE_NEW_INIT in settings.json to make /init interview you for targeted improvements instead of overwriting your existing CLAUDE.md.

bagwaa @bagwaa · 36 minutes ago
0
Import Files into CLAUDE.md with the @filename Syntax

Writing AGENTS.md as plain text in CLAUDE.md has no effect — use @AGENTS.md to actually load the file into context.

bagwaa @bagwaa · 36 minutes ago
0
Jump Back Into Your Most Recent Conversation with --continue

The --continue flag loads your most recent conversation instantly, no session ID required.

bagwaa @bagwaa · 28 minutes ago
0
Name Your Sessions at Launch with --name

The --name flag sets a human-readable session name at launch, making it easy to resume specific threads later.

bagwaa @bagwaa · 28 minutes ago
0
Control Transcript Retention with cleanupPeriodDays

The cleanupPeriodDays setting controls how long session transcripts are kept, or set it to 0 to disable persistence entirely.

bagwaa @bagwaa · 27 minutes ago
0
Surface Team Messages at Startup with companyAnnouncements

The companyAnnouncements setting surfaces team messages to every developer at startup, directly in their Claude Code session.

bagwaa @bagwaa · 27 minutes ago
0
Customize or Remove Claude's Git Attribution with the attribution Setting

The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.

bagwaa @bagwaa · 27 minutes ago
0
Set Claude's Response Language with the language Setting

The language setting makes Claude respond in your preferred language by default, across every session and project.

bagwaa @bagwaa · 27 minutes ago
0
Run Setup Scripts on Every Session with the SessionStart Hook

The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.

bagwaa @bagwaa · 27 minutes ago
0
Switch to the Stable Update Channel with autoUpdatesChannel

The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.

bagwaa @bagwaa · 26 minutes ago
0
Ask Side Questions Without Polluting Context with /btw

The /btw command lets you ask quick side questions that are answered immediately but never added to the conversation history.

bagwaa @bagwaa · 26 minutes ago
0
Scan Pending Changes for Security Issues with /security-review

The /security-review command scans your uncommitted changes for injection vectors, auth gaps, hardcoded secrets, and other common vulnerabilities.

bagwaa @bagwaa · 26 minutes ago