You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 75465e7
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add slash commands for Claude/Cursor and switch to core.hooksPath
- Add 6 reusable slash commands (analyze, review, fix, refactor, test, doc)
for Claude (.claude/commands/) and Cursor (.cursor/prompts/)
- Rewrite existing commands to be framework-agnostic (no React assumptions)
- Switch git hooks from .git/hooks/ wrappers to git core.hooksPath
- Auto-inject prepare script into package.json so hooks work for all devs
- Add legacy cleanup for .git/hooks/ ContextKit wrappers
- Rename hook files from .sh extension to match git conventions
@@ -133,14 +137,36 @@ codex "create checkout flow for customer"
133
137
134
138
**CLI** (Chat with AI)
135
139
```bash
136
-
ck ai "create checkout flow for customer"
140
+
ck ai "create a button"
137
141
```
138
142
139
143
---
140
144
145
+
## Slash Commands
146
+
147
+
ContextKit installs reusable slash commands for supported platforms:
148
+
149
+
| Command | What it does |
150
+
|---------|-------------|
151
+
|`/analyze`| Scan codebase and generate standards content |
152
+
|`/review`| Code review with checklist |
153
+
|`/fix`| Diagnose and fix bugs |
154
+
|`/refactor`| Refactor code with safety checks |
155
+
|`/test`| Generate comprehensive tests |
156
+
|`/doc`| Add documentation |
157
+
158
+
**Claude Code** — available as `/analyze`, `/review`, etc. in `.claude/commands/`
159
+
**Cursor** — available as slash commands in Chat via `.cursor/prompts/`
160
+
161
+
Both platforms delegate to the universal command files in `.contextkit/commands/`, so you maintain one set of workflows.
162
+
163
+
---
164
+
141
165
## Git Hooks & Quality Gates
142
166
143
-
ContextKit can optionally install native Git hooks (`.git/hooks/`) during `ck install`. No external dependencies like Husky required — works in any git repo, not just Node.js projects.
167
+
ContextKit can optionally install Git hooks during `ck install`. Uses `git config core.hooksPath` to point Git at `.contextkit/hooks/` — no external dependencies like Husky required. Works in any git repo, not just Node.js projects.
168
+
169
+
For **Node.js projects**, a `prepare` script is automatically added to `package.json` so hooks activate for all developers after `npm install` — no need for everyone to run `ck install`.
0 commit comments