Remove outdated project rules and clean up backend guidelines

- Delete obsolete .agent/rules/project.md file
- Remove rule #19 about security vulnerabilities from backend.md
This commit is contained in:
yyhuni
2025-12-12 18:06:57 +08:00
parent 25db990bc3
commit 6ca2ea2e53
2 changed files with 0 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
---
trigger: always_on
---
1.后端网页应该是 8888 端口
2.后端请运行虚拟环境再运行命令,环境在项目根目录~/Desktop/scanner/.venv/bin/python
3.前端所有路由加上末尾斜杠,以匹配 django 的 DRF 规则
4.网页测试可以用 curl
8.所有前端 api 接口都应该写在@services 中,所有 type 类型都应该写在@types
10.前端的加载等逻辑用 React Query来实现自动管理
17.所有业务操作的 toast 都放在 hook 中
19.目前后端项目,去不用做安全漏洞方面的相关的代码
23.前端非必要不要采用window.location.href去跳转而是用Next.js 客户端路由

View File

@@ -8,6 +8,5 @@ trigger: always_on
8.所有前端 api 接口都应该写在@services 中,所有 type 类型都应该写在@types
10.前端的加载等逻辑用 React Query来实现自动管理
17.所有业务操作的 toast 都放在 hook 中
19.目前后端项目,去不用做安全漏洞方面的相关的代码
23.前端非必要不要采用window.location.href去跳转而是用Next.js 客户端路由
24.ui相关的都去调用mcp来看看有没有通用组件美观的组件来实现