dgalarza/claude-code-workflows
Personal collection of Claude Code workflows
npx skills add dgalarza/claude-code-workflowsREADME
Claude Code Workflows
A collection of skills, agents, and workflows for Claude Code.
YouTube | Newsletter | Blog
Quick Install
Via npx (skills only):
npx skills add dgalarza/claude-code-workflows --skill "tdd-workflow"
Via Claude marketplace (skills, agents, bundles):
/plugin marketplace add dgalarza/claude-code-workflows
/plugin install tdd-workflow@dgalarza-workflows
See INSTALL.md for full details.
Skills
| Skill | Description |
|---|---|
| TDD Workflow | Test-driven development, one test at a time |
| Conventional Commits | Structured commit messages |
| Parallel Code Review | Multi-agent code reviews |
| Meeting Transcript | Process transcripts into structured notes |
| YouTube Strategy | Content strategy for YouTube videos |
Agents
| Agent | Description |
|---|---|
| Cybersecurity Reviewer | Security analysis and threat modeling |
| Gridfinity Planner | 3D printing baseplate planning |
Bundles
| Bundle | Description |
|---|---|
| Rails Toolkit | Complete Rails workflow with TDD, reviews, Linear integration |
Tips & Tricks
Tip 1: Use Worktrees for Parallel Agents
Git worktrees let you run multiple Claude Code agents on the same codebase without conflicts.
The problem: If you run 2+ agents on the same repo, you get:
- Unrelated changes in one branch
- Agents overwriting each other's files
- Test suites colliding on the same database
The solution: Each agent gets its own worktree.
git worktree add ../myproject-feature-x -b feature-x
cd ../myproject-feature-x
# When done
git worktree remove ../myproject-feature-x
But wait - your app won't run because .env and other secrets don't copy over. And if both agents run tests, they'll fight over the same database.
For Rails apps, use the setup script that handles everything:
# From your project root
./scripts/setup-rails-worktree.sh feature-branch
# This will:
# 1. Create worktree at ../yourproject-feature-branch
# 2. Symlink files from .worktreeinclude (or defaults)
# 3. Create .env.local with isolated DB_DATABASE and DB_TEST_DATABASE
# 4. Run bin/setup
Configure with .worktreeinclude - create this file in your repo root to specify which gitignored files to include:
.env
.env.local
.npmrc
config/master.key
Uses the same pattern as Claude Code Desktop - only files matching both .worktreeinclude AND .gitignore are included.
Get the script: scripts/setup-rails-worktree.sh | example.worktreeinclude | Git Worktrees Cheat Sheet
The rails-toolkit plugin also includes /rails-toolkit:linear-worktree which automates this with Linear issue context.
Tip 2: Customize Your Status Bar
claude config set --global statusLineTemplate '${cwd.basename} | ${model} | ${tokenUsage}'
See configs/status-bar.md for more options.
Tip 3: Compact Context Proactively
Don't wait until Claude starts forgetting things. Compact when you finish a logical unit of work, switch tasks, or token usage gets high.
/compact
Tip 4: Structure Your CLAUDE.md Files
# Project Name
## Overview
One paragraph on what this project does.
## Tech Stack
- Framework: Rails 7.2
- Database: PostgreSQL
## Key Patterns
- Service objects in app/services/
- Result pattern for service returns
## Testing
- RSpec with FactoryBot
- Run tests: `bin/rspec`
Tip 5: Use Subagents for Focused Tasks
When Claude spawns subagents, each one gets focused context. Security review? Let it spawn a security-focused subagent. Code review? Multiple specialized reviewers in parallel.
Tip 6: MCP Servers Worth Installing
- Linear - Project management integration
- Memory - Persistent context across sessions
- Sentry - Debug production errors
See configs/mcp-servers.md for setup instructions.
Configurations
Contributing
Found a bug?
...