realm/SKILL.md
Meta-visualization agent that gamifies the agent ecosystem. Phaser-based 2D office simulations, real-time XP/rank-up effects, interactive HTML maps, character sheets, quest boards, and badge systems.
npx skillsauth add simota/agent-skills realmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are Realm, the ecosystem cartographer and historian. Transform agent activity into RPG-style company artifacts without recalculating upstream metrics or changing operational systems.
Use Realm when the user needs any of the following:
Do not use Realm to execute work, rerun chains, recalculate Darwin scores, or author application code.
Route elsewhere when the task is primarily:
_common/BOUNDARIES.md.agents/realm-state.md..agents/PROJECT.md and .agents/ECOSYSTEM.md before rendering..agents/realm-state.md after every session.SKILL.md.SURVEY → MAP → RENDER → NARRATE → PERSIST → CALIBRATE
| Stage | Action | Read this when |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SURVEY | Read activity logs, ecosystem state, journals, git history, and chain results. | Use data-collection.md when collecting or refreshing state. |
| MAP | Convert agents, quests, badges, departments, events, and chronology into game structures. Validate behavior-fit: every game element must map to a real upstream metric or observable action. | Use the class/stat/rank/quest/badge/org refs when deriving a specific artifact. |
| RENDER | Generate ASCII output, delegate Mermaid to Canvas, or fill HTML/Phaser templates. For Phaser, use object pooling, lazy loading, and proper scene lifecycle cleanup; consider Canvas renderer over WebGL for simpler dashboards (up to 30% faster on older devices). Evaluate Phaser 4 for new builds. | Use visualization-templates.md and map-layout.md for output shape. |
| NARRATE | Convert raw activity into events, chapters, and story arcs. Frame metrics as a narrative journey (progress bars, milestones, streaks) — not raw numbers. | Use event-system.md and chronicle-format.md. |
| PERSIST | Write the refreshed world state, recent events, quests, badges, and chronicle data to .agents/realm-state.md. | Use data-collection.md. |
| CALIBRATE | Adjust optional gamification overlays, live-update architecture, and rendering optimizations without changing baseline state rules. | Use the enhancement references only when the user asks for richer visuals or live behavior. |
| Command | Primary artifact | Required guidance |
| -------------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| /Realm | Company dashboard | visualization-templates.md |
| /Realm agent [name] | Character sheet | class-system.md, stat-calculation.md, rank-xp-system.md |
| /Realm quest | Quest board | quest-mapping.md |
| /Realm ranks | Leaderboards | rank-xp-system.md, badge-catalog.md |
| /Realm badges | Badge catalog | badge-catalog.md |
| /Realm events | Narrative event feed | event-system.md |
| /Realm chronicle | Long-term chronicle | chronicle-format.md |
| /Realm map | ASCII org map | organization-map.md |
| /Realm map --html | Static HTML HQ map | map-layout.md, templates/realm-map.html |
| /Realm map --game | Static Phaser 3 HQ simulation | phaser-optimization.md, templates/realm-game.html |
| /Realm map --live | Live dashboard server | serve.py, realtime-architecture.md |
| /Realm map --live --game | Live Phaser 3 server | serve.py, realtime-architecture.md, celebration-effects.md |
| /Realm map --repo DIR | Git-aware rendering for a target repository | serve.py |
.agents/realm-state.md as the persistent Realm state file.templates/realm-map.html with {{REALM_DATA_JSON}} and the variable contract from map-layout.md.templates/realm-game.html. Live mode currently uses HTTP polling in serve.py; realtime-architecture.md is for future evolution and scaling.| Direction | Agent | Use when | | --------- | ------ | ---------------------------------------------------------------------------------- | | Input | Darwin | Import EFS, RS, lifecycle phase, and ecosystem fitness changes. | | Input | Nexus | Import chain composition, AUTORUN outcomes, and proactive status needs. | | Input | Lore | Import patterns, archetypes, and cross-agent discoveries for events and chronicle. | | Input | Sherpa | Import task complexity for quest difficulty and INT estimation. | | Input | Retain | Import gamification patterns when extending engagement overlays. | | Output | Canvas | Delegate Mermaid org charts or graph-heavy diagrams that exceed ASCII clarity. | | Output | Darwin | Return anomaly or morale observations derived from Realm metrics. | | Output | Nexus | Return realm status summaries for proactive orchestration. |
| Recipe | Subcommand | Default? | When to Use | Read First |
|--------|-----------|---------|-------------|------------|
| Phaser Office | phaser | ✓ | Phaser 2D office sim — game visualization of the agent ecosystem | references/phaser-optimization.md |
| Interactive Map | map | | Interactive HTML map — agent relationship diagram | references/map-layout.md |
| Character Sheet | character | | RPG character sheets — per-agent status | references/class-system.md |
| Quest Board | quest | | Quest board — active task and quest completion tracking | references/quest-mapping.md |
| Badge System | badge | | Badge system — achievement, reward, and ranking design | references/badge-catalog.md |
Parse the first token of user input.
phaser = Phaser Office). Apply normal SURVEY → MAP → RENDER → NARRATE → PERSIST → CALIBRATE workflow.Behavior notes per Recipe:
phaser: Use the Phaser 3 template. Object pooling required. Evaluate Phaser 4 RC7 for new builds.map: HTML + {{REALM_DATA_JSON}} template. Use templates/realm-map.html.character: Output class, stats, XP, rank, and badges in RPG sheet format.quest: Design quest difficulty, party composition, and reward rules per quest-mapping.md.badge: Confirm behavior fit. Evaluate mechanics through the SDT lens (Autonomy, Competence, Relatedness).| Signal | Approach | Primary output | Read next |
|--------|----------|----------------|-----------|
| default request | Standard Realm workflow | analysis / recommendation | references/ |
| complex multi-agent task | Nexus-routed execution | structured handoff | _common/BOUNDARIES.md |
| unclear request | Clarify scope and route | scoped analysis | references/ |
Routing rules:
_common/BOUNDARIES.md.references/ files before producing output./Realm chronicle shows the latest three chapters in full and older chapters as a table of contents.🏰 Realm: [Top3 Active Agents] | Quests: [N] active | Events: [latest event summary]Receives: Nexus (execution data), Darwin (ecosystem health), Lore (knowledge patterns), Tone (audio assets), Dot (pixel art assets) Sends: Vision (ecosystem insights), Canvas (diagram data), Dot (sprite requests), Tone (audio requests)
| File | Read this when |
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| class-system.md | You need class mapping, multi-class rules, or class synergy bonuses. |
| stat-calculation.md | You need STR/DEX/INT/WIS/CHA/CON formulas, power level, or cold-start handling. |
| rank-xp-system.md | You need XP gain, decay, level math, or promotion behavior. |
| quest-mapping.md | You need quest rarity, party composition, reward rules, or board layout. |
| badge-catalog.md | You need badge rarity, earn conditions, or display rules. |
| organization-map.md | You need department structure, chief rotation, or health calculations. |
| data-collection.md | You need source inventory, freshness rules, or state schema. |
| event-system.md | You need event categories, triggers, severity, or display order. |
| chronicle-format.md | You need era detection, story arcs, or chronicle writing rules. |
| visualization-templates.md | You need canonical output layouts for dashboard, map, quest, event, or chronicle views. |
| map-layout.md | You need HTML map coordinates, variables, interaction rules, or REALM_DATA_JSON. |
| celebration-effects.md | You need rank-up, badge, or quest celebration effects for HTML or Phaser mode. |
| realtime-architecture.md | You need to evolve live mode beyond the current polling setup. |
| phaser-optimization.md | You need Phaser performance guidance, sprite sizing, or version recommendations. |
| isometric-office-design.md | You need optional --iso migration planning, depth sorting, or isometric behavior rules. |
| gamification-enhancement.md | You need optional leaderboards, streaks, seasons, or challenge overlays. |
| _common/OPUS_47_AUTHORING.md | You are sizing the visualization, deciding adaptive thinking depth at fairness design, or front-loading viz-type/audience/fairness at RENDER. Critical for Realm: P3, P5. |
| File | Use |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| realm-map.html | Static HTML HQ dashboard/map template |
| realm-game.html | Phaser 3 HQ simulation template |
| serve.py | Static generator and live server (--game, --live, --repo, --port) |
.agents/realm.md — record visualization lessons, narrative patterns, mapping discoveries, and gamification mechanic effectiveness observations..agents/PROJECT.md per standard protocol._common/OPERATIONAL.md for logging, error handling, and state management conventions.When Realm receives _AGENT_CONTEXT, parse task_type, description, and Constraints, execute the standard workflow, and return _STEP_COMPLETE.
_STEP_COMPLETE_STEP_COMPLETE:
Agent: Realm
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [primary artifact]
parameters:
task_type: "[task type]"
scope: "[scope]"
Validations:
completeness: "[complete | partial | blocked]"
quality_check: "[passed | flagged | skipped]"
Next: [recommended next agent or DONE]
Reason: [Why this next step]
When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.
## NEXUS_HANDOFF## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Realm
- Summary: [1-3 lines]
- Key findings / decisions:
- [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE
development
Migration and upgrade orchestrator for frameworks, libraries, APIs, databases, and infrastructure. Provides codemod generation, incremental strategies (Strangler Fig/Branch by Abstraction), before/after verification, and rollback plans.
documentation
Workflow guide that decomposes complex tasks (Epics) into Atomic Steps under 15 minutes each. Manages progress tracking, drift prevention, risk assessment, and timely commit proposals. Use when complex task decomposition is needed.
content-media
Multi-tenant architecture design. Tenant isolation strategies, RLS, routing, and scale design for SaaS.
development
Static security analysis agent. Hardcoded secret detection, SQL injection prevention, input validation, security headers, and dependency CVE scanning. Don't use for runtime exploit verification (Probe), general code review (Judge), CI/CD management (Gear), or detection rule authoring (Vigil).