Implement the following plan: Audit: Agent Integration Skills (Post One-Pager Refactor)…
- User
Implement the following plan:
Audit: Agent Integration Skills (Post One-Pager Refactor)
Context
The one-pager refactor was just implemented. This audit reviews the changes for correctness and identifies further improvements — bugs, inconsistencies, and structural issues across all four skill files.
Audit of Implemented Changes
Correct
- researcher.md: Clean rewrite. Phase 1 reads only
agent-guide.md, explicit "Do NOT read" callout. One-pager template is well-structured with all sections the other phases need. - test-writer.md: Prerequisites, Step 4, and summary line updated to reference
AGENT.md. Fallback instruction ("search external docs, update AGENT.md") is good. - implementer.md: Steps 2, 3, 10 reference one-pager. Standing instruction before Step 4 is well-placed. All "research report" references replaced.
- SKILL.md: Phase descriptions accurately describe the one-pager handoff.
Issues Found
7 concrete issues, roughly ordered by severity:
Issues to Fix
1.
implementer.mdStep 3 references nonexistentconfig.goFile:
implementer.md:47Problem: Says "Add the agent to the config map incmd/entire/cli/agent/config.go" — this file doesn't exist. Agent wiring uses blank imports incmd/entire/cli/hooks_cmd.go. Fix: Replace with: "Ensure the blank import_ "github.com/entireio/cli/cmd/entire/cli/agent/$AGENT_SLUG"exists incmd/entire/cli/hooks_cmd.go"2.
researcher.mdPhase 4 asks for info the researcher can't produceFile:
researcher.md:67Problem: Phase 4 says "Field coverage: whichEventstruct fields can be populated per event" — but the researcher was told NOT to readevent.gowhereEventstruct fields are defined. The researcher can't assess field coverage without knowing the struct. Fix: Remove the "Field coverage" bullet from Phase 4. The implementer handles field mapping when readingevent.go.3. One-pager template missing "Static Checks" section
File:
researcher.md:81-122Problem: Phase 2 runs 7 static checks (binary, help, version, hook keywords, session keywords, config dir, docs). These results aren't captured in the one-pager template. The verdict (COMPATIBLE/PARTIAL/INCOMPATIBLE) depends on these checks, but there's no place to record the detailed results. Add a section to the template between and : - researcher.md: Clean rewrite. Phase 1 reads only
Assistant
★ Insight ─────────────────────────────────────This is an audit of skill files — markdown documents that guide AI agents through a multi-phase workflow for integrating new coding agents. The fixes are about correctness of cross-references between phases, ensuring each phase has the information it needs without requiring knowledge from files it was told not to read.─────────────────────────────────────────────────Let me start by reading all four files to understand the current state before making changes.
Assistant
Now let me verify the claim about
config.goandhooks_cmd.go.Assistant
Good — confirmed
config.godoesn't exist. Let me check the blank import pattern inhooks_cmd.go.Assistant
Confirmed — agent wiring uses blank imports in
cmd/entire/cli/hooks_cmd.go, notconfig.go. Now let me apply all 7 fixes.★ Insight ─────────────────────────────────────The skill files form a pipeline: researcher.md → test-writer.md → implementer.md, orchestrated by SKILL.md. Each fix addresses a cross-phase handoff problem — information gaps, stale references, or missing context that would cause a downstream phase to fail or produce incorrect output.─────────────────────────────────────────────────Assistant
Now let me apply all the fixes. I'll start with the ones that can be done in parallel — edits to different files.
Issue #1: Fix
config.goreference in implementer.md Step 3Assistant
Now applying all edits. I'll do edits to different files in parallel.
Assistant
Good — 5 of 7 fixes done. Now Issues #3 and #6 both modify the one-pager template in
researcher.md. Let me apply them sequentially.Issue #3: Add Static Checks section to one-pager template
Assistant
Issue #6: Add EventType reference after the hook mapping table
Now I need to find the exact valid EventType values. Let me check
agent-guide.mdto see what the researcher would have learned.Assistant
Now I have the exact event types. Let me also check what
agent-guide.mdlists, since the researcher reads that file (notevent.go).Assistant
Good — the event types are documented in
agent-guide.md. Now apply the EventType reference to the one-pager template.Assistant
All 7 fixes applied. Now let me run the verification checks from the plan.
Assistant
Verification checks 1 and 2 pass. Now let me do the remaining verification — spot-check the key sections in each modified file.
Assistant
All 6 verification checks pass. Let me mark all tasks as completed.
Assistant
All 7 issues fixed and verified. Here's the summary:
★ Insight ─────────────────────────────────────Cross-phase consistency is the key challenge in multi-agent skill pipelines. When Phase 1 (researcher) is told "do NOT readevent.go", asking it to assess "Event struct field coverage" in Phase 4 creates an impossible requirement. Each phase's outputs must be self-contained for downstream phases to work correctly. The Static Checks table and EventType reference list both serve this purpose — capturing ephemeral knowledge in a persistent artifact so later phases don't need to re-derive it.─────────────────────────────────────────────────Summary
- User
Files to Modify
.claude/skills/agent-integration/researcher.md— Issues #2, #3, #6.claude/skills/agent-integration/test-writer.md— Issue #5.claude/skills/agent-integration/implementer.md— Issues #1, #4.claude/skills/agent-integration/SKILL.md— Issue #7
Verification
After applying fixes:
- Grep for
config.go— should not appear in any skill file - Grep for
Field coverage— should not appear in researcher.md - Read researcher.md one-pager template — should have Static Checks section and EventType reference
- Read implementer.md Step 13 — should be verification-only, not re-registration
- Read test-writer.md Step 1 — should have priority note
- Read SKILL.md — should mention AGENT.md lifecycle after Phase 3
If you need specific details from before exiting plan mode (like exact code snippets, error messages, or content you generated), read the full transcript at: /Users/alisha/.claude/projects/-Users-alisha-Projects-wt-kiro-oneshot/46c073e8-9109-4faf-bd0b-fe9c0209ac96.jsonl
- User
- User
Assistant
Let me verify each finding against the actual source code. I'll read the referenced files in parallel.
Assistant
Now let me check the remaining references — the SKILL.md, researcher.md, test-writer.md, and the Gemini agent for the slug mismatch finding.
Assistant
Let me also check the existing agent registrations and the Gemini internal package for the slug comparison.
Assistant
Now let me read the existing plan file and then write the verified findings.
Assistant
Good, I have everything I need. Now let me write the verification results and plan.
Assistant
All 5 findings verified against source code. Here's the summary:
# Finding Verdict Key Evidence 1 Stale method names in implementer.md CONFIRMED HIGH Step 3 missing 4 Agent methods; Steps 5/test use 3 wrong TranscriptAnalyzer names + miss 1 2 Mixed hook/event names CONFIRMED HIGH Stop,UserPromptSubmit,SubagentTaskStartare Claude hook verbs, not EventTypes3 AGENT_SLUG ambiguity CONFIRMED MEDIUM Gemini has 3 distinct identifiers: geminicli(pkg),gemini(registry),gemini-cli(E2E)4 Hook-only scope undeclared CONFIRMED MEDIUM FileWatcherinterface exists at agent.go:111 but skill never mentions it5 Checklist reference conflict CONFIRMED LOW SKILL.md:31 lists it, researcher.md:11 forbids reading it Assistant
Good point — the root cause of most drift is hardcoding names/methods that change. Let me update the plan to use "read from source" patterns instead.
Assistant
Now update the verification section to match.
Assistant
The plan now follows a consistent principle: reference source files, don't hardcode names. Every fix replaces a specific list that can drift with a pointer to the authoritative source (
agent.go,event.go,registry.go, existing agent implementations).Key changes from the original findings' suggestions:
- Fix 1-2: Instead of replacing wrong method names with correct ones (which also drift), we remove the lists entirely and say "read from
agent.go" - Fix 2 (events): Instead of swapping
Stop→TurnEnd, we say "useEventTypeconstants fromevent.go" with a note about native vs normalized naming - Fix 3 (params): Instead of hardcoding example values, the table says "check existing patterns in
registry.go" - Fix 4 (scope): References interface names from
agent.gorather than listing agent examples
- Fix 1-2: Instead of replacing wrong method names with correct ones (which also drift), we remove the lists entirely and say "read from
- User
[Request interrupted by user for tool use]