| name | project-feature-flow |
| description | Use for this repository when implementing a feature, bug fix, refactor, UI change, or other code change. Follow the project workflow from context gathering and ambiguity checks through implementation, version/log sync, build/lint verification, and final summary. Trigger when the user asks to add, fix, modify, optimize, refactor, or implement code in this Vue/Vite project. |
Project Feature Flow
Core Rule
Do not rush into coding when the request is ambiguous. If the goal, affected behavior, UX expectation, data contract, versioning impact, or acceptance criteria is unclear, ask the user a concise clarifying question before editing files.
Use best judgment only when the ambiguity is low risk and the existing code/docs clearly imply the intended behavior. State the assumption before or after the change.
Workflow
- Read
AGENTS.md first.
- Read task-relevant docs:
AI_GUIDE.md for non-trivial feature, API, layout, or store changes.
README.md for project positioning or backend usage.
docs/更新日志.md when the change is user-visible or version-related.
- Inspect the nearest relevant source files before deciding an approach.
- Check for ambiguity:
- Ask the user before coding if multiple valid behaviors exist.
- Ask before changing production backend URLs, routing mode, deployment workflow, dependencies, auth/token behavior, or public API assumptions.
- Ask before choosing a large refactor when a smaller scoped fix could work.
- Implement narrowly, following existing Vue, Element Plus, Pinia, SCSS, and request-layer patterns.
- For code changes, synchronize release metadata:
- Read the current local date.
- Use version format
YY.MM.DD.
- Update
docs/更新日志.md.
- Update
package.json field "version".
- Update
src/apis/httpInstance.ts export sbVersion.
- If today's
docs/更新日志.md heading already exists, append an item under it instead of duplicating the heading.
- Verify:
- Run
npm run build unless the change is docs-only or a blocker is clear.
- Run
npm run lint for source changes when practical.
- For UI changes, review desktop and mobile breakpoints statically and leave actual visual acceptance to the user.
- Unless the user explicitly requests it in the current task, do not run
npm run dev, npm run preview, or another project server; do not open or control a browser; and do not use screenshots, recordings, or pixel comparison for visual verification.
- Review the final diff for unrelated edits, generated files, secrets, and version/log consistency.
- Final response should summarize what changed, verification results, note that no browser preview was performed for UI work, and report any remaining risk or skipped checks.
Project-Specific Guardrails
- Do not copy
dpahjdoiaw into third-party clients, bots, scripts, or docs examples.
- Do not edit
dist/, .pnpm-store/, node_modules/, or tsconfig.node.tsbuildinfo.
- Do not silently modify user-created unrelated changes in the working tree.
- Keep
AGENTS.md current when project workflow or agent expectations change.