Agent skill

Fastapi Backend Scaffold

by 5zjk5 in 5zjk5/prompt-engineering

生成标准 FastAPI 后端分层架构目录脚手架。当用户需要从零搭建 FastAPI 后端、重构后端目录结构、或创建新的后端项目时触发此技能。技能内置 LLM 多模型客户端(支持重试、流式、备用切换)、会话级日志、SQLite 数据访问层、SSE 流式 API 示例等生产级模板代码,一键生成完整可运行的后端骨架。触发场景包括"搭建后端"、"创建 FastAPI…

No licenceAuto-check: notesBackend & APIs

Install Fastapi Backend Scaffold

skills CLI
$ npx skills add 5zjk5/prompt-engineering --skill fastapi-backend-scaffold -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 5zjk5/prompt-engineering fastapi-backend-scaffold --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/5zjk5/prompt-engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skill/fastapi-backend-scaffold .claude/skills/fastapi-backend-scaffold && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fastapi-backend-scaffold
GitHub stars
127
Token cost
~1.3k tokens
SKILL.md length
252 words
Files
13 (incl. scripts, references, assets)
Skills in repo
5
Repo updated
First seen
Licence
None found

At a glance

生成标准 FastAPI 后端分层架构目录脚手架。当用户需要从零搭建 FastAPI 后端、重构后端目录结构、或创建新的后端项目时触发此技能。技能内置 LLM 多模型客户端(支持重试、流式、备用切换)、会话级日志、SQLite 数据访问层、SSE 流式 API 示例等生产级模板代码,一键生成完整可运行的后端骨架。触发场景包括"搭建后端"、"创建 FastAPI…

  • Works in 7 steps: 复制 LLM 模块到 app/llm/(直接照抄,不做修改) → 复制 core 模块模板(config.py、logger.py) → 复制 dal 模块模板(database.py) → …
  • Tasks that involve Backend development
  • SKILL.md covers 概述, 何时使用, 生成的目录结构 and 执行流程, plus 4 more sections
  • Runs Python scripts from its folder; calls python and pip

What it does

Fastapi Backend Scaffold is an agent skill from 5zjk5/prompt-engineering. 生成标准 FastAPI 后端分层架构目录脚手架。当用户需要从零搭建 FastAPI 后端、重构后端目录结构、或创建新的后端项目时触发此技能。技能内置 LLM 多模型客户端(支持重试、流式、备用切换)、会话级日志、SQLite 数据访问层、SSE 流式 API 示例等生产级模板代码,一键生成完整可运行的后端骨架。触发场景包括"搭建后端"、"创建 FastAPI 项目"、"重构后端架构"、"生成后端目录"等。

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts, reference files and assets (for example `assets/llm/__init__.py`, `assets/llm/client.py` and `assets/llm/llm_config.py`).

It sits in Backend & APIs, covering Backend development. It works with FastAPI and SQLite.

When your agent uses it

  • Tasks that involve Backend development

Example prompts

  • “创建 FastAPI 项目”
  • “重构后端架构”
  • “生成后端目录”
  • “/fastapi-backend-scaffold”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 复制 LLM 模块到 app/llm/(直接照抄,不做修改)
  2. 复制 core 模块模板(config.py、logger.py)
  3. 复制 dal 模块模板(database.py)
  4. 生成 api 模块(含 SSE 流式示例)
  5. 创建 services、prompts 空模块
  6. 生成 main.py 入口、requirements.txt、.env.example
  7. 创建 logs、skills、storage 顶层运行时目录

What it can do on your machine

Read from SKILL.md and the folder at commit e563dd1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fastapi Backend Scaffold loads about 1.3k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 252 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:99
    2. 复制环境变量:`cp .env.example .env` 并按需修改
  • NoteMentions a .env fileSKILL.md:159
    所有配置从 `.env` 读取,集中在文件顶部定义。目录路径基于 `__file__` 相对计算,不依赖工作目录。模块加载时自动创建所需目录。

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 252 words (~1,300 tokens).

“本技能用于生成标准 FastAPI 后端分层架构目录脚手架。架构源自生产级 ChatExcel 项目,经过实际验证,包含多模型容错、会话级日志、SSE 流式响应等生产级特性。”

— opening of SKILL.md by 5zjk5
name
fastapi-backend-scaffold
agent_created
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 12 other files (scripts, references, assets) in Skill/fastapi-backend-scaffold of 5zjk5/prompt-engineering.

  • SKILL.md
  • assets/llm/__init__.py
  • assets/llm/client.py
  • assets/llm/llm_config.py
  • assets/templates/.env.example
  • assets/templates/api_example.py
  • assets/templates/config.py
  • assets/templates/database.py
  • assets/templates/logger.py
  • assets/templates/main.py
  • assets/templates/requirements.txt
  • references/architecture.md
  • scripts/scaffold.py

Open the folder on GitHubat commit e563dd1

Compare with similar skills

Fastapi Backend Scaffold next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fastapi Backend Scaffold compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fastapi Backend Scaffold this skill5zjk5/prompt-engineering127—~1.3kAutomated safety check: NotesNone
Domodomo Backend Fastapidarknecrocities/DomoDomo---All-in-one-Tool239—~17kAutomated safety check: PassNone
Junta Leiloeirossickn33/agentic-awesome-skills47k2 repos~1.6kAutomated safety check: PassMIT
Junta Leiloeirosdiegosouzapw/awesome-omni-skills159—~3.7kAutomated safety check: PassMIT
Fastcrudbenavlabs/fastcrud1.6k—~5kAutomated safety check: PassMIT
FastapiOpen-TutorAi/open-tutor-ai-CE1082 repos~2.6kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Domodomo Backend Fastapi

    darknecrocities/DomoDomo---All-in-one-Tool

    Maintain DomoDomo’s local FastAPI application, routers, SQLite models, local services, and Python utilities.

    239 GitHub stars~17k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Junta Leiloeiros

    sickn33/agentic-awesome-skills

    Coleta e consulta dados de leiloeiros oficiais de todas as 27 Juntas Comerciais do Brasil.

    47k GitHub starsUsed in 2 repos~1.6k tokens
    Backend & APIsAuto-check passed
  • Junta Leiloeiros

    diegosouzapw/awesome-omni-skills

    Skill: Leiloeiros das Juntas Comerciais do Brasil workflow skill.

    159 GitHub stars~3.7k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Fastcrud

    benavlabs/fastcrud

    A skill your agent uses when building or modifying CRUD endpoints with FastCRUD (the fastcrud PyPI package) in a FastAPI project — covers FastCRUD, crudrouter, EndpointCreator, FilterConfig…

    1.6k GitHub stars~5k tokensUpdated 15 days ago
    Backend & APIsAuto-check passed
  • Fastapi

    Open-TutorAi/open-tutor-ai-CE

    FastAPI best practices and conventions. An agent skill from Open-TutorAi/open-tutor-ai-CE.

    108 GitHub starsUsed in 2 repos~2.6k tokens
    Backend & APIsAuto-check passed
  • API Surface Review

    polarsource/polar

    Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.

    10k GitHub stars~1.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from 5zjk5/prompt-engineering

  • CSV Data Analysis

    5zjk5/prompt-engineering

    This skill should be used when users need to analyze CSV or Excel files, understand data patterns, generate statistical summaries, or create data visualizations.

    127 GitHub stars~2.6k tokensUpdated 25 days ago
    Auto-check passed
  • Byteplus Edge Pages Deploy

    5zjk5/prompt-engineering

    Deploy static websites to BytePlus Edge Pages with CDN. An agent skill from 5zjk5/prompt-engineering.

    127 GitHub stars~3.9k tokensUpdated 25 days ago
    Auto-check passed
  • Langchain Langgraph Coding Assistant

    5zjk5/prompt-engineering

    当用户需要编写LangChain或LangGraph相关代码时,提供基于示例代码的编码辅助,包括RAG、Agent、工作流、工具定义、中间件等多种功能模块的实现指导。

    127 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Project Analyzer

    5zjk5/prompt-engineering

    代码仓库梳理与项目文档生成技能。当用户明确要求梳理项目或使用项目梳理功能时触发此技能。典型触发场景包括"帮我梳理这个项目"、"梳理一下这个代码仓"、"使用项目梳理"等。此技能读取项目代码仓,按照结构化模板生成完整的项目梳理 Markdown 文档。

    127 GitHub stars~1.3k tokensUpdated 25 days ago
    Auto-check: notes

Works with

Categories

Questions about Fastapi Backend Scaffold

What does Fastapi Backend Scaffold do?

生成标准 FastAPI 后端分层架构目录脚手架。当用户需要从零搭建 FastAPI 后端、重构后端目录结构、或创建新的后端项目时触发此技能。技能内置 LLM 多模型客户端(支持重试、流式、备用切换)、会话级日志、SQLite 数据访问层、SSE 流式 API 示例等生产级模板代码,一键生成完整可运行的后端骨架。触发场景包括"搭建后端"、"创建 FastAPI…. Fastapi Backend Scaffold is an agent skill from 5zjk5/prompt-engineering.

When should I use Fastapi Backend Scaffold?

Fastapi Backend Scaffold fits situations like: tasks that involve Backend development.

How do I install Fastapi Backend Scaffold in Claude Code?

Run `npx skills add 5zjk5/prompt-engineering --skill fastapi-backend-scaffold -a claude-code`. Or copy the skill folder (Skill/fastapi-backend-scaffold in 5zjk5/prompt-engineering) into .claude/skills/fastapi-backend-scaffold in your project. Claude Code loads it when a task matches its description.

How do I install Fastapi Backend Scaffold in Codex?

Run `npx skills add 5zjk5/prompt-engineering --skill fastapi-backend-scaffold -a codex`. Or copy the skill folder (Skill/fastapi-backend-scaffold in 5zjk5/prompt-engineering) into .agents/skills/fastapi-backend-scaffold in your project. Codex loads it when a task matches its description.

Can I use Fastapi Backend Scaffold in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 5zjk5/prompt-engineering --skill fastapi-backend-scaffold -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fastapi-backend-scaffold, .gemini/skills/fastapi-backend-scaffold, .github/skills/fastapi-backend-scaffold and .opencode/skills/fastapi-backend-scaffold in your project.

What does Fastapi Backend Scaffold need to run?

Going by SKILL.md and its folder, Fastapi Backend Scaffold needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Fastapi Backend Scaffold access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Fastapi Backend Scaffold safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Fastapi Backend Scaffold use?

No licence was found for Fastapi Backend Scaffold or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Fastapi Backend Scaffold use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Fastapi Backend Scaffold?

Skills that share tags, products or a category with Fastapi Backend Scaffold: Domodomo Backend Fastapi (darknecrocities/DomoDomo---All-in-one-Tool, 239 stars), Junta Leiloeiros (sickn33/agentic-awesome-skills, 47k stars), Junta Leiloeiros (diegosouzapw/awesome-omni-skills, 159 stars) and Fastcrud (benavlabs/fastcrud, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fastapi Backend Scaffold?

5zjk5 (a GitHub user) maintains it in 5zjk5/prompt-engineering, which has 127 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 15, 2026.

Source: 5zjk5/prompt-engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.