@wbern/claude-instructions 2.6.0 โ 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
[](https://claude.ai/code)
|
|
15
15
|
[](https://github.com/wbern/claude-instructions/graphs/contributors)
|
|
16
16
|
[](https://github.com/wbern/claude-instructions/pulls)
|
|
17
|
-
[](https://github.com/wbern/claude-instructions#available-commands)
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
_==/ i i \==_
|
|
@@ -74,7 +74,7 @@ Then add a postinstall script to your `package.json`:
|
|
|
74
74
|
"postinstall": "npx @wbern/claude-instructions --scope=project --overwrite"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@wbern/claude-instructions": "^2.
|
|
77
|
+
"@wbern/claude-instructions": "^2.7.0"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
```
|
|
@@ -232,6 +232,7 @@ flowchart TB
|
|
|
232
232
|
- `/add-command` - Guide for creating new slash commands
|
|
233
233
|
- `/kata` - Generate a TDD practice challenge with boilerplate test setup
|
|
234
234
|
- `/research` - Research a problem in parallel via web docs, web search, codebase exploration, and deep ultrathink
|
|
235
|
+
- `/commitlint-checklist-nodejs` - Audit commit hook automation for Node.js projects
|
|
235
236
|
|
|
236
237
|
## Getting Started
|
|
237
238
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Audit commit hook automation for Node.js projects
|
|
3
|
+
argument-hint: (no arguments - interactive)
|
|
4
|
+
_hint: Audit commit hooks (Node.js)
|
|
5
|
+
_category: Utilities
|
|
6
|
+
_order: 25
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- docs INCLUDE path='src/fragments/universal-guidelines.md' -->
|
|
10
|
+
<!-- /docs -->
|
|
11
|
+
|
|
12
|
+
<!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
|
|
13
|
+
<!-- /docs -->
|
|
14
|
+
|
|
15
|
+
# Commit Hook Automation Checklist (Node.js)
|
|
16
|
+
|
|
17
|
+
Scan the Node.js repository and report what commit automation is in place.
|
|
18
|
+
|
|
19
|
+
$ARGUMENTS
|
|
20
|
+
|
|
21
|
+
## Checks to Scan
|
|
22
|
+
|
|
23
|
+
Scan the repository for these configurations (do not display this list to user):
|
|
24
|
+
|
|
25
|
+
**๐ง Infrastructure**
|
|
26
|
+
- Husky: `.husky/`, `package.json` โ `"prepare": "husky"`
|
|
27
|
+
- Pre-commit hook: `.husky/pre-commit`
|
|
28
|
+
- lint-staged: `lint-staged.config.*`, `.lintstagedrc.*`, or `package.json` lint-staged key
|
|
29
|
+
|
|
30
|
+
**๐งน Code Quality**
|
|
31
|
+
- Linting: `eslint.config.*`, `biome.json`, `.eslintrc.*`
|
|
32
|
+
- Formatting: `.prettierrc*`, `biome.json`
|
|
33
|
+
- Type checking: `tsconfig.json` + lint-staged runs `tsc --noEmit`
|
|
34
|
+
- Knip: `knip.json` or knip in scripts
|
|
35
|
+
- jscpd: `.jscpd.json` or jscpd in scripts
|
|
36
|
+
|
|
37
|
+
**๐ Security**
|
|
38
|
+
- Secret scanning: `.secretlintrc.json`, secretlint in dependencies
|
|
39
|
+
|
|
40
|
+
**๐ Commits**
|
|
41
|
+
- Conventional commits: `.husky/commit-msg`, `commitlint.config.*`, `@commitlint/*` in deps
|
|
42
|
+
|
|
43
|
+
**๐งช Testing**
|
|
44
|
+
- Pre-commit tests: lint-staged or pre-commit hook runs test command
|
|
45
|
+
- Coverage thresholds: vitest/jest config with coverage thresholds
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
Display ONLY this summary format (no tables, no detailed breakdown):
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
โ
Passing:
|
|
53
|
+
๐ง Infrastructure: Husky, pre-commit hook, lint-staged
|
|
54
|
+
๐งน Code Quality: Linting, formatting, type checking, Knip, jscpd
|
|
55
|
+
๐งช Testing: Pre-commit tests, coverage thresholds
|
|
56
|
+
|
|
57
|
+
โ Missing (2):
|
|
58
|
+
โข Secret scanning (secretlint)
|
|
59
|
+
โข Conventional commits (commitlint)
|
|
60
|
+
|
|
61
|
+
๐ 10/12 checks passing
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Omit categories with no passing checks from the "Passing" section.
|
|
65
|
+
|
|
66
|
+
## Follow-up
|
|
67
|
+
|
|
68
|
+
After the summary, tell the user:
|
|
69
|
+
|
|
70
|
+
> For working examples of most items above, see [wbern/claude-instructions](https://github.com/wbern/claude-instructions) on GitHub.
|
|
71
|
+
>
|
|
72
|
+
> Would you like help implementing any of the missing checks?
|