一键导入
implement-story
Implement a backlog story following the layer order (Domain, Database, API, Frontend, E2E) with TDD.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a backlog story following the layer order (Domain, Database, API, Frontend, E2E) with TDD.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review the backlog to determine what to work on next by checking epic and story statuses in docs/backlog/.
Automates pre-commit workflow: lint, test, review changes, then commit with conventional commit format.
Verify a story is complete by checking acceptance criteria, running all tests, and updating status.
Add end-to-end Playwright tests for a feature using data-testid selectors, with API and UI test patterns.
Add unit tests for domain logic, database adapters, API endpoints, or frontend components using Vitest patterns.
Create a new user story in the backlog with technical tasks, test scenarios, and epic integration.
| name | implement-story |
| description | Implement a backlog story following the layer order (Domain, Database, API, Frontend, E2E) with TDD. |
| disable-model-invocation | true |
main. If on main, create and switch to a feature branch (e.g., feat/e2-us01-jwt-token-security) before proceeding. Never commit directly to main.docs/backlog//add-e2e-tests skill. Must include both API tests (@api tag) and UI browser tests (@ui tag)pnpm lint
pnpm test
pnpm test:e2e
pnpm test:e2e:mobile # if mobile layer is affected
# 1. Write domain test
packages/domain/src/use-cases/__tests__/CreateNote.test.ts
# 2. Write domain implementation
packages/domain/src/use-cases/CreateNote.ts
# 3. Write database test
packages/database/src/adapters/__tests__/DrizzleNoteRepository.test.ts
# 4. Write database adapter
packages/database/src/adapters/DrizzleNoteRepository.ts
# 5. Wire up API controller
packages/api/src/controllers/notes.controller.ts
# 6. Build frontend feature
packages/frontend/src/features/notes/
# 7. Build mobile feature (if applicable)
packages/mobile/src/features/notes/
# 8. Add E2E tests (Playwright for web, Maestro for mobile)
e2e/tests/notes/crud.spec.ts
packages/mobile/maestro/flows/notes/
pnpm test)pnpm lint)@api tagged tests)@ui tagged tests)