Repository navigation
fix(skills): give working commands and accurate status in skill tool messages - #6467
Conversation
…messages Several skill messages GAIA hands the model and the user named commands that fail or described behaviour that doesn't happen, so the agent relayed dead ends and wrong claims. - install_skill on a skill the agent bundles now says the bundled copy is what load_skill loads, instead of telling the model to load the install. - Named commands now run as written: `gaia skill import ... --allow-experimental` for an imported skill with code, `gaia skill deltas <skill> --scope <scope> --drop-section`, and `gaia skill install` / `gaia skill search` in place of the nonexistent `gaia skill info --remote`. - The skills catalog says an ungranted CLI such as gh waits for the user's approval rather than being refused; load_skill's docstring says a missing CLI with no substitute refuses the load. - remember_skill_lesson says a lesson for a just-loaded skill can be saved on the user's next message (load_skill stays tainting: a skill's text is third-party), the provenance refusal says a tool already ran this turn, and the undo notice says a revert takes effect on the next start. - The compact-tier hint and comment say capture_skill stays available. - Docs anchors match the live slugs; the sandbox pointer moves from closed #1019 to open #2863; the flagship docs drop the nonexistent --skill-set flag and re-measure gaia-voice at 789 tokens.
Skill audit
✅ All audited skills cleared the tier they claim. Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the |
Verdict: Approve with suggestionsThis PR fixes skill messages that sent the model and the user to commands that fail, or that described behaviour GAIA doesn't have. I checked every command the new messages name against the real
Real-world evidenceThe evidence stage ran on a runner with no model and a local fake hub. It confirms the new commands work and the old ones fail: It also called the agent's tools directly. Installing a hub copy of a bundled skill returned The bundle marks two surfaces pending strix-halo lane: the 🔍 Technical detailsIssues 🟢 Docs still name closed #1019 as the sandbox tracker. The PR moves 🟢 A second private import from Out of scope (noticed in the evidence): for a skill that ships Checked and fine
Strengths
|
|
The migrate docs now point at the open sandbox issue (#2863), matching the runtime errors, and capture's path helper is public ( I left daily-brief alone: its #1019 link is about running a skill on a schedule, not the sandbox, so #2863 would be the wrong target. That's the same link the |
Brings in the skill import-digest change. Keeps both sides' imports and tests, takes main's migrate docstring with the #2863 sandbox link, and exports shell_path from gaia.skills.capture.
Several skill messages sent the model and the user to commands that fail or claimed things that don't happen. Installing a skill the agent already bundles told the model to load the install, but the bundled copy is what loads.
gaia skill importwithout--allow-experimentalexits 4 for a skill with code,gaia skill deltas --drop-sectionwithout--scopeexits 2, andgaia skill info --remotedoesn't exist. The skills catalog saidghis refused until a skill loads, but it actually asks the user to approve each command. Now every named command runs as written and every status claim matches the code.Needs a flagship eval: the catalog line is in every system prompt, and tool results and one tool docstring changed. Please re-run
gaia_skills_lifecycle,gaia_skills_captureandgaia_skills_tasksineval_flagship.yml.Test plan
shadowed_by; the import, drop-section, install and search commands parse with the realgaia skillargparse; the tainted-turn refusal and the not-loaded refusal wording; the undo notice; the compact-tier hint namescapture_skillpython -m gaia.cliin a temp home:skill import <dir>exits 4 and with--allow-experimentalexits 0;skill deltas --drop-sectionexits 2 and with--scopeexits 0;skill info --remoteexits 2;skill searchexits 0util/lint.py --all: black, isort, flake8 and the tool-description budget pass. Pylint's 2 errors are Windows-only, in files this PR doesn't touchgaia_skills_lifecycle,gaia_skills_capture,gaia_skills_tasks🔍 Technical details
Model-visible strings changed:
CATALOG_HEADER(system prompt): "some pre-approve a CLI (such as gh) — until the skill is loaded, each of its commands waits for the user's approval." The golden fixturenon_claude_system_prompt.txtis updated.install_skillresult: newnext_stepandshadowed_bywhen a bundled copy outranks the install; newnext_stepwhen the host has the skill turned off.load_skillrefusal for an imported skill with code: the command now includes--allow-experimentaland is shell-quoted.load_skilldocstring, Returns: a missing CLI with no substitute refuses the load.list_skillscompact-tier hint: hub installs need a larger model, andcapture_skillstill works.remember_skill_lesson"not loaded" error: says the lesson can be saved on the user's next message.remember_skill_lessonempty-text error:gaia skill deltas <skill> --scope <scope> --drop-section <section>.remember_skill_lessonsuccess notice: "Undo, which takes effect when GAIA next starts: …"validate_deltaprovenance refusal: "A tool already ran this turn, and anything a tool returns — a web page, an email, a skill's text, a command's output — …" The first clause appears only fortool_content.gaia skill install <name>[@<version>]andgaia skill search <name>replacegaia skill info --remote.#the-metadata-gaia-namespaceand#tools-vs-tools_required-%E2%80%94-never-conflate-them, checked against the live page's ids.Decisions:
load_skillstill taints the turn. A loaded skill's text is third-party, andtest_even_a_skill_listing_taints_the_turnpins that. So the guidance changed, not the taint.capture_skillstays on the compact tier.test_gemma_keeps_installed_skills_and_documentsasserts that on purpose, and feat(npu): offer GAIA's Gemma on the Ryzen AI NPU, GPU stays default #5892 withheld only the hub. The comment and hint now say so.cli_setupbundle: it's defined once inDOC_BUNDLESand once inFULL_BUNDLES, one per profile, likeshell_session. That isn't a duplicate, so it's unchanged.install_skill. Whichever merges second needs a trivial rebase.