可以用它生成数据库迁移吗?
它可以指导迁移工作,但迁移命令仍然需要人工审查并有意识地执行。
模板详情
面向后端团队,帮助 AI agent 生成更小的端点、安全迁移和明确契约。
命令仍是 MVP 预览。真实使用前请检查目标文件和覆盖行为。
npx rulesmarket add python-fastapi-service# FastAPI Service Rules - Keep API schemas explicit with Pydantic models and clear response contracts. - Separate route handlers, domain services and persistence code. - Prefer dependency injection for database sessions and authenticated user context. - Do not silently swallow exceptions; map expected errors to typed HTTP responses. - Use async only when the downstream library is async-safe. - Add tests for validation, authorization and failure paths before broad refactors. - Never log credentials, bearer tokens, cookies or personally identifiable data.
它可以指导迁移工作,但迁移命令仍然需要人工审查并有意识地执行。
是的。它默认使用 FastAPI、Pydantic 和服务层风格。