Co-Pilot / 辅助式
更新于 24 days ago

claude-code-workflows

Ddgalarza
0.0k
dgalarza/claude-code-workflows
78
Agent 评分

💡 摘要

一系列技能和工作流程,用于增强Claude Code的编码实践。

🎯 适合人群

希望改善编码工作流程的软件开发人员。寻求结构化开发流程的项目经理。对自动化测试和审查感兴趣的QA工程师。希望将AI集成到其管道中的DevOps专业人员。

🤖 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

  1. Linear - Project management integration
  2. Memory - Persistent context across sessions
  3. 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.

五维分析
清晰度8/10
创新性7/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 提供多种技能以应对不同的编码任务。
  • 与现有工作流程良好集成。
  • 鼓励最佳实践,如TDD和结构化提交。

缺点

  • 可能需要额外的设置以实现最佳使用效果。
  • 复杂性可能会让新用户感到不知所措。
  • 对外部插件的依赖可能会引入风险。

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 dgalarza.