内容
<div align="center">
<img src="docs/assets/banner.png" alt="Cursor Kit for AI" width="600">
# Cursor Kit
**不是一个IDE,而是为Cursor提供生产就绪解决方案的库。**
[](https://github.com/kiurakku/cursor-kit-for-ai/actions/workflows/ci.yml)
[](LICENSE)
[](https://www.python.org/downloads/)
[](docs/catalog.md)
[](plugins/README.md)
[](CONTRIBUTING.md)
[快速开始](#快速开始) · [模板](#模板目录) · [插件](#插件) · [CLI](#CLI参考) · [文档](docs/catalog.md)
<br>
```bash
pip install -e .
cursorkit create full-stack-saas my-app
cd my-app && cp .env.example .env && docker compose up -d --build
```
**~20秒后:** React · FastAPI · PostgreSQL · Redis · Docker · GitHub Actions · SSL · Monitoring
</div>
---
## 这是什么?
Cursor Kit 是一个**脚手架库**,适用于使用 [Cursor](https://cursor.com) 作为倍增器的开发者。 一条CLI命令就能为您提供一个完整的、生产就绪的项目 — 不是教程,不是代码片段,而是一个**您可以交付的真实堆栈**。
| 您想要的 | 运行 |
|----------|-----|
| 完整的SaaS产品 | `cursorkit create full-stack-saas my-app` |
| Telegram机器人 | `cursorkit create telegram-bot alerts` |
| Cursor的MCP服务器 | `cursorkit create mcp-servers my-tools` |
| Cursor技能/工作流 | `cursorkit plugin install engineering` |
**22个模板** · **6个插件** · **20+技能** · **MIT许可证**
---
## 插件
Cursor Kit 包含 **6个插件** 来自 **Cloud9's** — Cursor Agent技能,适用于工程、DevOps、数据、自动化、安全和生产力。
```bash
cursorkit plugin list
cursorkit plugin install engineering # code-review, deploy-checklist, incident-response
cursorkit plugin install devops --global # docker-audit, k8s-review, ci-fix
cursorkit plugin install --all # 安装所有插件
```
| 插件 | 技能 | 搭配 |
|--------|--------|-----------|
| `engineering` | code-review, deploy-checklist, incident-response, standup | `full-stack-saas`, `ci-cd` |
| `devops` | docker-audit, k8s-review, ci-fix, monitoring-check | `docker`, `kubernetes`, `monitoring` |
| `data` | sql-write, pipeline-review, dashboard-build | `postgresql` |
| `automation` | bot-scaffold, scraper-review, workflow-design | `telegram-bot`, `scraper`, `n8n` |
| `security` | secrets-audit, waf-review, harden-vps | `cloudflare`, `vps-setup`, `anti-bot` |
| `productivity` | daily-plan, task-triage, session-context | 任意项目 |
技能安装到 `.cursor/skills/` 并在Cursor Agent中自动激活。
完整指南: **[plugins/README.md](plugins/README.md)** · **[docs/plugins.md](docs/plugins.md)**
---
**22个模板** · **246+文件每全栈** · **零厂商锁定**
---
## 目录
- [快速开始](#快速开始)
- [CLI参考](#CLI参考)
- [模板目录](#模板目录)
- [插件](#插件)
- [全栈SaaS](#全栈SaaS)
- [与Cursor一起使用](#与Cursor一起使用)
- [架构](#架构)
- [测试](#测试)
---
## 快速开始
### 前提条件
| 工具 | 版本 |
|------|---------|
| Python | 3.10+ |
| Docker + Compose | v2+ |
| Git | 2.30+ |
### 安装
```bash
git clone https://github.com/kiurakku/cursor-kit-for-ai.git
cd cursor-kit-for-ai
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
```
### 创建并运行
```bash
cursorkit list
cursorkit info full-stack-saas
cursorkit create full-stack-saas my-saas --domain app.example.com --author "Your Name"
cd my-saas
cp .env.example .env # 修改 SECRET_KEY 和 POSTGRES_PASSWORD
docker compose up -d --build
```
| 服务 | URL |
|---------|-----|
| 应用 | http://localhost:3000 |
| API文档 | http://localhost:8000/docs |
| Grafana | http://localhost:3001 |
---
## CLI参考
```bash
cursorkit --version
cursorkit list [--tag docker]
cursorkit info <template>
cursorkit create <template> <name> [options]
```
| 选项 | 描述 |
|--------|-------------|
| `-o, --output` | 输出目录 |
| `--domain` | 生产域名 |
| `--author` | 项目作者名称 |
| `--force` | 覆盖现有目录 |
| `--dry-run` | 预览而不写入 |
---
## 模板目录
<details>
<summary><b>核心基础设施</b> (5个模板)</summary>
| ID | 堆栈 | 描述 |
|----|-------|-------------|
| [`full-stack-saas`](templates/full-stack-saas) | React, FastAPI, Postgres, Redis | 完整的SaaS,包含身份验证、CI/CD、监控 |
| [`docker`](templates/docker) | Node, Python, Nginx | 多阶段Docker模式 |
| [`kubernetes`](templates/kubernetes) | K8s, Ingress, HPA | 生产环境配置 |
| [`vps-setup`](templates/vps-setup) | Ubuntu, Caddy, systemd | 服务器强化 + 部署 |
| [`ci-cd`](templates/ci-cd) | GitHub Actions | 测试、构建、部署、回滚 |
</details>
<details>
<summary><b>数据库和缓存</b> (2个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`postgresql`](templates/postgresql) | Postgres 16, Alembic, 备份脚本 |
| [`redis`](templates/redis) | 速率限制、缓存、发布/订阅 |
</details>
<details>
<summary><b>身份验证和支付</b> (3个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`auth`](templates/auth) | JWT + 刷新令牌 + RBAC |
| [`stripe`](templates/stripe) | 订阅、结账、Webhook |
| [`telegram-login`](templates/telegram-login) | Telegram 登录小部件 |
</details>
<details>
<summary><b>机器人和自动化</b> (3个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`telegram-bot`](templates/telegram-bot) | aiogram 3, Webhook + 轮询 |
| [`discord-bot`](templates/discord-bot) | discord.py 斜杠命令 |
| [`n8n`](templates/n8n) | 自托管 n8n + PostgreSQL |
</details>
<details>
<summary><b>数据收集</b> (3个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`scraper`](templates/scraper) | Playwright + 代理轮换 |
| [`parser`](templates/parser) | HTML/JSON 管道 |
| [`proxy-rotation`](templates/proxy-rotation) | 代理池管理器 |
</details>
<details>
<summary><b>安全和边缘</b> (2个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`cloudflare`](templates/cloudflare) | Workers + WAF 规则 |
| [`anti-bot`](templates/anti-bot) | 指纹识别 + 速率限制 |
</details>
<details>
<summary><b>Web3 和 AI</b> (4个模板)</summary>
| ID | 描述 |
|----|-------------|
| [`web3-wallet`](templates/web3-wallet) | ethers.js 钱包连接 |
| [`mcp-servers`](templates/mcp-servers) | Cursor 的 MCP 服务器 |
| [`ai-agents`](templates/ai-agents) | LangGraph 代理 + 工具 |
| [`monitoring`](templates/monitoring) | Prometheus + Grafana + Loki |
</details>
完整详情: **[docs/catalog.md](docs/catalog.md)**
---
## 全栈SaaS
旗舰模板 — 为真正的产品提供所有内容:
```bash
my-saas/
├── frontend/ React 18 + Vite + TypeScript + Tailwind
├── backend/ FastAPI + SQLAlchemy + JWT身份验证
├── deploy/ Caddy SSL + 零停机部署脚本
├── monitoring/ Prometheus + Grafana
├── docker-compose.yml 6个服务,健康检查
└── .github/workflows/ CI → 构建 → 部署
```
---
## 与Cursor一起使用
```bash
1. cursorkit create full-stack-saas my-app # 脚手架
2. 在Cursor中打开 # @README.md 获取上下文
3. 使用Agent扩展 # 可预测的结构
4. git push # CI自动部署
```
对于MCP:`cursorkit create mcp-servers my-tools` — 包含 `.cursor/mcp.json`。
---
## 架构
```bash
Caddy (TLS) → 前端 (React) + 后端 (FastAPI) → PostgreSQL + Redis
↓
Prometheus → Grafana
```
参见 [docs/architecture.md](docs/architecture.md)。
---
## 测试
```bash
pip install -e ".[dev]"
pytest -v
ruff check cursorkit tests
cursorkit create full-stack-saas test -o /tmp/test --force
```
---
## 许可证
MIT — 由 **Cloud9's** 拥有。 可在商业和个人项目中自由使用。 欢迎PR — 请参见 [CONTRIBUTING.md](CONTRIBUTING.md)。
---
<div align="center">
**停止构建基础设施。开始构建产品。**
`cursorkit create full-stack-saas my-app`
</div>
连接信息
猜你喜欢
暂无推荐服务器