fastapi-templates – skill Lập trình cho agent AI
Tạo dự án FastAPI sẵn sàng production với mẫu async, dependency injection và xử lý lỗi toàn diện. Dùng khi xây dựng ứng dụng FastAPI mới hoặc thiết lập dự án backend API.
Cài skill fastapi-templates bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/fastapi-templates-3edea.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /fastapi-templates – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/fastapi-templates-3edea.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $fastapi-templates – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/fastapi-templates-3edea.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /fastapi-templates – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/fastapi-templates-3edea.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /fastapi-templates – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
FastAPI Project Templates
Starting-point FastAPI project structures with async patterns, dependency injection, middleware, and best practices for building high-performance APIs.
Use this skill when
- Starting new FastAPI projects from scratch
- Implementing async REST APIs with Python
- Building high-performance web services and microservices
- Creating async applications with PostgreSQL, MongoDB
- Setting up API projects with proper structure and testing
Do not use this skill when
- The task is unrelated to fastapi project templates
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Example
Create a PostgreSQL-backed user API using the playbook. First define request/output/internal schemas and object authorization, then test registration, inactive-token rejection and forbidden cross-user reads. Report missing project files before claiming a runnable service.Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- weekly-review-planning – Reset đầu tuần: cam kết, công việc bị đình trệ, kế hoạch tuần tới.
- sample-text-processor – Skill mẫu cấp BASIC, dùng làm fixture cho skill-tester. Đếm từ và ký tự, áp dụng các…
- finishing-a-development-branch – Dùng khi triển khai đã hoàn tất, mọi test đều pass, và cần quyết định cách tích hợp công…
- scenario-war-room – Mô hình hóa what-if đa chức năng cho các kịch bản nhiều biến số chồng chéo. Khác với…
- five-axis-code-review – Checklist review code theo năm trục (tính đúng đắn, bảo mật, khả năng đọc, hiệu năng, độ…
- fix-review – Xác minh các commit sửa lỗi đã xử lý đúng phát hiện của audit mà không gây lỗi mới
- fp-async – Mẫu xử lý bất đồng bộ thực tế với TaskEither - pipeline gọn gàng thay vì try/catch rối…
- fp-backend – Mẫu lập trình hàm cho phát triển backend Node.js/Deno với fp-ts, ReaderTaskEither và…