home/dot_claude/skills/claude-code-workflow/SKILL.md
Claude Code AI-assisted development workflow. Activate when discussing Claude Code usage, AI-assisted coding, prompting strategies, or Claude Code-specific patterns.
npx skillsauth add salverius-tech/dotfiles claude-code-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Guidelines for effective AI-assisted development with Claude Code.
| Value | Task Type | Example | |-------|-----------|---------| | High | Boilerplate generation | CRUD endpoints, test scaffolding | | High | Refactoring | Extract function, rename across files | | High | Documentation | Docstrings, README updates | | Medium | Bug investigation | Error analysis, log interpretation | | Medium | Code review | Pattern suggestions, security review | | Low | Novel architecture | Requires deep domain knowledge | | Low | Ambiguous requirements | Needs human clarification |
The RECOMMENDED workflow for most development tasks:
Explore: Use Glob, Grep, Read to understand existing code
Plan: Outline changes before implementation
Code: Implement changes incrementally
Commit: Create logical, atomic commits
1. Write failing test → 2. Implement minimum to pass → 3. Refactor → 4. Repeat
For uncertain implementations: Create throwaway spike, validate, delete, implement properly with tests.
MUST: Provide specific file paths, include error messages verbatim, state expected vs actual behavior
SHOULD: Reference previous context, specify output format, include constraints upfront
SHOULD NOT: Repeat information in context, include unnecessary background, ask multiple unrelated questions
[Initial Context] → [Specific Task] → [Iterative Refinement]
| Scenario | Recommendation | |----------|----------------| | Search 5+ files for pattern | Subagent | | Edit single file | Direct | | Run tests + fix failures | Subagent | | Explore unfamiliar codebase | Subagent | | Implement planned changes | Direct |
SHOULD use for: Architecture decisions, complex debugging, multi-file refactoring, novel problem solving, security-sensitive code review
RECOMMENDED for: Routine code changes, test writing, documentation, code review, bug fixes with clear scope
MAY use for: Simple queries, syntax checking, format conversions, quick lookups, commit message generation
IF deep reasoning OR high-stakes: USE Opus
ELSE IF routine development: USE Sonnet
ELSE IF simple/quick: USE Haiku
MUST: Test execution after changes, linting/formatting, type checking, security scanning
SHOULD: Coverage thresholds, performance benchmarks, integration tests
REQUIRED: Security-sensitive changes, production deployments, architecture modifications, public API changes
RECOMMENDED: Complex business logic, performance-critical code, external integrations
Effective: "Refactor UserService in src/services/user.py to use dependency injection for database connection"
Ineffective: "Clean up the user code"
MUST specify: Language/framework versions, performance requirements, backward compatibility, error handling
Bug Fix:
File: [path] | Error: [exact message]
Expected: [behavior] | Actual: [behavior]
Relevant code: [snippet]
Feature:
Goal: [one sentence]
Criteria: [list] | Location: [file] | Constraints: [limits]
CURRENT.md - Active task state (SHOULD update when switching tasks, MUST reflect current focus)
STATUS.md - Project progress (SHOULD update at session end, MUST include blockers/next steps)
[Start] → [Load CURRENT.md] → [Work + TodoWrite] → [End] → [Update STATUS.md]
Skills SHOULD be: Single-purpose, composable, self-contained
Skills MUST NOT: Conflict with others, duplicate core rules, exceed context budget
| Pattern | Trigger |
|---------|---------|
| File-based | *.py, Dockerfile, package.json |
| Directory-based | .claude/, tests/, src/ |
| Content-based | Keywords in conversation |
| Command-based | /skill-name invocation |
| Anti-Pattern | Better Approach | |--------------|-----------------| | Context dumping | Provide focused, relevant context | | Vague requests | Specific, measurable goals | | Premature optimization | MVP first, optimize with data | | Ignoring errors | Address errors immediately |
| Anti-Pattern | Better Approach | |--------------|-----------------| | Bash for file ops | Use Read/Edit/Write tools | | Write over Edit | Prefer Edit for existing files | | Single-threaded search | Parallel subagent searches | | Skipping Read | Always Read before Edit |
| Anti-Pattern | Better Approach | |--------------|-----------------| | Coding without tests | TDD or test-after minimum | | Giant commits | Atomic, logical commits | | Ignoring TodoWrite | Update status in real-time |
| Anti-Pattern | Better Approach | |--------------|-----------------| | "Make it better" | Define specific improvements | | Assuming knowledge | Provide relevant background | | Ignoring constraints | State constraints upfront |
testing
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
testing
Guidelines for optimizing Claude rulesets and instruction files (CLAUDE.md, settings.json) using context efficiency principles. Includes strategies for skill extraction, progressive disclosure, token savings calculation, and deduplication. Manually invoke when optimizing rulesets, reducing context size, extracting content to skills, or improving ruleset organization.
tools
Activate when user needs multi-URL scraping, browser automation pipelines, or efficient tool orchestration to reduce API round-trips and context usage.
development
# Cross-Platform Hooks and Status Scripts Guidelines for writing Claude Code hooks and status scripts that work on Windows (PowerShell, Git Bash), WSL, and Linux. ## Activation Activate when: - Creating or modifying files in `.claude/hooks/` - Creating or modifying `.claude/claude-status` - Writing shell scripts that will run in Claude Code context - Debugging hook execution failures ## Critical Rules ### 1. Shebang Lines **Bash scripts**: Always use `#!/usr/bin/env bash` (NOT `#!/bin/bash