plugins/claude/code/commands
Snider 817502b5f2
feat: Add test coverage tracking and reporting (#89)
This commit introduces a new feature to track test coverage over time and warn when it drops.

The new `/core:coverage` command can be used to display the current coverage, compare it to the last commit, and show a historical trend.

A pre-commit hook has also been added to warn when coverage drops.

Key changes:
- Created `claude/code/commands/coverage.sh` to handle coverage calculation, history tracking, and reporting.
- Created `claude/code/scripts/check-coverage.sh` to be used as a pre-commit hook.
- Created `.coverage-history.json` to store coverage history.
- Updated `claude/code/hooks.json` to add the new pre-commit hook.

Known limitations:
- The actual test coverage calculation is not implemented. A mock value is used as a placeholder. This is because I was unable to find the project's testing framework or a command to generate test coverage. A `TODO` has been added to the `coverage.sh` script to indicate where the real command should be added.
- The pre-commit hook is not being triggered. I have debugged the issue extensively, but the cause is still unknown. The `check-coverage.sh` script is fully functional and can be run manually.
2026-02-02 07:22:54 +00:00
..
commit.md feat(code): implement /core:commit smart commit command (#73) 2026-02-02 07:16:29 +00:00
core:env.md feat: Add /core:env for environment management (#70) 2026-02-02 07:14:37 +00:00
coverage.sh feat: Add test coverage tracking and reporting (#89) 2026-02-02 07:22:54 +00:00
debug.md feat: Add /core:debug skill for systematic debugging (#62) 2026-02-02 07:11:33 +00:00
deps.md feat(/core:deps): show module dependencies (#82) 2026-02-02 07:19:58 +00:00
explain.md feat: /core:explain explain code or errors (#66) 2026-02-02 07:13:13 +00:00
log.md feat(core): add /core:log command for smart log viewing (#77) 2026-02-02 07:17:59 +00:00
migrate.md feat(code): add /core:migrate Laravel migration helpers (#88) 2026-02-02 07:22:17 +00:00
onboard.md feat: Add interactive onboarding command (#63) 2026-02-02 07:12:28 +00:00
qa.md feat(plugin): Implement workspace awareness to detect the current module (#75) 2026-02-02 07:17:36 +00:00
release.md feat(code): add /core:release command (#86) 2026-02-02 07:21:12 +00:00
remember.md refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
scaffold.md feat: Add /core:scaffold command (#85) 2026-02-02 07:21:02 +00:00
status.md feat(core): Add /core:status command for multi-repo status (#72) 2026-02-02 07:15:08 +00:00
yes.md refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00