claude-code-workflows
💡 摘要
一系列技能和工作流程,用于增强Claude Code的编码实践。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
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 |
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? Have a workflow to share? PRs welcome.
License
MIT
Built by Damian Galarza - Former CTO, 15+ years in software. I make videos about Claude Code and AI development workflows.
优点
- 提供多种技能以应对不同的编码任务。
- 与现有工作流程良好集成。
- 鼓励最佳实践,如TDD和结构化提交。
缺点
- 可能需要额外的设置以实现最佳使用效果。
- 复杂性可能会让新用户感到不知所措。
- 对外部插件的依赖可能会引入风险。
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 dgalarza.
