TemplateCentral:添加

cljiahao2026-10-28查看 581复制 1968

在向 FastAPI、NestJS、Next.js 或 Vite+React 项目添加任何能力时使用——认证、数据库、测试、组件、日志记录等。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md2059 chars
---
name: templatecentral:add
description: Use when adding any capability to a FastAPI, NestJS, Next.js, or Vite+React project — auth, database, tests, components, logging, and more.
---

**Step 1** — From `AGENTS.md` and the user's request, identify the **capability** and **stack**.

**Capability → path** (base: `<skill-dir>/`):

| Capability | Stacks | Path |
|---|---|---|
| `auth` | fastapi, nestjs, nextjs, vite-react | `auth/<stack>.md` |
| `database` | fastapi→python, nestjs/nextjs→typescript | `database/<python\|typescript>.md` |
| `test` | fastapi, nestjs, nextjs, vite-react | `test/<stack>.md` |
| `integration` | fastapi, nestjs, nextjs, vite-react | `integration/<stack>.md` |
| `logging` | fastapi, nestjs, nextjs, vite-react | `logging/<stack>.md` |
| `error-handling` | fastapi, nestjs, nextjs, vite-react | `error-handling/<stack>.md` |
| `pagination` | fastapi, nestjs, nextjs, vite-react | `pagination/<stack>.md` |
| `page`, `feature`, `form` | nextjs, vite-react | `<capability>/<stack>.md` |
| `ai-security` | all stacks | `ai-security/implementation.md` |
| `documentation` / `docs` (alias) / `readme` (alias) | all stacks | `documentation/implementation.md` |
| `redaction` / `masking` (alias) / `dlp` (alias) | all stacks | `redaction/implementation.md` |
| `mutation-testing` / `mutation` (alias) | fastapi→python, nestjs/nextjs/vite-react→typescript | `mutation-testing/<python\|typescript>.md` |
| `endpoint` / `api-route` (alias) / `module` (alias) | fastapi→`endpoint/fastapi.md`, nestjs→`endpoint/nestjs.md`, nextjs→`endpoint/nextjs.md` | see path |
| `component` (alias) | nextjs, vite-react | `feature/<stack>.md` |

**Step 2** — Run:
> `<skill-dir>` = this skill directory; Claude Code shows 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 directory the same way.

`cat "<skill-dir>/<path>"`

**Step 3** — Follow the loaded guide exactly. For `database`, the loaded file will instruct the next `cat`.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧