Files
2026-05-11 22:20:28 +08:00

98 lines
3.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: feature-pipeline
description: Dev → autotests → code review → scenario verify → repo verify (все кодовые репо)
---
# Workflow
Контекст: **`AGENTS.md`**, **`WORKSPACE.md`**. Целевой репозиторий задачи: **`dnd_player/`**, **`project-converter/`** или **`DndGamePlayerLicenseServer/`**. В **`pipeline-state.json`** задай **`verify_repo`** под хук **`stop`** (см. **`project.mdc`**); для правок только в **`cursorAi`** — **`verify_repo`: `none`** (пайплайн 4 этапов не обязателен).
Порядок этапов: **`agents-pipeline-order.mdc`**, отчёт: **`pipeline-execution-template.mdc`**, чек-листы: **`.cursor/rules/agent-*.mdc`**.
## Stage 1 — Разработчик
Subagent: **frontend-developer** (`.cursor/agents/frontend-developer.md`)
- реализация, **minimal diff**, паттерны **целевого** репозитория;
- **i18n** — только при работе в **`dnd_player`**; после внедрения — **ru**/**en** (см. `frontend-development-standards.mdc`).
```json
{
"frontend_development": "done",
"ui_autotests": "pending",
"code_review": "pending",
"ui_browser_verification": "pending"
}
```
---
## Stage 2 — Автотесты
Subagent: **ui-test-developer** (`.cursor/agents/ui-test-developer.md`)
- тесты под изменённое поведение, стек **этого** репозитория (`dnd_player`: `npm run test`; остальные — по `package.json` или добавить в задаче).
```json
{
"frontend_development": "done",
"ui_autotests": "done",
"code_review": "pending",
"ui_browser_verification": "pending"
}
```
---
## Stage 3 — Ревью кода
Subagent: **code-reviewer** (`.cursor/agents/code-reviewer.md`)
```json
{
"frontend_development": "done",
"ui_autotests": "done",
"code_review": "done",
"ui_browser_verification": "pending"
}
```
---
## Stage 4 — Верификация сценариев
Subagent: **ui-tester** (`.cursor/agents/ui-tester.md`)
- **`dnd_player`**, **`project-converter`**: Electron / браузер по сценарию;
- **`DndGamePlayerLicenseServer`**: HTTP-сценарии к запущенному сервису;
- отчёт: **`pipeline-execution-template.mdc`**.
```json
{
"frontend_development": "done",
"ui_autotests": "done",
"code_review": "done",
"ui_browser_verification": "done"
}
```
---
## Stage 5 — Verify (команды целевого репо)
Выполни **все** проверки из **`package.json`** репозитория задачи до **green**. Для **`dnd_player`** после четырёх `"done"` в `pipeline-state.json` хук **`stop`** запускает `lint` / `typecheck` / `test`. Для **`project-converter`** и **`DndGamePlayerLicenseServer`** — в том числе обязательный **`npm run test`** (**вариант A**: тесты и скрипт `test` в том же PR, что и изменение поведения). Не подменять verify другим репозиторием.
---
## Final Output
- implementation summary
- autotests summary
- code review summary
- scenario verification (UI или API)
- verify status по **целевому** репо
## PR-чеклисты
`.cursor/pr-checklists/`; пути в `ui-mock-alignment.md` — относительно **`dnd_player/`**.