Skip to content

Commit b7066aa

Browse files
Thomas Laureclaude
andcommitted
chore(claude): convert commands to SKILL.md format with auto-trigger
Add YAML frontmatter to all 6 project commands so Claude auto-triggers them based on conversation context rather than requiring explicit /cmd invocation. Each skill description includes clear trigger signals and explicit "use proactively" guidance. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7b31a5f commit b7066aa

File tree

6 files changed

+86
-3
lines changed

6 files changed

+86
-3
lines changed

.claude/commands/bug-fix.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1+
---
2+
name: bug-fix
3+
description: >
4+
Runs the structured 8-step bug fix workflow for Signalist.
5+
Trigger this whenever the user describes something that is broken, not working
6+
as expected, producing an error, or behaving incorrectly — test failures,
7+
exceptions, wrong output, a feature that used to work and no longer does.
8+
Trigger even without the word "bug": phrases like "this is broken", "I'm
9+
getting an error", "it's not working", "the test fails", "something is wrong
10+
with..." are all clear signals. Use this skill proactively for any defect
11+
investigation and fix, not just when the user explicitly asks for a bug fix.
12+
---
13+
114
Read `.claude/workflows/bug-fix.md` and start the bug fix workflow for: $ARGUMENTS

.claude/commands/hotfix.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
---
2+
name: hotfix
3+
description: >
4+
Runs an expedited minimal hotfix workflow for Signalist.
5+
Trigger this when the user describes a critical or urgent issue that needs
6+
an immediate, minimal fix — production is broken, a live bug is affecting
7+
users, something needs to be patched right now. Key signals: "production",
8+
"prod", "urgent", "critical", "hotfix", "emergency", "live issue", "users
9+
are affected". Distinct from a regular bug fix: hotfixes are about speed and
10+
minimal blast radius, not thorough investigation. Use this skill proactively
11+
whenever urgency and minimalism are the priority.
12+
---
13+
114
Start an expedited hotfix workflow for the production issue: $ARGUMENTS
215

316
This is a HOTFIX — keep changes minimal and focused on the fix only.
@@ -18,7 +31,8 @@ This is a HOTFIX — keep changes minimal and focused on the fix only.
1831
3. **Minimal fix only**
1932
- Change the least amount of code necessary
2033
- No refactoring, no unrelated improvements
21-
- If the root cause requires a larger fix, implement a safe temporary workaround and create a follow-up task
34+
- If the root cause requires a larger fix, implement a safe temporary
35+
workaround and create a follow-up task
2236

2337
4. **Regression test**
2438
- Write one test that reproduces the bug and passes after the fix
@@ -36,4 +50,5 @@ This is a HOTFIX — keep changes minimal and focused on the fix only.
3650
- `gh pr create` targeting `master`
3751
- After merge, monitor logs for 10 minutes
3852

39-
Read `.claude/workflows/bug-fix.md` for the full workflow if the issue requires deeper investigation.
53+
Read `.claude/workflows/bug-fix.md` for the full workflow if the issue requires
54+
deeper investigation.

.claude/commands/new-feature.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1+
---
2+
name: new-feature
3+
description: >
4+
Runs the structured 9-step feature implementation workflow for Signalist.
5+
Trigger this whenever the user asks to add, build, implement, or create any
6+
new functionality — a new API endpoint, a new page, a new component, a new
7+
domain handler, a new integration, or any new capability that doesn't exist
8+
yet. Trigger even if the user doesn't say "feature" explicitly: phrases like
9+
"I want to add...", "can you build...", "let's implement...", "we need a..."
10+
are all strong signals. Use this skill proactively — it's the right workflow
11+
for anything that involves writing new code from scratch.
12+
---
13+
114
Read `.claude/workflows/new-feature.md` and start the new feature workflow for: $ARGUMENTS

.claude/commands/quality.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
---
2+
name: quality
3+
description: >
4+
Runs the full quality check suite (lint, static analysis, rector, unit tests)
5+
and reports results for Signalist.
6+
Trigger this whenever the user wants to verify code quality before committing
7+
or opening a PR, after finishing an implementation, when CI is failing, or
8+
when they ask about linting, PHPStan errors, test results, or code style.
9+
Signals: "run quality", "check the code", "does it pass?", "run the tests",
10+
"any lint errors?", "is it ready to commit?", "make quality". Use this skill
11+
proactively after any implementation session to catch issues early.
12+
---
13+
114
Run the full quality check suite and report results.
215

316
Execute in order:

.claude/commands/review.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
---
2+
name: review
3+
description: >
4+
Performs a structured code review of current changes against Signalist's
5+
architecture, quality, security, and testing standards.
6+
Trigger this whenever the user wants feedback on code they've written or
7+
that was just implemented — before opening a PR, after finishing a feature,
8+
when they ask "does this look right?", "is this correct?", "can you review
9+
this?", or "check my changes". Also trigger when the user explicitly says
10+
"review" or asks whether the code follows the project's conventions.
11+
Use this skill proactively at the end of any feature or fix session.
12+
---
13+
114
Perform a code review of the current changes. Context: $ARGUMENTS
215

316
If no context is given, run `git diff HEAD` and `git diff --staged` to get changes.

.claude/commands/simplify.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
Review the recently changed code for clarity, consistency, and maintainability, then fix any issues found. Focus on: removing duplication, improving readability, applying project conventions from `.claude/CLAUDE.md`. Do not change behavior or add features.
1+
---
2+
name: simplify
3+
description: >
4+
Reviews recently changed code for clarity, consistency, and maintainability,
5+
then fixes any issues found — without changing behavior or adding features.
6+
Trigger this when the user wants to clean up, tighten, or polish code that
7+
was just written or modified. Signals: "simplify", "clean this up", "refactor
8+
this", "make it cleaner", "too complex", "can we improve this?", or after a
9+
feature is done and the user wants a final pass before committing. Focus on
10+
removing duplication, improving readability, and applying project conventions
11+
from CLAUDE.md. Do NOT change behavior or add features.
12+
---
13+
14+
Review the recently changed code for clarity, consistency, and maintainability,
15+
then fix any issues found. Focus on: removing duplication, improving readability,
16+
applying project conventions from `CLAUDE.md`. Do not change behavior or add
17+
features.

0 commit comments

Comments
 (0)