td-776a5e

Add rc-context submodule to product-toolkit

closed task P2 Parent: td-4b0aa3
Created Mar 5, 2026 6:40 AM Updated Mar 12, 2026 12:49 PM Closed Mar 5, 2026 6:43 AM
Description
product-toolkit references rc-context in 7+ files (shape.py orchestrator, CLAUDE.md, onboarding skills) but has no submodule or symlink. shape.py resolves TOOLKIT_ROOT.parent / "context" / "rc-context" which only works when invoked from the referralcandy workspace. Fix: add rc-context as a git submodule in product-toolkit (same pattern as referralcandy). Update shape.py path resolution to check local submodule first. Files to change: - product-toolkit/.gitmodules (new) - product-toolkit/context/rc-context (submodule add) - product-toolkit/orchestrators/shape.py (update RC_CONTEXT_DIR resolution) - Verify onboarding-pulse and onboarding-analysis SKILL.md paths still resolve Remote: https://github.com/Anafore/rc-context.git
Handoff
Done
Session Log (5 entries)
Mar 5, 6:41 AM
lg-b91ce82b ses_176273
progress
Started work
Mar 5, 6:43 AM
lg-57be3f5e ses_176273
progress
Added rc-context submodule at context/rc-context in product-toolkit. Updated shape.py build_rc_context() to check local submodule first (TOOLKIT_ROOT/context/rc-context), then cross-workspace, then bare fallback. All 5 skill references already use context/rc-context/ relative paths — verified they resolve. Commit bdbc177.
Mar 5, 6:43 AM
lg-004f62df ses_176273
progress
Submitted for review
Mar 5, 9:41 AM
lg-3ce11860 ses_176273
progress
Revised approach: submodule stays as default, added context.yaml override for users with rc-context elsewhere. shape.py resolution: context.yaml path → context/rc-context/ submodule → empty. Removed old cross-workspace hardcoded paths and unused RC_CONTEXT_DIR constant. context.yaml is gitignored, context.yaml.example checked in. Commits: bdbc177 (submodule), 60a8ee3 (configurable path).
Thursday, March 12, 2026
Mar 12, 12:49 PM
lg-ff0f352e ses_6be972
progress
Approved. rc-context submodule added to product-toolkit, shape.py updated with local-first resolution. Commit bdbc177.
Git State
Started ba475ad (master) Current ba475ad (master)
Sessions Involved