Repository navigation
docs(claude): fix subagent and skill examples that cite deleted agents/paths - #4326
Conversation
…s/paths Subagent definitions and the GitHub-reply skill cited agents and paths that no longer exist and presented them as "verified against the tree" — an agent session copying gaia-agent-builder.md's MRO example would go looking for CodeAgent, JiraAgent, SDAgent, or MedicalIntakeAgent, none of which exist. The github-issue-response skill's own worked example told a reporter GAIA has no Slack integration and pointed at the deleted Jira agent, even though `gaia slack` ships today. Replaced every stale reference with a live one (GaiaAgent, ChatAgent, hub/agents/hello-world, gaia.connectors, hub/skills) across the affected .claude/agents, .claude/skills, AGENTS.md, and CONTRIBUTING.md files, and added a filesystem-only unit test that walks backtick-quoted repo paths in those files and asserts each exists (with a placeholder allowlist for template shapes like `hub/agents/<id>/...`), so this can't silently rot again. Overlaps open issue amd#3535, which tracks the same class of drift across a broader set of files and proposes extending util/check_doc_links.py to walk .claude/ — that's the more durable fix; this PR's test is scoped to the paths this issue named. Also overlaps open PR amd#3812, which does not touch any of the lines fixed here. Fixes amd#4248
|
Verdict: Request changes — one small fix, then this is good to merge. This PR replaces references to deleted agents and files across the subagent/skill instruction files and adds a test that fails when a backticked repo path in those files doesn't exist. Almost every replacement checks out against the tree, and the new guard genuinely works. The one thing to fix: the builder doc now says the flagship agent declares the registry metadata attributes ( Two smaller things worth a look: the contributor-doc test-plan example now names a real test file but filters it with Real-world evidenceNo I did verify the new test myself rather than taking the test plan on trust. Running the same logic against the pre-PR content of the changed files reproduces the drift the PR fixes (7 failures: 🔍 Technical details🟡 Important
🟢 Minor
The guard skips Coverage is narrower than the sibling guard it complements —
Strengths
|
… nothing GaiaAgent does not declare AGENT_ID as a class attribute; the only AGENT_ID = "gaia" in that package is a module-level constant in server.py/stdio.py, and registry.py falls back to the entry-point name when the attribute is absent. Name the classes that actually declare it instead. CONTRIBUTING.md's example filtered test_chat_preflight.py with -k startup, which deselects all 17 tests in that file.
|
Confirmed and fixed — the
While verifying, the
🔍 Technical detailsVerification for the
For the Not addressed (🟢 in the review, scoped as follow-ups): extending the guard's path regex to |
Subagent definitions and the GitHub-reply skill told coding sessions to go find
CodeAgent,JiraAgent,SDAgent,MedicalIntakeAgent,blender_mcp_server.py, andtests/test_cli.py— all deleted — andgaia-agent-builder.mdpresented its example under a "verified against the tree" header, the most damaging kind since sessions copy it as a convention. The GitHub-reply skill's own worked example also told a reporter GAIA has no Slack integration and pointed at the deleted Jira agent, even thoughgaia slackships today.Every stale reference is swapped for a live one (
GaiaAgent,ChatAgent,hub/agents/hello-world,gaia.connectors,hub/skills,tests/unit/cli/), and a new filesystem-only unit test walks backtick-quoted repo paths across.claude/agents/,.claude/skills/,AGENTS.md, andCONTRIBUTING.mdand asserts each one exists (placeholder shapes likehub/agents/<id>/...are allowlisted), so this class of drift can't ship silently again.Overlaps open issue #3535, which tracks the same class of drift across a broader file set and proposes extending
util/check_doc_links.pyto walk.claude/— the more durable long-term fix. This PR's test is scoped to the paths #4248 named. Also overlaps open PR #3812, which doesn't touch any of the lines fixed here.Test plan
pytest tests/unit/test_ai_doc_paths_exist.py -q— 308 passed (confirmed it fails before the fix: reverting any one edit reintroduces a failure)black --check/isort --check-onlyon the new test filepython util/check_doc_links.py --internal-only— 1012/1012 OKFixes #4248