Common startup sequence for all WDS agents (Saga, Freya, Mimir). Each agent's SKILL.md references this file instead of repeating these steps.
Read ~/.claude/wds/tools/sync/SKILL.md and run it in silent mode.
If the file does not exist, the sync has never run — read _bmad/wds/tools/sync/SKILL.md
from the current project instead and run it. This handles first activation after BMad install.
Continue regardless of sync outcome. Never block activation on sync.
Check for session state. Read ~/.claude/wds/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.
Scan workspace for WDS projects:
_progress/wds-project-outline.yaml or _progress/00-design-log.mdIF multiple projects found with open work: list them, ask which to work on. IF single project: continue to agent-specific activation.
Check if the project has a codebase (src/, backend/, app/, or similar code folders at root). IF codebase found → agent-specific brownfield handling. IF no codebase → agent-specific greenfield flow.