Repository navigation
Add calculators and templates to eleven skills, with a script safety check - #57
Merged
Merged
Conversation
…check Six skills gain a standard-library calculator under scripts/ and five gain a fill-in template under assets/. scripts/check-skill-scripts.py runs in CI: it parses every shipped script and rejects imports outside a short allowlist and any file, process, network or eval use, runs each with --self-test in isolated mode, and requires every script and asset to be named in its SKILL.md. D46. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011eJk2N15P9YFWKecThPfFi
Triggers: 179 of 179 on claude-opus-5-5 and on claude-sonnet-5-5. Outputs on claude-opus-5-5, graded by claude-opus-5-5: 58 of 64 criteria with the skill against 50 of 64 without; 17 of 18 with a company profile against 0 of 18 without. The claude-sonnet-5-5 output run had 6 of 46 answers refused by the provider and was not written, as the runner requires. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011eJk2N15P9YFWKecThPfFi
The output test gives the model no tools and did not say so. Three answers in the first run contained attempted tool calls and one was nothing else. Both arms now carry the same line saying no tools exist, an answer that is a tool call is counted as an error and not graded, and a failed case is named as it fails. Rerun on claude-opus-5-5: 63 of 64 criteria with the skill against 52 of 64 without; 20 of 21 with a company profile against 1 of 21 without; 0 errors. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011eJk2N15P9YFWKecThPfFi
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Chris · project thread
Roadmap idea 5, phase 2. Stacked on #56; merge that first.
What changes
Six skills gain a calculator under
scripts/, five gain a fill-in template underassets/, and each SKILL.md gains a## Calculatoror## Templatesection that says when to use it and what it does not know.finance:unit-economicsfinance:treasury-and-liquiditydemand-generation:experimentationpmo:estimating-and-contingencyrevenue:sales-compensation-and-territoryoperations:capacity-and-demand-planningpmo:program-managementlegal-risk:enterprise-riskfinance:internal-controls-and-auditlegal-risk:corporate-governancelegal-risk:regulatory-complianceThe safety check
Scripts run on the user's machine, so
scripts/check-skill-scripts.pyis new incheck-all.sh:argparse,json,math,statistics,sys,fractions,decimal, and any use ofopen,exec,eval,compile,__import__,getattrand the attributes that reach around an allowlist.python3 -I <script> --self-test; it must exit 0. Each self-test compares output with independently worked answers.scripts/orassets/must be named in its SKILL.md, and every named path must exist.EXEMPTwith a reason. One exists: the surface guard.The scan is a floor, not a sandbox. Review still reads every new script.
Also
Verified
./scripts/check-all.shpasses locally (19 checks). The scan was tested against a script that importsos, callsopen, readssys.modulesand uses a relative import; all four were reported.Eval results (November 30)
Run on this branch, so the skills measured are the ones this PR ships. Results are in
evals/results/, the scorecard isdocs/EVALS.md, and the README badge shows the trigger score.claude-opus-5-5claude-sonnet-5-5After merge
The 1.1.0 ChatGPT upload packages were built before this change. Rebuild with
python3 scripts/build-listing.py --allbefore submitting.Generated by Claude Code