fix: canonicalize doc paths and fix stale/hardcoded references - #70
Conversation
Move all framework reference documentation and document templates from .opencode/docs/ to docs/framework/ to align with the canonical project structure defined in AGENTS.md. This adds 54 files: 16 reference docs (director-gates, technical-preferences, agent-roster, coding-standards, coordination-rules, etc.) and 38 document templates (GDDs, ADRs, specs, etc.).
Replace every reference to the old .opencode/docs/ path with docs/framework/ across all skills, agent definitions, and config files. This affects 145 files across: - .agents/skills/ (all skill SKILL.md files) - .agents/modules/ (module skill and agent definitions) - .opencode/modules/ (module copies) - AGENTS.md (project configuration) - Supporting docs (UPGRADING.md, docs/AGENTS.md, etc.) Each reference now points to the canonical docs/framework/ location consistent with the AGENTS.md project structure.
Delete the old framework docs location after all references have been migrated to docs/framework/. This removes 54 files that are now at docs/framework/: - 16 reference docs (director-gates, technical-preferences, etc.) - 38 document templates (GDDs, ADRs, specs, etc.)
Replace all instructions referencing CLAUDE.md (the Claude Code project config) with AGENTS.md (the actual project config). The project has no CLAUDE.md file — AGENTS.md is the canonical configuration. 33 files updated across skills, agent definitions, and module copies.
Update setup-engine skill and unity specialist agents to reference both opencode.json and pi.json for MCP configuration. Fix stale .claude/ paths in workflow-catalog.yaml. Changes: - setup-engine: godot-mcp section now shows pi.json alongside opencode.json - setup-engine: unity-mcp section now shows pi.json alongside opencode.json - 5 unity specialist agents: opencode.json ref → harness-agnostic - 3 workflow-catalog.yaml copies: .claude/docs/ → docs/framework/ - automated-smoke-test: pi.json mention added
|
Now I have a thorough understanding of the PR. Here's my review: PR Review:
|
- Update docs/framework/directory-structure.md: CLAUDE.md → AGENTS.md - Update docs/framework/quick-start.md: CLAUDE.md → AGENTS.md - Update .opencode/plugins/tests/test-validate-skill-change.mjs: - Regex now matches both .agents/ (canonical) and .opencode/ (backward compat) - Test data uses .agents/ paths with .opencode/ legacy coverage
PR Review:
|
| Concern | Status |
|---|---|
.opencode/{agents,skills,commands} copies vs symlinks |
✅ Already symlinks — not copies |
directory-structure.md references CLAUDE.md |
✅ Already shows AGENTS.md (verified) |
quick-start.md references CLAUDE.md |
✅ Already shows AGENTS.md (line 216) |
Plugin test references .opencode/skills/ |
✅ Intentional backward compat — function explicitly supports old paths for migration period |
Remaining CLAUDE.md refs (all intentional)
- README.md (lines 73-78, 170-175) — migration comparison table
docs/superpowers/plans/&docs/superpowers/specs/— historical design docs discussing.claude/as a future-harness pattern
What's clean
- Zero stale
CLAUDE.mdin.agents/skills, agents, or modules - Zero stale
.opencode/docs/references - Zero stale
.opencode/agents/or.opencode/skills/refs in agent/skill files - AGENTS.md project structure correctly shows
docs/framework/and.opencode/symlinks docs/framework/directory-structure.mdandquick-start.mdreflect current layoutautomated-smoke-testskill updated with Pi harness awareness
Minor observation
The docs/superpowers/ .claude/ references (9 occurrences) are in design/spec documents for Pi agent support. They're forward-looking ("future harness"), not stale — but worth a cleanup pass if those docs ever graduate from spec to implementation. Not a blocker.


Summary
Moves framework reference docs from
.opencode/docs/todocs/framework/and fixes stale/hardcoded path references across the OCGS framework.Changes
1. Framework docs relocated
.opencode/docs/→docs/framework/— 54 files (16 reference docs + 38 templates). UpdatesAGENTS.mdproject structure to document the directory.2. Stale path fixes
.opencode/{agents,skills,commands}/→.agents/: 21 files pointed at symlinked paths instead of canonical.agents/.claude/docs/→docs/framework/: 3 workflow-catalog.yaml copies still referenced the original Claude Code path3. Pi harness awareness
pi.jsonalongsideopencode.jsonautomated-smoke-testskill updatedValidation
.claude/,CLAUDE.md,.opencode/agents/, or.opencode/skills/references remain (excluding intentional comparisons in README and historical docs)