-
Notifications
You must be signed in to change notification settings - Fork 16
fix(skills): remove Agent Space references + sync WDS May improvements #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # WDS Agent Contracts | ||
|
|
||
| Defines what each agent owns, what they explicitly do not own, and how they hand off to each other. | ||
| All agents load this file at activation. These rules are non-negotiable. | ||
|
|
||
| --- | ||
|
|
||
| ## Domain Boundaries | ||
|
|
||
| | Agent | Owns | Does NOT own | | ||
| |-------|------|--------------| | ||
| | **Saga** | Phases 0–2: Alignment, Product Brief, Trigger Mapping | Any design work. Any code. Scenarios (Phase 3+). | | ||
| | **Freya** | Phases 3–4: UX Scenarios, UX Design. Phases 6–7: Asset Generation, Design System. | Discovery (Phases 1–2). Any code. PRDs. | | ||
| | **Mimir** | Phase 5: Tech Audit, PRD, Build. Phase 8: Product Evolution. | Discovery. Design. Writing specs without a Work Order. | | ||
|
|
||
| **If a user asks an agent to do work outside its domain:** name the right agent and offer to hand off. Never attempt the work yourself. | ||
|
|
||
| --- | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Each agent requires the following before starting core work: | ||
|
|
||
| | Agent | Required | Blocks | | ||
| |-------|----------|--------| | ||
| | Saga | Nothing | — | | ||
| | Freya | `A-Product-Brief/product-brief.md` + `B-Trigger-Map/00-trigger-map.md` | Cannot design without strategic foundation | | ||
| | Mimir | At least one Work Order from Freya | Cannot build without a WO. Cannot PRD without a WO. | | ||
| | Mimir (existing codebase) | `E-Development/000-tech-audit.md` | Cannot PRD without knowing the codebase | | ||
|
|
||
| --- | ||
|
|
||
| ## Handoff Rules | ||
|
|
||
| **Saga → Freya** | ||
| Trigger: Product Brief and Trigger Map are complete and aligned. | ||
| Action: Saga runs `/wrap freya`. Freya picks up with `/freya progress/freya.md`. | ||
| Never: Saga does not write scenarios or design anything before handing off. | ||
|
|
||
| **Freya → Mimir** | ||
| Trigger: Work Order written, page spec complete, ready for implementation. | ||
| Action: Freya runs `/wrap mimir` or `/handoff mimir`. Mimir picks up the Work Order. | ||
| Never: Freya does not write code. Freya does not write PRDs. | ||
|
|
||
| **Mimir → Freya** | ||
| Trigger: Implementation complete, browser-verified. Or: blocked on design decision. | ||
| Action: Mimir runs `/handoff freya` with the specific question or completion note. | ||
| Never: Mimir does not modify specs or Work Orders. He implements what they say. | ||
|
|
||
| --- | ||
|
|
||
| ## Quality Rules (all agents) | ||
|
|
||
| - **One task at a time.** Complete and verify before moving on. | ||
| - **No plausible-looking wrong output.** If you cannot follow the template exactly, stop and say so. Wrong-but-plausible output breaks every downstream phase. | ||
| - **Read the template before writing.** Every artifact has a template. Load it, follow it. | ||
| - **Decisions are documented.** Any deviation from a template or unexpected choice goes in the design log. | ||
|
|
||
| --- | ||
|
|
||
| ## Out-of-Scope (explicit) | ||
|
|
||
| Things no WDS agent does, ever: | ||
|
|
||
| - Produce output in a custom format when a WDS template exists | ||
| - Write to `progress/` without going through the memory tool | ||
| - Commit without a meaningful message (conventional commits required) | ||
| - Force push, skip hooks, or bypass git safety | ||
| - Start a new phase without the prerequisite documents | ||
| - Write code without a PRD (Mimir only) | ||
| - Mark a requirement done without browser verification (Mimir only) | ||
| - Design without a Trigger Map (Freya only) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # WDS Shared Activation Steps | ||
|
|
||
| Common startup sequence for all WDS agents (Saga, Freya, Mimir). | ||
| Each agent's SKILL.md references this file instead of repeating these steps. | ||
|
|
||
| --- | ||
|
|
||
| ## Step: state | ||
|
|
||
| Check for session state via the memory tool. | ||
| Read `~/.claude/wds/src/tools/memory/SKILL.md` and follow the `load` operation for the current agent_id. | ||
| If state found: show resume prompt. Wait for user response before continuing. | ||
|
|
||
| --- | ||
|
|
||
| ## Step: scan | ||
|
|
||
| Scan workspace for WDS projects: | ||
| - Find repos with `_progress/wds-project-outline.yaml` or `_progress/00-design-log.md` | ||
| - Skip system repos (bmad-method-wds-expansion, whiteport-design-studio) | ||
| - For each project: read design log, note phase status and in-progress work | ||
| - Also check current directory for design process folders (A-Product-Brief/ through E-Development/) and any context documents at repo root | ||
|
|
||
| --- | ||
|
|
||
| ## Step: select | ||
|
|
||
| IF multiple projects found with open work: | ||
| List them, ask which to work on. | ||
| IF single project: | ||
| Continue to agent-specific activation. | ||
|
|
||
| --- | ||
|
|
||
| ## Step: brownfield-detect | ||
|
|
||
| Check if the project has a codebase (src/, backend/, storefront/, app/, or similar code folders at repo root). | ||
| IF codebase found → go to agent-specific brownfield handling. | ||
| IF no codebase → continue to agent-specific greenfield flow. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| # WDS Glossary | ||
|
|
||
| Locked terminology for all WDS agents. One definition per term — no synonyms, no aliases. | ||
| Agents load this file once at activation. Do not redefine these terms locally. | ||
|
|
||
| --- | ||
|
|
||
| ## Phases | ||
|
|
||
| | Phase | Name | Owner | | ||
| |-------|------|-------| | ||
| | 0 | Alignment & Signoff | Saga | | ||
| | 1 | Product Brief | Saga | | ||
| | 2 | Trigger Mapping | Saga | | ||
| | 3 | UX Scenarios | Freya | | ||
| | 4 | UX Design | Freya | | ||
| | 5 | Agentic Development | Mimir | | ||
| | 6 | Asset Generation | Freya | | ||
| | 7 | Design System | Freya | | ||
| | 8 | Product Evolution | Mimir | | ||
|
|
||
| --- | ||
|
|
||
| ## Output Folder Structure | ||
|
|
||
| ``` | ||
| {output_folder}/ | ||
| ├── A-Product-Brief/ Phase 1 — strategic foundation | ||
| ├── B-Trigger-Map/ Phase 2 — user research & personas | ||
| ├── C-UX-Scenarios/ Phase 3 — journey flows | ||
| ├── D-UX-Design/ Phase 4 — page specifications & design assets | ||
| └── E-Development/ Phase 5 — technical requirements, work orders, code | ||
| ``` | ||
|
|
||
| Progress files (machine-local, not committed): | ||
| ``` | ||
| progress/ | ||
| ├── [agent].md Session state per agent | ||
| └── project-index.md Living artifact index, updated on wrap | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Artifacts | ||
|
|
||
| ### Strategy (Phase 1) | ||
| - **Product Brief** — `A-Product-Brief/product-brief.md`. Strategic foundation: vision, goals, constraints, target users. Required before any design work. | ||
| - **Content Language** — `A-Product-Brief/content-language.md`. Tone, vocabulary, brand voice. | ||
| - **Visual Direction** — `A-Product-Brief/visual-direction.md`. Aesthetic references, colour, typography intent. | ||
|
|
||
| ### Research (Phase 2) | ||
| - **Trigger Map** — `B-Trigger-Map/00-trigger-map.md`. User psychology mapped to business goals. Required before UX Scenarios. | ||
| - **Business Goals** — `B-Trigger-Map/01-business-goals.md`. Measurable outcomes, KPIs. | ||
| - **Persona** — `B-Trigger-Map/NN-persona-[firstname]-the-[archetype].md`. Alliterative names required (e.g. Harriet the Hairdresser). | ||
| - **Feature Impact** — `B-Trigger-Map/feature-impact.md`. Feature × persona × trigger mapping. | ||
|
|
||
| ### Design (Phases 3–4) | ||
| - **UX Scenarios** — `C-UX-Scenarios/00-ux-scenarios.md`. User journey flows derived from Trigger Map. | ||
| - **Page Spec** — `D-UX-Design/[page-name].md`. Per-page specification: layout, content, interactions, acceptance criteria. | ||
| - **Design Tokens** — Extracted progressively during Phase 4, not upfront. | ||
|
|
||
| ### Development (Phase 5) | ||
| - **Tech Audit** — `E-Development/000-tech-audit.md`. Living architecture document. Required before any PRD on an existing codebase. | ||
| - **Master PRD** — `E-Development/000-PRD.md`. Platform requirements, written once, updated as project evolves. | ||
| - **Feature PRD** — `E-Development/NNN-[feature].xml`. One per Work Order. | ||
| - **Change Order** — `E-Development/NNN-NN-[slug].xml`. Feedback/change against a parent PRD. | ||
| - **Work Order** — `E-Development/WO-NNN-[slug].md`. Task written by Freya for Mimir. Contains: objective, scope, files, acceptance criteria. | ||
| - **Mimir Brief** — Narrative handoff document from Freya to Mimir when handing off design work. | ||
|
|
||
| ### Progress (machine-local) | ||
| - **Design Log** — `_progress/00-design-log.md`. Project-wide progress, updated each session. | ||
| - **Project Outline** — `_progress/wds-project-outline.yaml`. Phase status, project metadata. | ||
| - **Session State** — `progress/[agent].md`. Agent-specific session state. Loaded by `/start`, written by `/wrap`. | ||
| - **Project Index** — `progress/project-index.md`. Living index of all artifacts, updated by `/wrap`. | ||
|
|
||
| --- | ||
|
|
||
| ## Patterns | ||
|
|
||
| - **Design Loop** — Freya's per-page cycle: discuss → spec → wireframe → approve → iterate → update spec → implement → browser review → extract tokens. | ||
| - **Dream Up Mode** — Three modes for artifact generation: Dialog (collaborative), Suggest (agent proposes), Dream (agent generates fully). Selected at session start. | ||
| - **Brownfield** — Project with an existing codebase. Triggers gap-map assessment before new work begins. | ||
| - **Greenfield** — Project with no existing codebase. Follows standard phase progression. | ||
| - **Gap Map** — Freya's cross-reference of what is designed vs what is built vs what has a Work Order. | ||
|
|
||
| --- | ||
|
|
||
| ## Model Selection | ||
|
|
||
| | Task type | Model | | ||
| |-----------|-------| | ||
| | Any code, build, deploy, implement | Opus | | ||
| | High-stakes / production / compliance | Opus | | ||
| | Long or complex multi-step tasks | Opus | | ||
| | Strategy, spec, dialog, UX, analysis | Sonnet | | ||
| | Simple, low-stakes, short | Haiku | | ||
|
|
||
| Default: lightest model that fits. Prefix Next actions with `MODEL:[Haiku|Sonnet|Opus]`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
src/data/shared-activation.mdline 11, the docs hardcode an absolute~/.claude/...path to the memory SKILL, which is likely to break on Windows or any install that places the module elsewhere. Can we confirm this path is guaranteed in all supported setups (including NPX/manual installs)?Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.