claude-workflow

Defines Claude Code working patterns for planning, subagents, verification, context management, and hooks.

2|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/tommylower/cortex --skill claude-workflow-tommylower
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-workflow
Source: https://github.com/tommylower/cortex/tree/main/agent-workflows/claude-workflow
Command: npx skills add https://github.com/tommylower/cortex --skill claude-workflow-tommylower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding sessions often fail through poor planning, bloated context windows, unverified changes, and config-weakening shortcuts. This Skill provides a disciplined set of working patterns for Claude Code so tasks are planned, delegated, verified, and completed with minimal wasted context. ## Core Features & Use Cases - Workflow Orchestration: Guidance on when to use plan mode, how to delegate research and parallel analysis to subagents, and how to fix bugs autonomously without hand-holding. - Context Management: Strategic compaction at natural task boundaries, context budget awareness, and token estimation rules to keep sessions efficient. - Protective Hooks: Ready-to-paste .claude/settings.json hook configurations that block edits to linter/formatter/type configs and batch prettier/tsc runs at stop time. - Use Case: A developer starting a multi-step feature can apply these patterns to plan first, offload exploration to subagents, compact context before implementation, and verify the change with tests and cross-model review before shipping. ## Quick Start Apply the claude-workflow skill to structure this coding session with plan mode, subagent delegation, and verification before completion.

Frequently Asked Questions about claude-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use plan mode effectively in Claude Code?▼

Use plan mode when the approach is open, the change is architectural, or a wrong direction would be costly to redo. If the plan stops matching what you find during implementation, re-plan instead of patching forward.

How to manage context window in long Claude Code sessions?▼

Run /compact deliberately at natural task boundaries, such as after exploration or before starting a new subtask, rather than relying on auto-compaction. Avoid compacting mid-implementation or while debugging, since you need that working context.

When should I use subagents in Claude Code?▼

Use subagents liberally to keep the main context window clean. Offload research, exploration, and parallel analysis to subagents, assign one task per subagent, and throw more compute at complex problems via additional subagents.

How do I prevent Claude from editing linter or tsconfig files?▼

Add a PreToolUse hook in .claude/settings.json that matches Edit and Write operations and blocks changes to protected config files like .eslintrc, prettier.config.js, and tsconfig.json. The hook forces fixing the code instead of weakening the config.

Why run format and typecheck at stop time instead of after every edit?▼

Running prettier and tsc after every edit is slow and repetitive. A PostToolUse hook can accumulate edited file paths, and a Stop hook runs prettier --write and tsc --noEmit once on the deduplicated list when Claude pauses.

When should high-risk changes get cross-model review?▼

High-risk changes involving auth, data, or infrastructure should go through cross-model adversarial review before shipping. The workflow recommends running /codex:adversarial-review via the codex-review skill for these cases.