fix(config): resolve Python reliably, add command-safety hook, harden CI
- Resolve Python 3.11+ through shared Resolve-Python.ps1/resolve-python.sh, which probe python, python3 and py -3 and skip the Windows Store alias. Build and capability checks fail early with an actionable message; doctor reports missing Python and the skipped hooks. - Fix check-capabilities.sh comparing only the major version. - Register Validate-CommandSafety as a PreToolUse hook for Claude and Codex; shared logic in command-safety.py catches rm -rf variants, git reset --hard, git clean -f, Remove-Item -Recurse, del/rd /s /q and nested shells. - Replace duplicated placeholder chains in both builds with adapters/placeholders.tsv. - Restore shell parity: add test-capabilities.sh, rename credentials.ps1 to with-credential.ps1 and qmd-warm.sh to start-qmd-warm.sh. - CI: build once and pass generated/ as an artifact, lint Python with ruff and JavaScript modules with node --check, require SHA pins for all actions. - Add evals for all own skills and update documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e19aa2e27c
commit
79694fbaa2
95 files changed
+1838
-218
No files matched your search
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"skill_name": "plugin-workflow",
|
||||
"evals": [
|
||||
{
|
||||
"id": 1,
|
||||
"prompt": "Our CI started failing after yesterday's merge: `OrderTotalTests.Applies_discount_after_tax` expects 90.00 but gets 89.10. Fix it. (Installed plugins: superpowers, ponytail, caveman. i-have-adhd and impeccable are not installed.)",
|
||||
"expected_output": "This is a development task (bug fix). Should load using-superpowers and then systematic-debugging before fixing. Should load ponytail in full mode before coding the fix, inspect affected callers, and implement the smallest complete change. Should apply test-driven-development for regression coverage and verification-before-completion before claiming done. Should report the missing i-have-adhd and impeccable plugins once and continue with shared guidance, without installing them. Impeccable is not needed because the task is backend-only. Response should lead with the result and use concise style.",
|
||||
"assertions": [
|
||||
"Loads or invokes using-superpowers for the development task",
|
||||
"Uses systematic-debugging before applying a fix",
|
||||
"Loads ponytail in full mode before changing code",
|
||||
"Inspects callers or consumers of the changed code",
|
||||
"Adds or references regression coverage for the failing behavior",
|
||||
"Applies verification-before-completion with evidence before claiming the fix is done",
|
||||
"Reports missing plugins at most once and does not install them",
|
||||
"Does not load impeccable for this backend-only task",
|
||||
"Leads the final response with the result"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"prompt": "stop caveman\n\nNow redesign the empty state of the Projects list page so it guides new users to create their first project. It must work on mobile. (Installed: superpowers, ponytail, impeccable, caveman.)",
|
||||
"expected_output": "This is a UI development task. Should load using-superpowers and brainstorming for a feature change, ponytail in full mode before coding, and impeccable before UI planning and edits, preserving the existing design system and verifying affected states and responsive layouts. Should honor the 'stop caveman' opt-out: responses should not use Caveman compression style, while i-have-adhd-style structure (answer first) may still apply. Should report unavailable previews honestly. Should not create branches or commits on plugin defaults.",
|
||||
"assertions": [
|
||||
"Loads impeccable before planning or editing the UI",
|
||||
"Loads brainstorming or the Superpowers feature workflow before implementing the change",
|
||||
"Loads ponytail in full mode before coding",
|
||||
"Verifies or plans verification of the mobile layout and empty state",
|
||||
"Responses do not use Caveman compressed style after the opt-out",
|
||||
"Does not create a branch, worktree, or commit without authorization",
|
||||
"Reports honestly if a UI preview could not be viewed"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"prompt": "What's the difference between `git rebase` and `git merge`? Also, can you fix the typo \"recieve\" in README.md?",
|
||||
"expected_output": "Both parts are out of scope for this skill: a conceptual question and a documentation text change. Should answer the question and fix the typo directly without loading using-superpowers, brainstorming, systematic-debugging, ponytail, or impeccable, and without starting a planning or review phase.",
|
||||
"assertions": [
|
||||
"Answers the rebase versus merge question directly",
|
||||
"Fixes the README typo directly",
|
||||
"Does not load using-superpowers or other Superpowers phase skills",
|
||||
"Does not load ponytail or impeccable",
|
||||
"Does not start a brainstorming, planning, or code review workflow"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user