create-app
它能做什么
这个技能让智能体使用 Twenty 的独立命令行工具,为 Twenty(一款 CRM)创建新应用。适合希望在 Twenty 上开发自定义功能的开发者。
适用场景
- ✓当你想为你的 Twenty 工作区开发一个全新应用的时候。
- ✓当你希望在添加任何功能之前,先创建好项目文件和依赖的时候。
- ✓当你想先在本地搭建好应用骨架,再连接到 Twenty 实例时。
技能链接
https://github.com/twentyhq/twenty/blob/main/packages/twenty-agent-skills/skills/create-app/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我创建一个名为 lead-tracker 的新 Twenty 应用,并准备好它的文件和依赖。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能使用 Twenty 命令行工具创建应用的文件,并安装其依赖。它不会连接工作区,也不会进行部署,这些步骤要在之后完成。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
When To Use
Use for requests such as "create a Twenty app" or "scaffold a new app".
Create an app
Use this skill for a new app. For an existing app, use develop-app or manage-app.
Read ../../references/concepts/how-apps-work.md and ../../references/concepts/operating-rules.md first.
Confirm the app's name and purpose. Use the standalone CLI:
npm install -g twenty
twenty app init <app-name>
cd <app-name>
yarn install
app init only writes files. It does not install dependencies, initialize Git, start Docker, authenticate, or perform an initial sync.
Use --path <directory> for a different destination and --display-name or --description for metadata. The positional name is the package name.
Twenty Cloud and self-hosted instances are supported. Ask for the existing Twenty workspace URL when connection is needed. If the user wants a local environment, run twenty local start, then authenticate separately with twenty auth login. A repository development environment also works.
twenty auth login --url <twenty-instance-url> --name dev
twenty app apply --create --remote dev
Only claim the app is installed after apply succeeds. If the request is just scaffolding, stop after the files and dependencies are created. Do not run broad validation unless requested. For integration tests, use the isolated test instance described in ../../references/develop-app/tests.md.
The template includes a main page, its layout and navigation item, and a health-check function. Remove the placeholder page with its layout and navigation if the app needs no UI. Extend the existing health check rather than declaring a second one.
After creation, use develop-app for entities and UI, manage-app for bounded sync with twenty app apply, and publish-app for release work.
常见问题
这会把我的应用连接到 Twenty 工作区吗?
不会。创建应用只会写入文件和依赖。连接和安装是单独的步骤。
我可以使用 Twenty Cloud 或自托管版本吗?
可以。该技能在之后连接时同时支持 Twenty Cloud 和自托管实例。
需要先安装命令行工具吗?
需要。该技能使用独立的 Twenty 命令行工具,它通过 npm 安装。
详情
热度
- GitHub 星标
- 60k
- 排名
- #3168
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
develop-app
60k帮你的智能体在现有的 Twenty 应用中添加或修改对象、字段、逻辑函数、布局和前端组件。
manage-app
60k帮你的智能体同步、部署、排查问题并查看现有 Twenty 应用的日志,覆盖从本地工作到生产环境的全过程。
publish-app
60k帮你的智能体为 npm 或应用市场准备 Twenty 应用,包括它的 README、元数据、标志和截图。
use-twenty-mcp
60k让你的智能体连接你的 Twenty 工作区,查询记录、对象和字段,方便你直接询问 CRM 中的数据。