Loading...
Loading...
Compare original and translation side by side
/ai-factory.skill-generator/ai-factory.skill-generatorpython3 ~/{{skills_dir}}/skill-generator/scripts/security-scan.py <installed-skill-path>rm -rf <skill-path>python3 ~/{{skills_dir}}/skill-generator/scripts/security-scan.py <installed-skill-path>rm -rf <skill-path>For each recommended skill:
1. Search: npx skills search <name>
2. If found → Install: npx skills install <name>
3. SECURITY: Scan installed skill → python security-scan.py <path>
- BLOCKED? → rm -rf <path>, warn user, skip this skill
- WARNINGS? → show to user, ask confirmation
4. If not found → Generate: /ai-factory.skill-generator <name>
5. Has reference URLs? → Learn: /ai-factory.skill-generator <url1> [url2]...对于每个推荐技能:
1. 搜索:npx skills search <name>
2. 若找到 → 安装:npx skills install <name>
3. 安全检查:扫描已安装技能 → python security-scan.py <path>
- 被拦截? → rm -rf <path>,警告用户,跳过该技能
- 有警告? → 展示给用户,请求确认
4. 若未找到 → 生成:/ai-factory.skill-generator <name>
5. 有参考URL? → 学习模式:/ai-factory.skill-generator <url1> [url2]...Check $ARGUMENTS:
├── Has description? → Mode 2: New Project with Description
└── No arguments?
└── Check project files (package.json, composer.json, etc.)
├── Files exist? → Mode 1: Analyze Existing Project
└── Empty project? → Mode 3: Interactive New Project检查$ARGUMENTS参数:
├── 包含项目描述? → 模式2:带描述的新项目
└── 无参数?
└── 检查项目文件(package.json、composer.json等)
├── 存在项目文件? → 模式1:分析现有项目
└── 空项目? → 模式3:交互式新项目/ai-factorypackage.jsoncomposer.jsonrequirements.txtpyproject.tomlgo.modCargo.tomldocker-compose.ymlprisma/schema.prismasrc/app/api/| Detection | Skills | MCP |
|---|---|---|
| Next.js/React | | - |
| Express/Fastify/Hono | | - |
| Laravel/Symfony | | |
| Prisma/PostgreSQL | | |
| MongoDB | | - |
| GitHub repo (.git) | - | |
| Stripe/payments | | - |
npx skills search nextjs
npx skills search prismaundefined/ai-factorypackage.jsoncomposer.jsonrequirements.txtpyproject.tomlgo.modCargo.tomldocker-compose.ymlprisma/schema.prismasrc/app/api/| 检测结果 | 推荐技能 | 推荐MCP |
|---|---|---|
| Next.js/React | | - |
| Express/Fastify/Hono | | - |
| Laravel/Symfony | | |
| Prisma/PostgreSQL | | |
| MongoDB | | - |
| GitHub仓库(含.git) | - | |
| Stripe/支付功能 | | - |
npx skills search nextjs
npx skills search prismaundefined
**Step 6: Execute**
1. Create directory: `mkdir -p .ai-factory`
2. Save `.ai-factory/DESCRIPTION.md`
3. For each external skill from skills.sh:
```bash
npx skills install <name>
# AUTO-SCAN: immediately after install
python3 ~/{{skills_dir}}/skill-generator/scripts/security-scan.py <installed-path>rm -rf <path>/ai-factory.skill-generator{{settings_file}}AGENTS.md
**步骤6:执行设置**
1. 创建目录:`mkdir -p .ai-factory`
2. 保存`.ai-factory/DESCRIPTION.md`
3. 对于每个来自skills.sh的外部技能:
```bash
npx skills install <name>
# 自动扫描:安装后立即执行
python3 ~/{{skills_dir}}/skill-generator/scripts/security-scan.py <installed-path>rm -rf <path>/ai-factory.skill-generator{{settings_file}}AGENTS.md/ai-factory e-commerce with Stripe paymentsBased on your project, I recommend:
1. Language:
- [ ] TypeScript (Recommended) — type safety, great tooling
- [ ] JavaScript — simpler, faster start
- [ ] Python — good for ML/data projects
- [ ] PHP — Laravel ecosystem
- [ ] Go — high performance APIs
- [ ] Other: ___
2. Framework:
- [ ] Next.js (Recommended) — full-stack React, great DX
- [ ] Express — minimal, flexible
- [ ] Fastify — fast, schema validation
- [ ] Hono — edge-ready, lightweight
- [ ] Laravel — batteries included (PHP)
- [ ] Django/FastAPI — Python web
- [ ] Other: ___
3. Database:
- [ ] PostgreSQL (Recommended) — reliable, feature-rich
- [ ] MySQL — widely supported
- [ ] MongoDB — flexible schema
- [ ] SQLite — simple, file-based
- [ ] Supabase — Postgres + auth + realtime
- [ ] Other: ___
4. ORM/Query Builder:
- [ ] Prisma (Recommended) — type-safe, great DX
- [ ] Drizzle — lightweight, SQL-like
- [ ] TypeORM — decorator-based
- [ ] Eloquent — Laravel default
- [ ] None — raw queriesundefined/ai-factory e-commerce with Stripe payments基于你的项目需求,我推荐:
1. 编程语言:
- [ ] TypeScript(推荐)—— 类型安全,工具链完善
- [ ] JavaScript —— 更简单,启动更快
- [ ] Python —— 适用于机器学习/数据类项目
- [ ] PHP —— Laravel生态丰富
- [ ] Go —— 高性能API
- [ ] 其他:___
2. 框架:
- [ ] Next.js(推荐)—— 全栈React,开发体验优秀
- [ ] Express —— 轻量灵活
- [ ] Fastify —— 高性能,支持Schema验证
- [ ] Hono —— 边缘就绪,轻量级
- [ ] Laravel —— 功能全面(PHP)
- [ ] Django/FastAPI —— Python Web框架
- [ ] 其他:___
3. 数据库:
- [ ] PostgreSQL(推荐)—— 可靠,功能丰富
- [ ] MySQL —— 广泛支持
- [ ] MongoDB —— 灵活Schema
- [ ] SQLite —— 简单易用,基于文件
- [ ] Supabase —— Postgres + 认证 + 实时功能
- [ ] 其他:___
4. ORM/查询构建器:
- [ ] Prisma(推荐)—— 类型安全,开发体验优秀
- [ ] Drizzle —— 轻量级,类SQL语法
- [ ] TypeORM —— 装饰器风格
- [ ] Eloquent —— Laravel默认ORM
- [ ] 无 —— 使用原生查询undefined
Save to `.ai-factory/DESCRIPTION.md`.
```bash
mkdir -p .ai-factoryAGENTS.md
保存到`.ai-factory/DESCRIPTION.md`。
```bash
mkdir -p .ai-factoryAGENTS.md/ai-factoryI don't see an existing project here. Let's set one up!
What kind of project are you building?
(e.g., "e-commerce platform", "REST API for mobile app", "SaaS dashboard")
> ___AGENTS.md/ai-factory未检测到现有项目,让我们来创建一个!
你要构建什么类型的项目?
(例如:“电商平台”、“移动端REST API”、“SaaS仪表盘”)
> ___AGENTS.md.git{
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" }
}
}.git{
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" }
}
}{
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": { "DATABASE_URL": "${DATABASE_URL}" }
}
}{
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": { "DATABASE_URL": "${DATABASE_URL}" }
}
}{
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
}
}{
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
}
}AGENTS.md.ai-factory/DESCRIPTION.mdundefinedAGENTS.md.ai-factory/DESCRIPTION.mdundefinedProject map for AI agents. Keep this file up-to-date as the project evolves.
AI Agent专用项目地图。项目结构发生重大变化时请更新此文件。
| File | Purpose |
|---|---|
| [main entry] | [description] |
| [config file] | [description] |
| [schema file] | [description] |
| 文件 | 用途 |
|---|---|
| [主入口文件] | [描述] |
| [配置文件] | [描述] |
| [Schema文件] | [描述] |
| Document | Path | Description |
|---|---|---|
| README | README.md | Project landing page |
| [other docs if they exist] |
| 文档 | 路径 | 描述 |
|---|---|---|
| README | README.md | 项目首页 |
| [其他现有文档] |
| File | Purpose |
|---|---|
| AGENTS.md | This file — project structure map |
| .ai-factory/DESCRIPTION.md | Project specification and tech stack |
| CLAUDE.md | Claude Code instructions and preferences |
**Rules for AGENTS.md:**
- Keep it factual — only describe what actually exists in the project
- Update it when project structure changes significantly
- The Documentation section will be maintained by `/ai-factory.docs`
- Do NOT duplicate detailed content from DESCRIPTION.md — reference it instead
---| 文件 | 用途 |
|---|---|
| AGENTS.md | 本文件——项目结构地图 |
| .ai-factory/DESCRIPTION.md | 项目规格与技术栈 |
| CLAUDE.md | Claude Code指令与偏好设置 |
**AGENTS.md规则:**
- 保持事实性——仅描述项目中实际存在的内容
- 项目结构发生重大变化时更新此文件
- 文档部分将由`/ai-factory.docs`维护
- 不要重复DESCRIPTION.md中的详细内容——只需引用
---✅ Project context configured!
Project description: .ai-factory/DESCRIPTION.md
Project map: AGENTS.md
Skills installed: [list]
MCP configured: [list]
To start development:
- /ai-factory.feature <description> — Start a new feature (creates branch + plan)
- /ai-factory.task <description> — Create implementation plan only
- /ai-factory.implement — Execute existing plan
Ready when you are!Your project already has code. You might also want to set up:
- /ai-factory.docs — Generate project documentation
- /ai-factory.build-automation — Configure build scripts and automation
- /ai-factory.ci — Set up CI/CD pipeline
- /ai-factory.dockerize — Containerize the project
Would you like to run any of these now?AskUserQuestion/ai-factory.docs/ai-factory.build-automation/ai-factory.ci/ai-factory.dockerize✅ 项目上下文配置完成!
项目描述文件:.ai-factory/DESCRIPTION.md
项目地图:AGENTS.md
已安装技能:[列表]
已配置MCP:[列表]
开始开发:
- /ai-factory.feature <描述> —— 启动新功能(创建分支+开发计划)
- /ai-factory.task <描述> —— 仅创建实现计划
- /ai-factory.implement —— 执行现有计划
准备就绪!你的项目已有代码,你可能还需要设置:
- /ai-factory.docs —— 生成项目文档
- /ai-factory.build-automation —— 配置构建脚本与自动化
- /ai-factory.ci —— 设置CI/CD流水线
- /ai-factory.dockerize —— 容器化项目
是否现在执行其中某项?/ai-factory.docs/ai-factory.build-automation/ai-factory.ci/ai-factory.dockerize