fix: correct hero:theme protocol and establish single source of truth #62

Merged
mik-tf merged 1 commit from development_theme_sync_protocol into development 2026-03-19 14:43:15 +00:00
Owner

Summary

  • Fixed wrong postMessage type in hero_ui_dashboard skill (hero-os-themehero:theme)
  • Added complete hero:theme iframe sync protocol to web_embed skill (message format, canonical receiver snippet, CSS variable mapping, standalone fallback)
  • Removed duplicated protocol code from hero_ui_dashboard, replaced with reference to web_embed
  • Added web_embed to hero_ui_dashboard related skills

Closes #59
Related: lhumina_code/hero_aibroker#17

Test plan

  • Verify web_embed skill triggers correctly when working on iframe embedding
  • Verify hero_ui_dashboard skill references web_embed for theme protocol
  • Confirm protocol matches production repos (hero_redis, hero_foundry_ui, hero_aibroker)
## Summary - Fixed wrong postMessage type in `hero_ui_dashboard` skill (`hero-os-theme` → `hero:theme`) - Added complete `hero:theme` iframe sync protocol to `web_embed` skill (message format, canonical receiver snippet, CSS variable mapping, standalone fallback) - Removed duplicated protocol code from `hero_ui_dashboard`, replaced with reference to `web_embed` - Added `web_embed` to `hero_ui_dashboard` related skills Closes #59 Related: https://forge.ourworld.tf/lhumina_code/hero_aibroker/issues/17 ## Test plan - [x] Verify `web_embed` skill triggers correctly when working on iframe embedding - [x] Verify `hero_ui_dashboard` skill references `web_embed` for theme protocol - [x] Confirm protocol matches production repos (hero_redis, hero_foundry_ui, hero_aibroker)
The hero_ui_dashboard skill had the wrong postMessage type (hero-os-theme
instead of hero:theme) and was missing the vars/CSS variable injection
that all production repos actually use. Moved the canonical theme sync
protocol to web_embed as the single source of truth, and updated
hero_ui_dashboard to reference it instead of duplicating.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mik-tf merged commit cc1286c20a into development 2026-03-19 14:43:15 +00:00
mik-tf deleted branch development_theme_sync_protocol 2026-03-19 14:43:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_skills!62
No description provided.