From 87177ad97d271aa234cde6c488041225df79030b Mon Sep 17 00:00:00 2001 From: Jonas H Date: Thu, 2 Apr 2026 20:01:07 +0200 Subject: [PATCH] intent based architecture --- .pi/skills/intent-based-architecture/SKILL.md | 15 +++++++++++++++ .pi/skills/self-gating-systems/SKILL.md | 10 ---------- ...ng-systems.md => intent-based-architecture.md} | 0 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .pi/skills/intent-based-architecture/SKILL.md delete mode 100644 .pi/skills/self-gating-systems/SKILL.md rename docs/{self-gating-systems.md => intent-based-architecture.md} (100%) diff --git a/.pi/skills/intent-based-architecture/SKILL.md b/.pi/skills/intent-based-architecture/SKILL.md new file mode 100644 index 0000000..0f452c3 --- /dev/null +++ b/.pi/skills/intent-based-architecture/SKILL.md @@ -0,0 +1,15 @@ +--- +name: intent-based-architecture +description: Intent-based architecture patterns for the snow_trail_sdl game engine. Load when adding cross-system communication, new systems to the main loop, changing game mode logic (editor/dialog/gameplay), or working with camera, input, or mode-switching. Systems communicate through typed intent queues — no direct cross-system function calls. +--- + +# Intent-Based Architecture Skill + +Read the architecture document at `docs/intent-based-architecture.md` (resolve relative to the project root `/home/jonas/projects/snow_trail_sdl/`) and follow its patterns when: + +- Adding cross-system communication (use intents, not direct function calls) +- Adding new systems to the main loop +- Changing how game modes work (editor, dialog, gameplay) +- Working with camera, input, or mode-switching logic + +Key rule: **systems communicate through typed intent data in shared queues** — producers insert intents, consumers process and remove them. No system calls another system's functions directly. diff --git a/.pi/skills/self-gating-systems/SKILL.md b/.pi/skills/self-gating-systems/SKILL.md deleted file mode 100644 index 7cbb6fe..0000000 --- a/.pi/skills/self-gating-systems/SKILL.md +++ /dev/null @@ -1,10 +0,0 @@ -# Intent-Based Architecture Skill - -Read the architecture document at `docs/self-gating-systems.md` (resolve relative to the project root `/home/jonas/projects/snow_trail_sdl/`) and follow its patterns when: - -- Adding cross-system communication (use intents, not direct function calls) -- Adding new systems to the main loop -- Changing how game modes work (editor, dialog, gameplay) -- Working with camera, input, or mode-switching logic - -Key rule: **systems communicate through typed intent data in shared queues** — producers insert intents, consumers process and remove them. No system calls another system's functions directly. diff --git a/docs/self-gating-systems.md b/docs/intent-based-architecture.md similarity index 100% rename from docs/self-gating-systems.md rename to docs/intent-based-architecture.md