Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

init-app-stack初始化应用程序堆栈

Agent Skill

init-app-stack 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

2

下载量

94
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:init-app-stack(初始化应用程序堆栈)
来源仓库:https://github.com/bmsuisse/skills
仓库路径:skills/init-app-stack
安装命令:
npx skills add https://github.com/bmsuisse/skills --skill init-app-stack
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bmsuisse/skills --skill init-app-stack

简介

用于查找、检索和筛选相关信息,适合根据关键词快速定位候选结果。

  • 可结合任务场景或来源线索进行信息聚合,支持技能库探索和匹配。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • 安装命令为 npx skills add https://github.com/bmsuisse/skills --skill init-app-stack。
  • 适用于 Codex、Claude、Cursor、Gemini CLI,需通过 GitHub 仓库安装。

SKILL.md

Init App Stack

Bootstrap a full-stack project with:

  • Frontend: Vite 8+ + React + TanStack Router + TanStack Query + Zustand + shadcn/ui + TailwindCSS v4, managed with bun
  • Backend: FastAPI + Granian + raw asyncpg (Postgres), managed with uv, targeting Python 3.14 (PEP 750 t-strings for SQL)
  • DB: Postgres 17 via docker-compose.yml
  • Types: openapi-typescript generates a typed client from FastAPI's OpenAPI schema

Step 1: Run the scaffold script

This creates the full project structure deterministically — do not scaffold manually.

uv run python scripts/create.py <project-name>

The script (works on Mac, Linux, Windows):

  1. Frontend: bun create vite@latest frontend --template react-ts, installs TanStack Router + Query + Devtools, Zustand, Zod, TailwindCSS v4, shadcn deps (class-variance-authority, clsx, tailwind-merge, lucide-react, tw-animate-css), openapi-typescript
  2. Wires vite.config.ts with @tanstack/router-plugin + @/ path alias, sets up src/main.tsx with QueryClientProvider + RouterProvider, writes src/routes/__root.tsx and src/routes/index.tsx
  3. Writes src/lib/queryClient.ts, src/lib/api.ts (fetch wrapper with VITE_API_URL), src/lib/utils.ts (shadcn cn helper), src/stores/ placeholder for Zustand
  4. Writes shadcn config: components.json, shadcn-compatible src/index.css (OKLCH theme vars, @theme inline, tw-animate-css, .dark class variant), patches tsconfig.json + tsconfig.app.json with @/* path alias
  5. Adds bun run generate-api script → fetches /openapi.json and runs openapi-typescript into src/lib/api-types.ts
  6. Backend: uv init --python 3.14, adds fastapi, granian, asyncpg, pydantic-settings
  7. Writes main.py (lifespan-managed asyncpg pool, CORS for localhost:5173), db.py (pool + t-string sql() helper), config.py (pydantic-settings)
  8. Adds dev = "granian --interface asgi main:app --reload" and start = "granian --interface asgi main:app --workers 4" to pyproject.toml
  9. Writes docker-compose.yml with a single db service (Postgres 17) + named volume
  10. Writes .env.example (frontend + backend), root .gitignore, README.md with startup steps

After running:

cd <project-name>
docker compose up -d db           # start Postgres
cd backend  && uv run dev         # FastAPI on :8000
cd frontend && bun run dev        # Vite on :5173

Step 2: Enable companion skills via marketplace

Add this to your project's .claude/settings.json to give the agent deep knowledge of the stack:

{
  "extraKnownMarketplaces": {
    "bmsuisse-skills": {
      "source": {
        "source": "github",
        "repo": "bmsuisse/skills"
      }
    }
  },
  "enabledPlugins": {
    "coding@bmsuisse-skills": true
  }
}

This installs the coding plugin which includes:

  • tanstack-best-practices — TanStack Router + Query patterns, SSR integration, query key factories
  • coding-guidelines-typescript — TypeScript strictness, discriminated unions, async typing
  • coding-guidelines-python — FastAPI/backend Python standards, ty type checking
  • fastapi-guideline — Production FastAPI patterns (CRUD, DI, auth, async)
  • autoresearch — Autonomous experiment loop for iterative improvements

Reference files (load as needed, not all at once)

FileWhen to read
references/react-tanstack.mdTanStack Router (typed routes, search params, loaders) + Query (caching, mutations) + Zustand patterns
references/shadcn-ui.mdAdding shadcn components, theme tokens, cn() usage, dark mode
references/asyncpg-postgres.mdConnection pool lifecycle, t-string sql() helper, transactions, pagination
references/openapi-typed-client.mdRegenerating api-types.ts from FastAPI, typed fetch patterns
references/fastapi-templates.mdBackend structure, CRUD repos, dependency injection, auth
references/fastapi-sse.mdAdding SSE streaming endpoints (AI chat, live updates, logs)
references/frontend-design.mdUI aesthetics, typography, color, motion — avoid generic looks

Key conventions

  • Always use bun (not npm/yarn/pnpm) for the frontend.
  • Always use uv (not pip/poetry/pipenv) for the backend. Pin Python 3.14.
  • Backend uses fastapi + granian — do not use fastapi[standard] (bundles uvicorn, conflicts with Granian).
  • Run backend dev with uv run dev (granian --interface asgi main:app --reload).
  • Do not use SQLAlchemy or any ORM. Use raw asyncpg with the sql() t-string helper in db.py: from db import sql, pool async with pool.acquire() as conn: rows = await conn.fetch(*sql(t"SELECT * FROM users WHERE id = {user_id}")) The helper converts t"..." interpolations to asyncpg's native $1, $2 positional params — safe from injection, no string formatting.
  • Frontend routing: file-based via @tanstack/router-plugin — add files under src/routes/, route tree is auto-generated.
  • Data fetching: TanStack Query only — do not roll useEffect + fetch. Use queryOptions for reusable query definitions.
  • Client state: start with useState + Context. Reach for Zustand only when syncing across distant components. Never Redux.
  • URL state (filters, pagination, sort): put in TanStack Router search params with Zod validation, not in Zustand.
  • UI components: shadcn/ui — generated into src/components/ui/ via bunx --bun shadcn@latest add <component>. Do not install a MUI/Chakra/Mantine. Style with Tailwind v4 tokens (bg-background, text-foreground, text-muted-foreground, border-border) — not raw palette colors like bg-neutral-800.
  • Use the cn() helper from @/lib/utils to conditionally merge Tailwind classes. Imports use the @/* alias (configured in vite.config.ts + both tsconfigs).
  • Regenerate API types after backend changes: bun run generate-api (requires backend running on localhost:8000).
  • CORS is pre-configured for http://localhost:5173 (Vite default). Update for production.
  • Typing on backend: uv add --dev ty and run uv run ty check.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.69%
按下载量换算34

Claude

27.72%
按下载量换算26

Cursor

18.04%
按下载量换算17

Gemini CLI

9.16%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills