@spardutti/claude-skills 1.23.0 → 1.24.1
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 +1 -0
- package/lib/setup-hook.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ Personal collection of reusable Claude Code **skills**, **slash commands**, and
|
|
|
59
59
|
| Skill | Description |
|
|
60
60
|
|-------|-------------|
|
|
61
61
|
| `single-responsibility` | Single Responsibility Principle — language-agnostic SRP, file size limits, CQS, separation of concerns, smell tests |
|
|
62
|
+
| `avoid-hasty-abstractions` | AHA / Rule of Three — prefer duplication over the wrong abstraction, boolean-parameter creep, undoing bad extractions |
|
|
62
63
|
|
|
63
64
|
### Quality
|
|
64
65
|
|
package/lib/setup-hook.mjs
CHANGED
|
@@ -70,9 +70,9 @@ export async function setupHook(targetDir = process.cwd()) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// --- UserPromptSubmit hook (forced eval via command) ---
|
|
73
|
-
const
|
|
73
|
+
const hookCommand = `$CLAUDE_PROJECT_DIR/.claude/hooks/${HOOK_FILENAME}`;
|
|
74
74
|
const promptHookEntry = {
|
|
75
|
-
hooks: [{ type: "command", command:
|
|
75
|
+
hooks: [{ type: "command", command: hookCommand }],
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
if (Array.isArray(settings.hooks.UserPromptSubmit)) {
|