Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Common Workflows

БесплатноБез исполняемых скриптовНе проверен

Workflow packs for the 7 most common Claude Code tasks — codebase exploration, bug fixing, safe refactoring, TDD, repo review before merge, CLAUDE.md…

TheLobbiот TheLobbi★ 22 звезды на GitHub

Об этом скилле

Common Workflow Packs

Seven battle-tested workflow packs that mirror the official Claude Code common-workflows guide. Each pack is a complete playbook, not generic advice.


Pack 1: Understand a Codebase

When: First time in an unfamiliar repo, onboarding a new project, or before making large changes.

Start Prompt

You are a senior engineer exploring this codebase for the first time.

Phase 1 — Structure mapping:
1. Read CLAUDE.md, README.md, and package.json/pyproject.toml
2. Map the top-level directory structure (2 levels deep)
3. Identify: entry points, main business logic, data layer, API layer, test layer
4. Identify: tech stack, framework version, package manager

Phase 2 — Architecture extraction:
5. Find the 3 most important source files (highest import count or central routing)
6. Read each one and extract: purpose, key abstractions, dependencies
7. Map data flow: where does data enter, transform, and exit?
8. Identify patterns: are there service layers, repositories, DTOs, event buses?

Phase 3 — Output:
9. Write a 1-page architecture summary to .claude/context-snapshot.md with:
   - Tech stack table
   - 3-sentence architecture description
   - Key file map (path → purpose, one line each)
   - Entry points and their routes/triggers
   - Known complexity hotspots (files > 300 lines or deeply nested logic)

Verification Steps

  • Tech stack correctly identified (check package.json/Cargo.toml/pyproject.toml)
  • All entry points found (check for main.ts, index.ts, manage.py, main.go)
  • Architecture snapshot written to .claude/context-snapshot.md
  • No assumptions made that weren't verified in code

Subagent Opportunities

  • Delegate framework-specific analysis: spawn a subagent for src/auth/ while you explore src/api/
  • Use a Haiku subagent to list imports and build the dependency graph (fast, cheap)
  • Use an Opus subagent only for the final architecture synthesis

Common Failure Modes

  • Over-reading: reading every file instead of tracing from entry points inward
  • Missing the glue: forgetting to read middleware, config loaders, and DI containers
  • Stale docs: trusting README over what's actually in the code

Completion Checklist

  • .claude/context-snapshot.md written
  • Can explain the system in 3 sentences without looking at the code
  • Know where to find: routing, data models, auth, config, tests

Pack 2: Fix a Bug from an Error Trace

When: You have a stack trace, error message, or failing test and need to find and fix the root cause.

Start Prompt

You are debugging the following error:

{PASTE ERROR TRACE HERE}

Evidence-based debugging protocol:

Phase 1 — Parse:
1. Extract: error type, message, file, line number, call stack
2. Identify the proximate cause (where it failed) vs. likely root cause (why)

Phase 2 — Locate:
3. Read the file at the error line + 20 lines of context
4. Trace the call stack: read each frame's function to understand data flow
5. Find where the problematic value was created or last mutated

Phase 3 — Hypothesize:
6. Form 2-3 specific hypotheses about root cause
7. For each hypothesis: identify a code path that would produce this error
8. Pick the most likely hypothesis based on evidence

Phase 4 — Fix:
9. Write the minimal fix for the chosen hypothesis
10. Explain why the fix works
11. Identify if there are other call sites with the same bug

Phase 5 — Verify:
12. Run the failing test: {test_cmd}
13. Run the full test suite to check for regressions: {test_cmd}
14. If tests pass: commit with message "fix({scope}): {one-line description}"

Verification Steps

  • Error is reproducible before fix (confirm test fails)
  • Root cause identified (not just symptom masked)
  • Fix is minimal (no unrelated changes in the same commit)
  • Tests pass after fix
  • Other call sites checked for same bug

Subagent Opportunities

  • Use a subagent to search for similar patterns across the codebase: Grep "same_pattern" --all
  • Delegate test writing to a test-writer subagent after the fix is confirmed

Common Failure Modes

  • Symptom masking: adding null checks without finding why null appears
  • Over-engineering: refactoring instead of fixing
  • Regression: fixing one thing, breaking another — always run full suite
  • Wrong hypothesis: jumping to a fix without verifying the hypothesis first

Completion Checklist

  • Failing test was confirmed before fix
  • Root cause statement written in commit message
  • All tests pass
  • No unrelated changes in the commit

Pack 3: Refactor Safely

When: You need to restructure code without changing behavior. Extract a function, rename a module, split a large file, introduce an abstraction.

Start Prompt

You are a refactoring engineer. Goal: {DESCRIBE REFACTOR GOAL}.

Safety protocol:

Phase 1 — Baseline:
1. Identify the exact scope of change (files, functions, types affected)
2. R
Полный SKILL.md на GitHub

Установить Common Workflows в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash
Write
Edit

FAQ

Что делает скилл Common Workflows?

Workflow packs for the 7 most common Claude Code tasks — codebase exploration, bug fixing, safe refactoring, TDD, repo review before merge, CLAUDE.md generation, and migration planning. Each pack has a start prompt, verification steps, subagent opportunities, failure modes, and completion checklist.

Как установить скилл Common Workflows?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Common Workflows запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Common Workflows с