templatecentral:scaffold
Use when creating a new FastAPI, NestJS, Next.js, or Vite+React project from scratch.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- templatecentral:scaffold
- description
- Use when creating a new FastAPI, NestJS, Next.js, or Vite+React project from scratch.
02 资源文件 305
- 参考文档fastapi/source-files.md9.1 KB
- 参考文档fastapi/template-agents/AGENTS.md2.1 KB
- 参考文档fastapi/template-tail/task-management.md207 B
- 其他fastapi/template.manifest3.1 KB
- 其他fastapi/template/.claude/skills/api-verify/SKILL.md.tmpl344 B
- 其他fastapi/template/.dockerignore2.2 KB
- 其他fastapi/template/.env.example582 B
- 其他fastapi/template/.gitignore801 B
- 脚本fastapi/template/docker-entrypoint.sh664 B
- 其他fastapi/template/Dockerfile4.2 KB
- 其他fastapi/template/pyproject.toml929 B
- 参考文档fastapi/template/pyrightconfig.json97 B
- 参考文档fastapi/template/requirements-dev.txt62 B
- 其他fastapi/template/src/.env.default700 B
- 脚本fastapi/template/src/api/__init__.py—
- 脚本fastapi/template/src/api/routers/__init__.py—
- 脚本fastapi/template/src/api/routers/example.py504 B
- 脚本fastapi/template/src/api/routes.py610 B
- 脚本fastapi/template/src/api/schemas/__init__.py—
- 脚本fastapi/template/src/api/schemas/base.py853 B
- 脚本fastapi/template/src/api/schemas/request/__init__.py—
- 脚本fastapi/template/src/api/schemas/request/example.py293 B
- 脚本fastapi/template/src/api/schemas/response/__init__.py—
- 脚本fastapi/template/src/api/schemas/response/example.py283 B
- 脚本fastapi/template/src/api/services/__init__.py—
- 脚本fastapi/template/src/api/services/example.py387 B
- 脚本fastapi/template/src/api/tags.py131 B
- 脚本fastapi/template/src/app.py6.4 KB
- 脚本fastapi/template/src/constants/__init__.py—
- 脚本fastapi/template/src/core/__init__.py—
- 脚本fastapi/template/src/core/config.py2.7 KB
- 脚本fastapi/template/src/core/directory_manager.py2.2 KB
- 脚本fastapi/template/src/core/exceptions.py207 B
- 脚本fastapi/template/src/core/logging.py5.4 KB
- 脚本fastapi/template/src/core/security_headers.py2.7 KB
- 参考文档fastapi/template/src/core/uvicorn_log_config.json250 B
- 脚本fastapi/template/src/error_handler.py3.2 KB
- 脚本fastapi/template/src/logic/__init__.py—
- 脚本fastapi/template/src/main.py1.4 KB
- 脚本fastapi/template/src/models/__init__.py—
- 脚本fastapi/template/src/models/base.py299 B
- 脚本fastapi/template/src/utils/__init__.py—
- 脚本fastapi/template/src/utils/date.py341 B
- 脚本fastapi/template/test/conftest.py326 B
- 脚本fastapi/template/test/factories/__init__.py—
- 脚本fastapi/template/test/factories/models.py392 B
- 脚本fastapi/template/test/test_api/__init__.py—
- 脚本fastapi/template/test/test_api/test_example.py1.2 KB
- 脚本fastapi/template/test/test_api/test_health.py568 B
- 脚本fastapi/template/test/test_logic/__init__.py—
- 脚本fastapi/template/test/test_models/__init__.py—
- 脚本fastapi/template/test/test_utils/__init__.py—
- 脚本fastapi/template/test/test_utils/test_logging.py1.1 KB
- 脚本fastapi/template/test/test_utils/test_security_headers.py796 B
- 参考文档nestjs/source-files.md9.0 KB
- 参考文档nestjs/template-agents/AGENTS.md2.1 KB
- 参考文档nestjs/template-tail/task-management.md207 B
- 其他nestjs/template.manifest2.9 KB
- 其他nestjs/template/.claude/skills/nest-verify/SKILL.md.tmpl340 B
- 其他nestjs/template/.dockerignore992 B
- 其他nestjs/template/.env.example770 B
- 其他nestjs/template/.gitignore1.7 KB
- 其他nestjs/template/.npmrc101 B
- 其他nestjs/template/.prettierignore334 B
- 其他nestjs/template/.prettierrc106 B
- 脚本nestjs/template/docker-entrypoint.sh321 B
- 其他nestjs/template/Dockerfile4.9 KB
- 脚本nestjs/template/eslint.config.mjs2.9 KB
- 参考文档nestjs/template/nest-cli.json171 B
- 参考文档nestjs/template/package.json1.9 KB
- 参考文档nestjs/template/pnpm-workspace.yaml1.0 KB
- 脚本nestjs/template/src/app.module.ts1.2 KB
- 脚本nestjs/template/src/common/constants/http.constants.ts351 B
- 脚本nestjs/template/src/common/constants/index.ts34 B
- 脚本nestjs/template/src/common/filters/http-exception.filter.ts1.3 KB
- 脚本nestjs/template/src/common/utils/date.utils.ts308 B
- 脚本nestjs/template/src/common/utils/string.utils.ts228 B
- 脚本nestjs/template/src/config/env.config.ts1.9 KB
- 脚本nestjs/template/src/config/index.ts111 B
- 脚本nestjs/template/src/config/setups/security.setup.ts3.2 KB
- 脚本nestjs/template/src/config/setups/swagger.setup.ts809 B
- 脚本nestjs/template/src/main.ts2.0 KB
- 脚本nestjs/template/src/modules/base/base.controller.ts595 B
- 脚本nestjs/template/src/modules/base/base.module.ts241 B
- 脚本nestjs/template/src/modules/base/base.service.ts213 B
- 脚本nestjs/template/src/modules/example/example.controller.ts1.6 KB
- 脚本nestjs/template/src/modules/example/example.dto.ts406 B
- 脚本nestjs/template/src/modules/example/example.module.ts368 B
- 脚本nestjs/template/src/modules/example/example.repository.ts1019 B
- 脚本nestjs/template/src/modules/example/example.service.ts976 B
- 脚本nestjs/template/src/modules/example/example.types.ts129 B
- 脚本nestjs/template/src/modules/index.ts78 B
- 脚本nestjs/template/test/app.e2e-spec.ts1.4 KB
- 脚本nestjs/template/test/config/security.setup.spec.ts810 B
- 脚本nestjs/template/test/modules/base.controller.spec.ts804 B
- 脚本nestjs/template/test/modules/example.controller.spec.ts1.6 KB
- 参考文档nestjs/template/tsconfig.build.json174 B
- 参考文档nestjs/template/tsconfig.json800 B
- 脚本nestjs/template/vitest.config.e2e.ts208 B
- 脚本nestjs/template/vitest.config.ts408 B
- 参考文档nextjs/source-files.md11.8 KB
- 参考文档nextjs/template-agents/AGENTS.md2.8 KB
- 参考文档nextjs/template-tail/task-management.md207 B
- 其他nextjs/template.manifest4.7 KB
- 其他nextjs/template/.claude/skills/next-migrate/SKILL.md.tmpl518 B
- 其他nextjs/template/.claude/skills/next-verify/SKILL.md.tmpl350 B
- 其他nextjs/template/.dockerignore982 B
- 其他nextjs/template/.env.example586 B
- 其他nextjs/template/.gitignore831 B
- 其他nextjs/template/.npmrc101 B
- 其他nextjs/template/.prettierignore624 B
- 其他nextjs/template/.prettierrc188 B
- 参考文档nextjs/template/components.json431 B
- 脚本nextjs/template/docker-entrypoint.sh177 B
- 其他nextjs/template/Dockerfile2.6 KB
- 脚本nextjs/template/eslint.config.mjs2.3 KB
- 脚本nextjs/template/next.config.ts1.4 KB
- 参考文档nextjs/template/package.json1.8 KB
- 参考文档nextjs/template/pnpm-workspace.yaml953 B
- 脚本nextjs/template/postcss.config.mjs94 B
- 资产文件nextjs/template/public/image_assets/default-square.svg179 B
- 资产文件nextjs/template/public/image_assets/logo.svg207 B
- 脚本nextjs/template/scripts/check-route-logging.mjs2.6 KB
- 其他nextjs/template/src/app/(public)/layout.tsx357 B
- 其他nextjs/template/src/app/(public)/page.tsx384 B
- 脚本nextjs/template/src/app/api/health/route.ts495 B
- 其他nextjs/template/src/app/dashboard/(overview)/page.tsx469 B
- 其他nextjs/template/src/app/dashboard/layout.tsx346 B
- 其他nextjs/template/src/app/error.tsx903 B
- 其他nextjs/template/src/app/globals.css4.4 KB
- 其他nextjs/template/src/app/layout.tsx997 B
- 脚本nextjs/template/src/components/layout/index.ts170 B
- 其他nextjs/template/src/components/layout/navbar.tsx1.2 KB
- 其他nextjs/template/src/components/layout/providers.tsx662 B
- 其他nextjs/template/src/components/layout/site-footer.tsx677 B
- 其他nextjs/template/src/components/layout/theme-provider.tsx299 B
- 其他nextjs/template/src/components/widgets/brand-logo.tsx412 B
- 其他nextjs/template/src/components/widgets/brand-text.tsx311 B
- 其他nextjs/template/src/components/widgets/custom-card.tsx1002 B
- 其他nextjs/template/src/components/widgets/custom-dialog.tsx994 B
- 其他nextjs/template/src/components/widgets/custom-form-field.tsx1.5 KB
- 其他nextjs/template/src/components/widgets/floating-shape.tsx652 B
- 脚本nextjs/template/src/components/widgets/index.ts468 B
- 其他nextjs/template/src/components/widgets/link-list.tsx749 B
- 其他nextjs/template/src/components/widgets/media-card.tsx1.9 KB
- 其他nextjs/template/src/components/widgets/pill.tsx592 B
- 其他nextjs/template/src/components/widgets/theme-toggle-button.tsx1.1 KB
- 脚本nextjs/template/src/features/example/api/example-service.ts195 B
- 脚本nextjs/template/src/features/example/api/index.ts53 B
- 其他nextjs/template/src/features/example/components/example-card.tsx980 B
- 其他nextjs/template/src/features/example/components/example-list.tsx1.2 KB
- 脚本nextjs/template/src/features/example/components/index.ts92 B
- 脚本nextjs/template/src/features/example/constants.ts582 B
- 脚本nextjs/template/src/features/example/hooks/index.ts61 B
- 脚本nextjs/template/src/features/example/hooks/use-example-items.query.ts237 B
- 脚本nextjs/template/src/features/example/index.ts99 B
- 脚本nextjs/template/src/features/example/schemas/index.ts11 B
- 脚本nextjs/template/src/features/example/types.ts120 B
- 脚本nextjs/template/src/hooks/index.ts11 B
- 脚本nextjs/template/src/integrations/clients/base/axios-client.ts2.7 KB
- 脚本nextjs/template/src/integrations/clients/base/fetch-client.ts3.4 KB
- 脚本nextjs/template/src/integrations/clients/base/https-agent.ts1.2 KB
- 脚本nextjs/template/src/integrations/error.ts1.3 KB
- 脚本nextjs/template/src/integrations/factories.ts964 B
- 脚本nextjs/template/src/lib/constants/env.ts210 B
- 脚本nextjs/template/src/lib/constants/index.ts49 B
- 脚本nextjs/template/src/lib/constants/routes.ts147 B
- 脚本nextjs/template/src/lib/errors/error-log-handler.ts468 B
- 脚本nextjs/template/src/lib/errors/handle-api-error.ts864 B
- 脚本nextjs/template/src/lib/errors/index.ts150 B
- 脚本nextjs/template/src/lib/logger.ts1.4 KB
- 脚本nextjs/template/src/lib/security/frame-protection.ts2.0 KB
- 脚本nextjs/template/src/lib/utils/index.ts169 B
- 脚本nextjs/template/src/lib/utils/request-origin.ts888 B
- 脚本nextjs/template/src/lib/utils/with-logging.ts1.7 KB
- 脚本nextjs/template/src/proxy.ts493 B
- 脚本nextjs/template/test/api/health.test.ts591 B
- 脚本nextjs/template/test/api/with-logging.test.ts1.4 KB
- 脚本nextjs/template/test/lib/frame-protection.test.ts2.4 KB
- 参考文档nextjs/template/tsconfig.json641 B
- 脚本nextjs/template/vitest.config.ts650 B
- 参考文档shared/documentation-kit.md16.1 KB
- 参考文档shared/harness-kit-enforcement.md25.6 KB
- 参考文档shared/harness-kit-fastapi.md4.1 KB
- 参考文档shared/harness-kit-finalize.md10.7 KB
- 参考文档shared/harness-kit-ts.md3.7 KB
- 参考文档shared/harness-kit.md10.6 KB
- 脚本shared/tc-copy.sh13.0 KB
- 参考文档shared/template-ci/azure-py/azure-pipelines.yml1.5 KB
- 参考文档shared/template-ci/azure-ts/azure-pipelines.yml1.4 KB
- 参考文档shared/template-ci/azure/azure-pipelines/templatecentral-gates.yml1.3 KB
- 参考文档shared/template-ci/github-py/.github/workflows/ci.yml3.2 KB
- 参考文档shared/template-ci/github-ts/.github/workflows/ci.yml3.2 KB
- 其他shared/template-late/.claude/skills/skill-audit/SKILL.md.tmpl1.6 KB
- 参考文档shared/template-late/docs/CONSTITUTION.md2.2 KB
- 参考文档shared/template-late/FUTURE.md1.4 KB
- 脚本shared/template-py/.claude/hooks/block-no-verify.sh14.2 KB
- 脚本shared/template-py/.claude/hooks/post-edit-comment-check.sh1.7 KB
- 脚本shared/template-py/.claude/hooks/post-edit-typecheck.sh1.1 KB
- 脚本shared/template-py/.claude/hooks/protect-files.sh5.8 KB
- 脚本shared/template-py/.claude/hooks/stop-checks.sh1.1 KB
- 脚本shared/template-py/.claude/hooks/subagent-stop.sh1.1 KB
- 脚本shared/template-py/.claude/hooks/user-prompt-guard.py2.3 KB
- 参考文档shared/template-py/lefthook.yml4.6 KB
- 参考文档shared/template-settings-py/.claude/settings.json2.4 KB
- 参考文档shared/template-settings-ts/.claude/settings.json2.4 KB
- 参考文档shared/template-tail/AGENTS-tail.md5.2 KB
- 脚本shared/template-ts/.claude/hooks/block-no-verify.sh14.3 KB
- 脚本shared/template-ts/.claude/hooks/post-edit-comment-check.sh1.8 KB
- 脚本shared/template-ts/.claude/hooks/post-edit-typecheck.sh1.2 KB
- 脚本shared/template-ts/.claude/hooks/protect-files.sh5.8 KB
- 脚本shared/template-ts/.claude/hooks/stop-checks.sh1.0 KB
- 脚本shared/template-ts/.claude/hooks/subagent-stop.sh1.1 KB
- 脚本shared/template-ts/.claude/hooks/user-prompt-guard.cjs2.3 KB
- 参考文档shared/template-ts/lefthook.yml4.8 KB
- 其他shared/template.manifest3.0 KB
- 脚本shared/template/.claude/ci-gates.sh14.1 KB
- 参考文档shared/template/.claude/comment-hygiene-patterns.txt448 B
- 脚本shared/template/.claude/hooks/session-context.sh1.0 KB
- 脚本shared/template/.claude/hooks/skill-usage-log.sh1.2 KB
- 脚本shared/template/.claude/regen-harness.sh1.1 KB
- 脚本shared/template/.claude/verify-harness.sh2.9 KB
- 其他shared/template/.gitleaks.toml213 B
- 脚本shared/template/.lefthook/commit-msg.sh840 B
- 参考文档shared/user-choices.md2.0 KB
- 参考文档vite-react/source-files.md10.8 KB
- 参考文档vite-react/template-agents/AGENTS.md2.3 KB
- 参考文档vite-react/template-tail/task-management.md207 B
- 其他vite-react/template.manifest4.6 KB
- 其他vite-react/template/.claude/skills/vite-verify/SKILL.md.tmpl281 B
- 其他vite-react/template/.dockerignore647 B
- 其他vite-react/template/.env.example114 B
- 其他vite-react/template/.gitignore758 B
- 其他vite-react/template/.npmrc101 B
- 其他vite-react/template/.prettierignore879 B
- 其他vite-react/template/.prettierrc188 B
- 参考文档vite-react/template/components.json435 B
- 脚本vite-react/template/docker-entrypoint.sh177 B
- 其他vite-react/template/docker/15-frame-protection.envsh966 B
- 其他vite-react/template/Dockerfile3.6 KB
- 脚本vite-react/template/eslint.config.mjs2.5 KB
- 参考文档vite-react/template/index.html306 B
- 其他vite-react/template/nginx.conf.template1.6 KB
- 参考文档vite-react/template/package.json1.9 KB
- 参考文档vite-react/template/pnpm-workspace.yaml951 B
- 脚本vite-react/template/postcss.config.mjs70 B
- 其他vite-react/template/src/app.tsx245 B
- 其他vite-react/template/src/components/layout/error-boundary.tsx1.7 KB
- 脚本vite-react/template/src/components/layout/index.ts214 B
- 其他vite-react/template/src/components/layout/navbar.tsx1.4 KB
- 其他vite-react/template/src/components/layout/providers.tsx742 B
- 其他vite-react/template/src/components/layout/root-layout.tsx331 B
- 其他vite-react/template/src/components/layout/site-footer.tsx364 B
- 其他vite-react/template/src/components/widgets/brand-text.tsx311 B
- 其他vite-react/template/src/components/widgets/custom-card.tsx789 B
- 其他vite-react/template/src/components/widgets/custom-dialog.tsx988 B
- 其他vite-react/template/src/components/widgets/custom-form-field.tsx1.4 KB
- 脚本vite-react/template/src/components/widgets/index.ts317 B
- 其他vite-react/template/src/components/widgets/link-list.tsx677 B
- 其他vite-react/template/src/components/widgets/media-card.tsx1.9 KB
- 其他vite-react/template/src/components/widgets/pill.tsx568 B
- 其他vite-react/template/src/features/auth/components/auth-provider.tsx1.3 KB
- 脚本vite-react/template/src/features/auth/components/index.ts142 B
- 其他vite-react/template/src/features/auth/components/login-card.tsx1.0 KB
- 其他vite-react/template/src/features/auth/components/protected-route.tsx554 B
- 脚本vite-react/template/src/features/auth/hooks/index.ts38 B
- 脚本vite-react/template/src/features/auth/hooks/use-auth.ts281 B
- 脚本vite-react/template/src/features/auth/index.ts159 B
- 脚本vite-react/template/src/features/auth/types.ts209 B
- 脚本vite-react/template/src/features/example/api/example-service.test.ts863 B
- 脚本vite-react/template/src/features/example/api/example-service.ts313 B
- 脚本vite-react/template/src/features/example/api/index.ts52 B
- 其他vite-react/template/src/features/example/components/example-card.test.tsx544 B
- 其他vite-react/template/src/features/example/components/example-card.tsx286 B
- 其他vite-react/template/src/features/example/components/example-list.tsx1.1 KB
- 脚本vite-react/template/src/features/example/components/index.ts92 B
- 脚本vite-react/template/src/features/example/constants.ts309 B
- 脚本vite-react/template/src/features/example/hooks/index.ts61 B
- 脚本vite-react/template/src/features/example/hooks/use-example-items.query.ts237 B
- 脚本vite-react/template/src/features/example/index.ts128 B
- 脚本vite-react/template/src/features/example/schemas/index.ts—
- 脚本vite-react/template/src/features/example/types.ts87 B
- 脚本vite-react/template/src/hooks/index.ts147 B
- 脚本vite-react/template/src/lib/clients/fetch-client.ts4.4 KB
- 脚本vite-react/template/src/lib/constants/env.ts320 B
- 脚本vite-react/template/src/lib/constants/index.ts96 B
- 脚本vite-react/template/src/lib/constants/routes.ts166 B
- 脚本vite-react/template/src/lib/errors/api-error.ts1.3 KB
- 脚本vite-react/template/src/lib/errors/error-log-handler.ts606 B
- 脚本vite-react/template/src/lib/errors/global-handlers.test.ts1021 B
- 脚本vite-react/template/src/lib/errors/global-handlers.ts685 B
- 脚本vite-react/template/src/lib/errors/index.ts153 B
- 脚本vite-react/template/src/lib/utils/index.ts169 B
- 其他vite-react/template/src/main.tsx424 B
- 其他vite-react/template/src/pages/dashboard.tsx462 B
- 其他vite-react/template/src/pages/home.tsx708 B
- 脚本vite-react/template/src/pages/index.ts161 B
- 其他vite-react/template/src/pages/login.tsx170 B
- 其他vite-react/template/src/pages/not-found.tsx671 B
- 其他vite-react/template/src/router.tsx822 B
- 其他vite-react/template/src/styles/globals.css3.8 KB
- 脚本vite-react/template/src/test/setup.ts165 B
- 参考文档vite-react/template/tsconfig.json707 B
- 脚本vite-react/template/vite-env.d.ts38 B
- 脚本vite-react/template/vite.config.ts1.1 KB
03 SKILL.md 正文
Step 0 — If the user did not name a stack: ask before assuming. Pose at most two questions ("Frontend, backend, or full-stack? Any language preference?"), then recommend from this table, state the one-line reason, and confirm before Step 1:
| Use case | Recommend |
|---|---|
| Interactive product UI, SSR, or full-stack web | nextjs |
| Client-only SPA or internal dashboard | vite-react |
| Python REST / async API | fastapi |
| Enterprise TypeScript API (DI, Swagger) | nestjs |
Full-stack → scaffold frontend and backend as two separate runs.
Step 1 — Identify the stack: fastapi, nestjs, nextjs, or vite-react. Then settle the inputs every guide uses, asking only for what the user has not given:
<target>— the project directory. If it exists and is not empty, confirm with the user before writing anything into it.- project name — lowercase, matching
^[a-z0-9][a-z0-9-]*$(used forpackage.json/ settings). - project title — one line, for headings and
__TC_PROJECT_TITLE__(defaults to the name). - one-sentence description.
- CI host — GitHub Actions or Azure DevOps.
Then settle the user's choices the later steps act on: cat "<skill-dir>/shared/user-choices.md" (<skill-dir> as in Step 2) lists them with their defaults.
Step 2 — Load the guide. Replace <skill-dir> with this skill's own directory — Claude Code prints it as "Base directory for this skill" when the skill loads; substitute that absolute path (it is not a shell variable). Other Agent-Skills tools provide the skill's directory the same way.
cat "<skill-dir>/<stack>/source-files.md"
Step 3 — Follow the loaded guide fully.
04 同仓库更多 Skills
test
暂无简介
templatecentral:standards
Use when reviewing code quality, naming conventions, validation patterns, drift, or full-stack type contracts in a templateCentral project.
review
暂无简介
templatecentral:migrate
Use when adopting or upgrading a project, switching its DB access layer, or extracting a Next.js backend — FastAPI, NestJS, Next.js, Vite + React.
cleanup
暂无简介
templatecentral:add
Use when adding any capability to a FastAPI, NestJS, Next.js, or Vite+React project — auth, database, tests, components, logging, and more.