@slamb2k/mad-skills 2.0.9 → 2.0.11
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slamb2k",
|
|
3
3
|
"description": "Claude Code plugins by Simon Lamb",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"owner": {
|
|
6
6
|
"name": "Simon Lamb",
|
|
7
7
|
"url": "https://github.com/slamb2k"
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
{
|
|
11
11
|
"name": "mad-skills",
|
|
12
12
|
"description": "AI-assisted planning, development and governance tools",
|
|
13
|
-
"version": "2.0.9",
|
|
14
13
|
"author": {
|
|
15
14
|
"name": "slamb2k",
|
|
16
15
|
"url": "https://github.com/slamb2k"
|
|
@@ -18,13 +17,7 @@
|
|
|
18
17
|
"source": "./",
|
|
19
18
|
"category": "development",
|
|
20
19
|
"homepage": "https://github.com/slamb2k/mad-skills",
|
|
21
|
-
"tags": [
|
|
22
|
-
"planning",
|
|
23
|
-
"tdd",
|
|
24
|
-
"architecture",
|
|
25
|
-
"llm-review",
|
|
26
|
-
"implementation"
|
|
27
|
-
]
|
|
20
|
+
"tags": ["planning", "tdd", "architecture", "llm-review", "implementation"]
|
|
28
21
|
}
|
|
29
22
|
]
|
|
30
23
|
}
|
|
@@ -40,20 +40,15 @@ if [[ $(echo "$CONTEXT" | grep -c '⚠️\|ℹ️') -eq 0 ]]; then
|
|
|
40
40
|
exit 0
|
|
41
41
|
fi
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
# Output context as plain stdout to avoid the cosmetic "error" label
|
|
44
|
+
# that Claude Code renders when additionalContext is in the JSON output.
|
|
45
|
+
# Plain stdout is picked up as hook output without the error severity.
|
|
46
|
+
cat <<EOF
|
|
44
47
|
[SESSION GUARD — FIRST PROMPT REMINDER]
|
|
45
48
|
The following was detected at session start. Act on these items NOW using
|
|
46
49
|
AskUserQuestion BEFORE proceeding with the user's request.
|
|
47
50
|
|
|
48
51
|
$CONTEXT
|
|
49
52
|
EOF
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
jq -n --arg ctx "$WRAPPED" '{
|
|
53
|
-
hookSpecificOutput: {
|
|
54
|
-
hookEventName: "UserPromptSubmit",
|
|
55
|
-
additionalContext: $ctx
|
|
56
|
-
}
|
|
57
|
-
}'
|
|
58
53
|
|
|
59
54
|
exit 0
|
package/hooks/session-guard.sh
CHANGED
|
@@ -188,15 +188,10 @@ SETTINGS_FILE="$PROJECT_DIR/.claude/settings.json"
|
|
|
188
188
|
[[ -n "${CLAUDE_CODE_TASK_LIST_ID:-}" ]] && TASK_LIST_CONFIGURED=true
|
|
189
189
|
|
|
190
190
|
if [[ "$TASK_LIST_CONFIGURED" == false ]] && command -v jq &>/dev/null; then
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
TASK_LIST_CONFIGURED=true
|
|
196
|
-
break
|
|
197
|
-
fi
|
|
198
|
-
fi
|
|
199
|
-
done
|
|
191
|
+
if [[ -f "$SETTINGS_FILE" ]]; then
|
|
192
|
+
TASK_ID=$(jq -r '.env.CLAUDE_CODE_TASK_LIST_ID // empty' "$SETTINGS_FILE" 2>/dev/null) || true
|
|
193
|
+
[[ -n "$TASK_ID" ]] && TASK_LIST_CONFIGURED=true
|
|
194
|
+
fi
|
|
200
195
|
fi
|
|
201
196
|
|
|
202
197
|
if [[ "$TASK_LIST_CONFIGURED" == false && -n "$GIT_ROOT" ]]; then
|
package/package.json
CHANGED
package/skills/manifest.json
CHANGED