pincer-workflow 0.2.3 → 0.3.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 +15 -14
- package/bin/pincer.js +47 -11
- package/package.json +2 -2
- package/template/.agents/skills/pincer-code/SKILL.md +17 -14
- package/template/.agents/skills/pincer-evaluate/SKILL.md +28 -9
- package/template/.agents/skills/pincer-narrow/SKILL.md +27 -21
- package/template/.agents/skills/pincer-plan/SKILL.md +28 -20
- package/template/.agents/skills/pincer-release/SKILL.md +14 -9
- package/template/.agents/skills/pincer-status/SKILL.md +1 -1
- package/template/.claude/commands/pincer-code.md +16 -13
- package/template/.claude/commands/pincer-evaluate.md +28 -9
- package/template/.claude/commands/pincer-narrow.md +25 -19
- package/template/.claude/commands/pincer-plan.md +26 -18
- package/template/.claude/commands/pincer-release.md +13 -8
- package/template/.claude/commands/pincer-status.md +1 -1
- package/template/.claude/hooks/block-dangerous.sh +7 -18
- package/template/.claude/hooks/hook-policy.cjs +258 -0
- package/template/.claude/hooks/ticket-guard.sh +6 -63
- package/template/.claude/references/prd-template.md +3 -3
- package/template/.claude/references/ticket-template.md +22 -4
- package/template/.codex/README.md +4 -4
- package/template/.github/prompts/pincer-code.prompt.md +16 -13
- package/template/.github/prompts/pincer-evaluate.prompt.md +28 -9
- package/template/.github/prompts/pincer-narrow.prompt.md +25 -19
- package/template/.github/prompts/pincer-plan.prompt.md +26 -18
- package/template/.github/prompts/pincer-release.prompt.md +13 -8
- package/template/.github/prompts/pincer-status.prompt.md +1 -1
- package/template/AGENTS.md +2 -3
- package/template/docs/dry-run-checklist.md +19 -15
- package/template/docs/release-checklist.md +34 -0
- package/template/scripts/pincer-status.sh +64 -23
- package/template/scripts/pincer-ticket-lib.sh +270 -0
- package/template/scripts/pincer-ticket.sh +57 -46
- package/template/scripts/sync-prompts.sh +6 -1
|
@@ -18,6 +18,11 @@ count=0
|
|
|
18
18
|
for src in .claude/commands/pincer-*.md; do
|
|
19
19
|
name=$(basename "$src" .md)
|
|
20
20
|
desc=$(sed -n 's/^description: *"\{0,1\}\([^"]*\)"\{0,1\}$/\1/p' "$src" | head -1)
|
|
21
|
+
if grep -q '^argument-hint:.*optional' "$src"; then
|
|
22
|
+
argument_text="the text that follows the \`\$$name\` mention, if any (when omitted, use the playbook's documented default)"
|
|
23
|
+
else
|
|
24
|
+
argument_text="the text that follows the \`\$$name\` mention in the user's message (ask only if the required input is missing)"
|
|
25
|
+
fi
|
|
21
26
|
body=$(awk 'flag; /^---$/ { if (++c == 2) flag = 1 }' "$src")
|
|
22
27
|
|
|
23
28
|
# Codex: one skill directory per playbook. Skills have no $ARGUMENTS
|
|
@@ -29,7 +34,7 @@ for src in .claude/commands/pincer-*.md; do
|
|
|
29
34
|
printf -- '---\nname: %s\ndescription: "%s"\n---\n' "$name" "$desc"
|
|
30
35
|
printf '<!-- Generated from %s by scripts/sync-prompts.sh — edit the source, not this file -->\n\n' "$src"
|
|
31
36
|
printf '%s\n' "$body" \
|
|
32
|
-
| sed "s/\$ARGUMENTS/
|
|
37
|
+
| sed "s/\$ARGUMENTS/$argument_text/g" \
|
|
33
38
|
| sed -e 's#^/pincer-\([a-z]*\)#$pincer-\1#' -e 's#\([^A-Za-z0-9_./]\)/pincer-\([a-z]*\)#\1$pincer-\2#g'
|
|
34
39
|
} > ".agents/skills/$name/SKILL.md"
|
|
35
40
|
|