跳到正文
Skillpedia
部署与云(DevOps)60k · #3170

manage-app

它能做什么

这个技能帮助智能体运行和维护现有的 Twenty 应用,包括同步改动、部署构建、读取日志以及修复失败的步骤。适合在 Twenty 实例上运行应用的开发者。

适用场景

  • ✓当你想把最新的应用改动同步到 Twenty 服务器的时候。
  • ✓当 Twenty 应用的部署、同步或构建失败,需要诊断的时候。
  • ✓当你想查看应用中某个逻辑函数的日志的时候。

技能链接

https://github.com/twentyhq/twenty/blob/main/packages/twenty-agent-skills/skills/manage-app/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/twentyhq/twenty/blob/main/packages/twenty-agent-skills/skills/manage-app/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 Twenty 应用同步时出现了构建错误。请帮我找出原因并修复。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能会检查应用的工具、远程配置和构建设置,然后运行你要求的同步、部署或日志步骤。它会帮你找出并修复导致应用无法运行的问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

When To Use

Pick this skill when the user wants to operate, troubleshoot, or ship an existing Twenty app — anything between "I have an app" and "it runs in production". Representative triggers:

  • "sync my app changes to the server"
  • "deploy my Twenty app to production"
  • "check the logs for my logic function"
  • "switch to a different Twenty remote / instance"
  • "add a new remote for staging"
  • "set up CI/CD for my Twenty app"
  • "troubleshoot a failed deploy / sync / build"
  • "uninstall my app from production"
  • "run tests for my Twenty app"
  • "run my logic function manually for testing"

Do not use this skill to scaffold (use create-app), to change app entities or code (use develop-app), to prepare marketplace assets (use publish-app), or to query workspace records (use use-twenty-mcp).

Boundaries

For background on how Twenty apps work — the SDK packages, remotes, sync lifecycle, and rendering model — read ../../references/concepts/how-apps-work.md. Cross-skill operating rules that apply to every Twenty app task are in ../../references/concepts/operating-rules.md; they are authoritative and not restated per skill.

Do not scaffold a new app here. Use $create-app when the app does not exist.

Do not add or modify app entities here. Use $develop-app for objects, fields, logic functions, roles, views, navigation, page layouts, skills, agents, connection providers, front component registration, and settings menu items.

Do not prepare marketplace README, screenshots, logos, or npm listing copy here. Use $publish-app for public listing work.

Do not retrieve CRM records here. Use $use-twenty-mcp for workspace data retrieval.

Operating Rules

First confirm the current directory is a Twenty app:

test -f package.json
test -f src/application-config.ts

Inspect current app and scripts before running operational commands:

sed -n '1,220p' package.json
twenty remote list

Treat deploys, uninstalls, production remote changes, and production syncs as externally visible actions. Ask for explicit confirmation before running them when the target is production or user data could be affected.

For command details, remotes, validation command semantics, sync modes, troubleshooting, build, deploy, logs, exec, and CI/CD, read ../../references/manage-app/cli-and-sync.md.

If the user asks to run tests, also read ../../references/develop-app/tests.md before running any test command. Full test suites include integration tests that install and uninstall the app on their target server, so start or verify the isolated test instance and run:

twenty local start --test
TWENTY_API_URL=http://localhost:2021 yarn test

Do not run integration tests against the dev instance on http://localhost:2020 unless the user explicitly asks for that target. If the user asks for unit tests only, use the package's unit-test script and no TWENTY_API_URL override is needed.

Remotes

A remote is a Twenty server that the app can sync or deploy to. Credentials are managed by the standalone CLI. Use twenty auth login and twenty remote list.

Common commands:

# Add a remote interactively.
twenty auth login

# Connect to a local Twenty server.
twenty auth login --url http://localhost:2020

# Add a remote non-interactively.
printf '%s' "$TWENTY_API_KEY" | twenty auth login --with-token --url https://your-twenty-server.com --name production

# List configured remotes.
twenty remote list

# Switch the active remote.
twenty remote use <name>

When the user says "prod", "production", or "workspace de prod", identify the target remote before syncing or deploying. If it is missing, add it with --as production or the user-provided name.

Development Sync

Always use bounded apply to synchronize app changes with the active remote:

twenty app apply

Do not use bare twenty app dev (watch mode). Run twenty app apply each time changes need to be synced.

Bounded apply requires an authenticated remote. If authentication fails, re-add or switch the remote before retrying.

Troubleshooting

Start by identifying which layer is failing:

  • Remote/authentication.
  • Dev sync or bounded apply.
  • Build/package generation.
  • Deploy/upload/install.
  • Runtime function execution.
  • CI/CD environment or secrets.

Collect the minimum useful context before changing configuration:

sed -n '1,220p' package.json
sed -n '1,220p' src/application-config.ts
twenty remote list
twent
常见问题

它可以部署到生产环境吗?

可以。当你要求时,它可以把应用部署到 Twenty 实例,包括生产环境。

它能帮忙设置自动构建吗?

可以。该技能涵盖 Twenty 应用的 CI 和 CD 设置。

它会修改我应用的功能吗?

不会。修改实体和代码由 develop-app 技能负责。

详情

作者的原始描述

Use when the user wants to manage or troubleshoot tooling, remotes, sync, build, deploy, logs, CI/CD, or operational workflows for an existing Twenty app.

repo: twentyhq/twenty

热度

GitHub 星标
60k
排名
#3170
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能