commit
CommandCreate well-formatted conventional commits with atomic-commit analysis
Run and improve the test suite for a given scope
$ npx -y skills add awattar/claude-code-best-practices --agent claude-code
description: Run and improve the test suite for a given scope argument-hint: <file-or-directory | feature | all>
This command helps you run and improve the test suite for the scope specified in $ARGUMENTS.
To test specific files or features, just type:
/test <file-or-directory> /test <feature>
To test everything, just type:
/test all
1. Identifies test scope based on $ARGUMENTS (file, directory, feature or all). 2. Checks current test coverage and runs targeted tests first. 3. Executes integration and full test suite as needed. 4. Fixes failing tests and adds missing test coverage. 5. Documents results and commits improvements.
This command leverages specialized agents for comprehensive test suite management:
Each agent contributes specialized expertise to ensure thorough project analysis and high-quality documentation generation.
Follow these steps:
Follow testing best practices and TDD principles. See GitHub's language-specific testing guides at https://docs.github.com/en/actions/how-tos/use-cases-and-examples/building-and-testing
Before starting:
Understand the current testing landscape:
1. Identify the scope:
2. Check current test coverage:
3. Review existing test patterns:
Execute tests to verify current state:
1. Execute targeted tests first:
2. Run related integration tests:
3. Execute full test suite:
Enhance test coverage and quality:
1. Fix failing tests:
2. Add missing tests:
3. Refactor existing tests:
Ensure all improvements are working correctly:
1. Verify improvements:
2. Use browser automation tools via MCP for end-to-end validation:
3. Document testing decisions:
Document and communicate test results:
1. Summarize test improvements in a scratchpad. 2. If part of a PR, update the PR description with test details. 3. Commit all changes with descriptive messages.
Remember that good tests are fast, reliable, and clearly communicate intent.
A practical guide to using Claude Code, Anthropic’s agentic coding assistant, effectively in real-world development workflows. This repo distills best practices, patterns, and examples for integrating Claude Code into your terminal-based coding environment.
Create well-formatted conventional commits with atomic-commit analysis
Generate a comprehensive CLAUDE.md by analyzing the current project
Compare two or more options side by side, recommend one, and let the reader pick in the page
Explain code in detail - what it does, how it works, and why
Create smart commit with quality checks and conventional format