Repository navigation
fix(skills): declare run_shell_command in the coding skill - #4295
Conversation
The coding skill grants pytest and tells the model to run it, but never declared the one tool that runs a shell command, so a loaded coding skill could not run the tests it asks for. A new starter-pack guard fails any skill that carries a shell:execute grant without declaring run_shell_command; coding was the only one. Fixes amd#4222
|
Verdict: Approve The coding skill could tell the model to run I checked the claims in the description and they hold: the coding skill is the only shipped skill that broke the rule, Real-world evidenceNo evidence bundle was produced for this PR, so the verdict rests on static review plus the unit tests the description reports. That is proportionate for a manifest line plus a test — there's no CLI, API, or UI surface whose output would differ. The one gap worth closing before this is called done is the description's own unchecked box: an agent run with the coding skill loaded, showing the model actually reaching for the test-runner tool, is the only thing that proves the reported bug is gone rather than merely explained. 🔍 Technical details🟢 The guard's stated rationale doesn't match the runtime ( The docstring says loading a skill "brings the tools it declares", but the loader treats 🟢 The rule is enforced only for the shipped pack ( A third-party skill with 🟢 Document the new authoring rule ( That paragraph explains the binary grant but not that a skill must also declare 🟢 Vacuous pass vs. skip ( Skills with no shell grant Strengths
|
main independently reworded the pytest-invocation paragraph (favoring python -m over bare pytest) after this branch's own base -- kept that rewrite but restored the explicit run_shell_command mention the starter-skill coverage guard requires (test_starter_skill_body_ mentions_the_tools_it_declares), which main's version had dropped.
The coding skill grants
pytestand tells the model to run the tests, but it didn't list the one tool that can run a shell command. Once loading a skill brings in the tools it declares, the model got every coding tool except the one that runs tests. The skill now declares that tool. A new starter-pack check fails any skill whose shell grant has no tool to use it. Coding was the only skill that broke the rule;github-triagealready declared the tool.Overlaps #3390 and #4174, which both edit the same
pytestparagraph and neither adds the tool. Whichever merges second needs a one-line rebase.Test plan
python -m pytest tests/unit/test_starter_skills.py -q -k shell_grant: the new check fails forcodingbefore the fix and passes for all 16 skills after itpython -m pytest tests/unit/test_starter_skills.py tests/unit/test_skill_binary_grants.py hub/agents/gaia/python/tests/test_gaia_agent.py -q: 489 passed. The one failure,test_manifest_tools_count_matches_real_registry(81 vs 80), counts the agent's tool registry, which this change doesn't touchblack --check/isort --check-onlyon the changed test filegaia eval agent: the loaded coding skill now gives the model an extra toolFixes #4222