Windsurf rules
.windsurf/rules/survey-context.mdPer-task context bootstrap — reads existing specs/ and tech-architecture docs to map the current lifecycle phase and suggest the next skill. Use at the start of any task, when returning after a break, or when unsure what to do next. For deriving a tech-stack doc from scratch, use map-codebase first.
Windsurf rules
Quality
78/100
Scores the file, not the repository.Length
717 words
14 headings · 3 code blocksRepository
114
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Survey Context89Read the project's current state and give a phase map + next-skill recommendation. This is the "where am I?" skill — run it at the start of every task.1011> **Use this vs map-codebase:** `survey-context` consumes existing specs and docs (fast; does not re-derive). `map-codebase` builds the tech-stack doc from scratch by scanning the codebase. Run `map-codebase` when `specs/tech-architecture/tech-stack.md` doesn't exist yet; run `survey-context` when it does.1213> **HARD GATE** — Read specs/ files before suggesting next steps. If state.yaml is stale or contradicts the codebase, request clarification rather than assuming intent.1415Orchestrate-project 6 phases: Phase 1 Discover - Phase 2 Elaborate - Phase 3 Plan - Phase 4 Build - Phase 5 Verify - Phase 6 Release1617## Process1819> **Timing:** `bash scripts/bp-timing.sh start survey-context` at invocation; `bash scripts/bp-timing.sh end survey-context` before handoff.2021### 1. Read CONVENTIONS.md2223If `CONVENTIONS.md` exists at the project root, read it first. It contains the rules all agents must follow in this project.2425### 2. Read specs/ (YAML-first)2627Scan the `specs/` directory if it exists:2829```30specs/31├── state.yaml → session: active_flow, epic, git, handoff32├── release-plan.yaml → target version, WSJF epic index33├── execution-status.yaml → flat story/epic status34├── planning-status.yaml → discover-phase checklist (optional)35├── requirements/36│ ├── VISION_LATEST.yaml37│ ├── SCOPE_LATEST.yaml38│ └── GLOSSARY_LATEST.yaml39├── plans/ → TECH_STACK, TEST_PLAN, etc.40├── epics/ → eNN shards (flat yaml or eNN/stories/)41└── bugs/ → BUG-*.md + registry.yaml42```4344For each YAML file found, note: exists? keys populated? `handoff.next_skill`?4546Legacy markdown (`specs/archive/STATE.md`, `RELEASE-PLAN.md`) is **not** SoT if YAML exists.4748→ verify: `bash scripts/validate-specs-yaml.sh`4950### 3. Read CLAUDE.md5152If `CLAUDE.md` exists at the project root, read it for project context (stack, commands, architecture, conventions).5354### 4. Check git state5556```bash57git status --short58git log --oneline -559git branch --show-current60```6162Note: is there a feature branch active? Are there uncommitted changes? Do they match `specs/state.yaml` `git` block?6364### 5. Map the lifecycle phase6566Based on what you've found, identify which PMBOK phase this project is currently in:6768| Phase | Signals |69|-------|---------|70| **Discover** | No `requirements/SCOPE_LATEST.yaml` yet, or only rough notes |71| **Design** | SCOPE exists but no `release-plan.yaml` |72| **Plan** | `release-plan.yaml` exists; on `main`/`master` branch |73| **Initiate** | On a feature branch; no code changes yet |74| **Execute** | `state.yaml` `active_flow: build_epic`; epic capsule in progress |75| **Verify** | Implementation done; run `verify-work` or `run-evals` |76| **Bug** | `state.yaml` `active_flow: fix_bug` or open `specs/bugs/BUG-*.md` |77| **Review** | All code written; no PR yet |78| **Integrate** | PR open; tests passing |79| **Sustain** | Ongoing; no active task |8081Prefer `specs/state.yaml` `active_flow` and `handoff.next_skill` when present.8283### 6. Suggest next skill8485Based on the phase and state, recommend the most useful next step:8687- **If in Plan/Bug phase and on `main`**: Suggest `kickoff-branch` next.88- **If in Initiate phase**: Suggest `develop-tdd` or `execute-plan` or `ship-epic`.89- **If in Execute phase**: Suggest `ship-epic` (resume) or `develop-tdd` for `active_story_id`.90- **If in Verify phase**: Suggest `verify-work` (UAT) or `run-evals`.9192Example:93```94Phase: Execute95Active branch: feat/e02-verify (state.yaml matches)96release-plan.yaml: v3.0.0, 10 epics97active_epic_id: e029899Suggested next: ship-epic (resume e02s01 at develop-tdd)100```101102Be specific — name the exact skill and why. If multiple options exist, list them in priority order.103104### 7. Surface blockers105106If something looks wrong:107- Broken tests in the baseline108- Open `specs/bugs/BUG-*.md` with no active fix branch109- Epic shards missing `verify:` on tasks110- `validate-specs-yaml.sh` fails111- Git hash in `state.yaml` stale vs `git rev-parse`112113Report blockers first, before recommendations.114115### 8. Record story start timestamp116117At story start, write `metrics.story_start` with the current ISO 8601 timestamp to `specs/state.yaml` as an **informational progress marker only** — not a measurement input. Cycle-time metrics are now derived from git commit history via `scripts/record-cycle-time.sh` (see `skills/release-branch/REFERENCE.md` §Cycle-time recording).118119## Utility outputs120121### list-epics (absorbed)122123Loop through all `specs/epics/*/epic.yaml` files and print a summary of story counts per epic. Useful for understanding overall project scope and epic distribution.124125### check-gates (absorbed)126127Print the current `active_flow` from `specs/state.yaml`, run `bash scripts/validate-specs-yaml.sh` to verify YAML integrity, and show `git status` to report uncommitted changes and branch state. Use before handoffs or context transitions.128129## Handoff130131Gate: READY -> next: plan-work132Writes: state.yaml handoff.next_skill = plan-work133134135<!-- story: e03s03 -->136
Also in danielvm-git/bigpowers
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| danielvm-git/bigpowers.cursor/rules/align-grid.mdc · 114 | Cursor rules | lint-formatdo-notagent-behaviour | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/assess-impact.mdc · 114 | Cursor rules | testtesting-strategydeployment | 66/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/audit-code.mdc · 114 | Cursor rules | setuptestlint-formatstyle+4 | 66/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/audit-plan.mdc · 114 | Cursor rules | buildteststylegit | 74/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/build-epic.mdc · 114 | Cursor rules | buildgit | 58/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/change-request.mdc · 114 | Cursor rules | no sections | 48/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/commit-message.mdc · 114 | Cursor rules | lint-formatstyletypesgit+3 | 82/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/compose-workflow.mdc · 114 | Cursor rules | styledo-notagent-behaviour | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/context7-mcp.mdc · 114 | Cursor rules | style | 54/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/craft-skill.mdc · 114 | Cursor rules | stylearchgitdo-not | 69/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/deepen-architecture.mdc · 114 | Cursor rules | testtesting-strategydo-not | 57/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/define-language.mdc · 114 | Cursor rules | lint-formatdo-not | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/define-success.mdc · 114 | Cursor rules | no sections | 4/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/delegate-task.mdc · 114 | Cursor rules | git | 62/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/deploy.mdc · 114 | Cursor rules | setupbuildtestdeployment | 77/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/design-interface.mdc · 114 | Cursor rules | styleagent-behaviour | 58/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/develop-tdd.mdc · 114 | Cursor rules | teststylearchtesting-strategy+5 | 85/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/diagnose-root.mdc · 114 | Cursor rules | no sections | 39/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/diagnose-stall.mdc · 114 | Cursor rules | no sections | 44/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/dispatch-agents.mdc · 114 | Cursor rules | git | 54/100 | 3 days ago |
Diff against .cursor/rules/align-grid.mdc Diff against .cursor/rules/assess-impact.mdc Diff against .cursor/rules/audit-code.mdc Diff against .cursor/rules/audit-plan.mdc Diff against .cursor/rules/build-epic.mdc Diff against .cursor/rules/change-request.mdc Diff against .cursor/rules/commit-message.mdc Diff against .cursor/rules/compose-workflow.mdc Diff against .cursor/rules/context7-mcp.mdc Diff against .cursor/rules/craft-skill.mdc Diff against .cursor/rules/deepen-architecture.mdc Diff against .cursor/rules/define-language.mdc Diff against .cursor/rules/define-success.mdc Diff against .cursor/rules/delegate-task.mdc Diff against .cursor/rules/deploy.mdc Diff against .cursor/rules/design-interface.mdc Diff against .cursor/rules/develop-tdd.mdc Diff against .cursor/rules/diagnose-root.mdc Diff against .cursor/rules/diagnose-stall.mdc Diff against .cursor/rules/dispatch-agents.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| danielvm-git/bigpowers.windsurf/rules/organize-workspace.md · 114 | Windsurf rules | buildstylegitdeployment+2 | 89/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/guard-git.md · 114 | Windsurf rules | stylearchgitsecurity+2 | 89/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/quick-fix.md · 114 | Windsurf rules | teststylegitdeployment+1 | 85/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/develop-tdd.md · 114 | Windsurf rules | teststylearchtesting-strategy+5 | 85/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/session-state.md · 114 | Windsurf rules | lint-formatstyleagent-behaviour | 82/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/commit-message.md · 114 | Windsurf rules | lint-formatstyletypesgit+3 | 82/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/extract-design.md · 114 | Windsurf rules | lint-formatstyledependenciesui | 82/100 | 3 days ago | |
| danielvm-git/bigpowers.windsurf/rules/setup-environment.md · 114 | Windsurf rules | setupstylesecuritydo-not+1 | 81/100 | 3 days ago |
