gtm-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGTM Agent
GTM Agent
Trigger
触发条件
Apply this skill when a request concerns getting GTM Agent deployed, connected, checked, or upgraded for an organization.
当请求涉及为某个组织部署、连接、检查或升级 GTM Agent 时,应用此技能。
Scope
范围
One deployment is: a private copy of the agent template as the repository , deployed as the Vercel project ; a Slack connector installed in the organization's Slack; the workspace repository (empty until the agent's first save, save for the workflow runtime); and, when workflows are enabled, an existing Vercel project connected to that repository's folder with its existing database and machine transport. The scripts in use the GitHub and Vercel CLIs; lists what setup creates and what must already exist. Connections setup uses the existing protected workflow project through shared setup. Connection names come from the Vercel Secret Note or local label, following Connections naming. The agent remains optional for that setup. The workspace's contents belong to the other gtm skills.
eliasstravik/gtm-agentgtm-agent-<slug>gtm-agent-<slug>slack/gtm-agent-<slug>gtm-<slug>gtm-<slug>-workflowsworkflows/scripts/references/setup.md一次部署包括:agent 模板 的一个私有副本,作为仓库 ,并部署为 Vercel 项目 ;一个安装到组织 Slack 中的 Slack 连接器 ;工作区仓库 (在 agent 首次保存之前为空,仅除工作流运行时外);以及当工作流启用时,一个已存在的 Vercel 项目 ,连接到该仓库的 文件夹,并带有其现有数据库和机器传输。 中的脚本使用 GitHub 和 Vercel CLI; 列出了设置会创建什么以及哪些必须已经存在。连接设置通过 shared setup 使用现有受保护的工作流项目。连接名称来自 Vercel Secret Note 或本地标签,遵循 Connections naming。在该设置中,agent 仍然是可选的。工作区的内容属于其他 gtm 技能。
eliasstravik/gtm-agentgtm-agent-<slug>gtm-agent-<slug>slack/gtm-agent-<slug>gtm-<slug>gtm-<slug>-workflowsworkflows/scripts/references/setup.mdInputs
输入
The request; the organization's workspace slug (the contract's slug rule; from an existing when one exists); the Vercel team slug (; ask when more than one); the GitHub owner (the signed-in user unless the request names an organization); optionally a Slack channel id (, at the bottom of a channel's About tab) for workflow notifications; .
~/.gtm/<slug>/vercel teams lsC0…references/setup.md请求;组织的 workspace slug(遵循 contract 的 slug 规则;如果存在 ,则来自该目录);Vercel team slug(;如果有多个则询问);GitHub 所有者(除非请求中指定了组织,否则为当前登录用户);可选地,用于工作流通知的 Slack 频道 ID(,位于频道 About 选项卡底部);。
~/.gtm/<slug>/vercel teams lsC0…references/setup.mdRoles
角色
The user has the GitHub and Vercel CLIs signed in on this computer, authorizes the Slack install when required, either directly or through their authorized browser agent, adds the Neon database to the workflow project through Vercel's Neon integration (Production only, preview branching off) and accepts Neon's marketplace terms the first time a team uses it, invites the bot to a channel, and says the first sentence in Slack; the agent runs the scripts, relays exactly what the user must do, and reports the outcome.
用户需要在这台计算机上登录 GitHub 和 Vercel CLI,在需要时授权 Slack 安装(直接或通过其授权的浏览器 agent),通过 Vercel 的 Neon 集成将 Neon 数据库添加到工作流项目(仅生产环境,预览分支关闭),并在团队首次使用时接受 Neon 的市场条款,将机器人邀请到频道,并在 Slack 中发出第一句话;agent 负责运行脚本,准确传达用户必须执行的操作,并报告结果。
Procedure
流程
Talk by the six rules in interaction; reproduce the dialogues. Before any job, confirm this computer can do it: and both succeed, and is 22 or newer. When they do not, or when this is the hosted agent itself (no on PATH, or reads ), run nothing: say what is missing in one sentence and that a teammate runs on a computer with both CLIs signed in.
gh auth statusvercel whoaminode --versionvercelGTM_RUN_SECREThost/gtm-agent| Job | Do |
|---|---|
| Deploy | Ask for the Vercel team only when |
| Connect | The workflow project alone, for a deployment made before this skill or with |
| Doctor | |
| Upgrade | In the agent checkout ( |
Names are fixed by the slug: (workspace repository), (agent repository and project), (workflow project), (connector), the Neon database , connected to the workflow project only. A deployment made by hand before this skill keeps its names; pass them as overrides.
gtm-<slug>gtm-agent-<slug>gtm-<slug>-workflowsslack/gtm-agent-<slug>gtm-<slug>按照 interaction 中的六条规则进行对话;复现 the dialogues。在任何任务开始前,确认这台计算机能够执行: 和 均成功,且 为 22 或更高。如果不满足,或者当前就是托管 agent 本身(PATH 中没有 ,或 读取为 ),则不要运行任何命令:用一句话说明缺少什么,并说明需要由队友在一台两个 CLI 都已登录的计算机上运行 。
gh auth statusvercel whoaminode --versionvercelGTM_RUN_SECREThost/gtm-agent| 任务 | 操作 |
|---|---|
| 部署 | 仅当 |
| 连接 | 仅针对工作流项目,适用于在此技能之前部署或使用 |
| Doctor | |
| 升级 | 在 agent 的 checkout 中( |
名称由 slug 固定:(工作区仓库)、(agent 仓库和项目)、(工作流项目)、(连接器),Neon 数据库 仅连接到工作流项目。在此技能之前手动完成的部署保留其原有名称;请通过覆盖参数传入。
gtm-<slug>gtm-agent-<slug>gtm-<slug>-workflowsslack/gtm-agent-<slug>gtm-<slug>Outputs
输出
A live agent answering in Slack, wired to its workspace repository and, unless declined, a live workflow project; the doctor's report; the two Slack lines: invite the app, then .
@gtm-agent-<slug> set up our GTM workspace一个在 Slack 中响应的在线 agent,连接到其工作区仓库,并且除非用户拒绝,还连接到一个在线工作流项目;doctor 的报告;两行 Slack 消息:邀请应用,然后 。
@gtm-agent-<slug> set up our GTM workspaceExceptions
例外情况
Secrets never pass through the conversation: the scripts generate them and place them with ; the GitHub token is the CLI's own (), which reaches every repository that user can write, and the user may replace with a fine-grained token later. A Vercel Hobby account cannot hold a team: say that a Pro team is needed and stop. A GitHub organization that has not installed the Vercel GitHub app makes fail: name the install (Vercel → Settings → Git) and run again. A Vercel configuration update can leave Slack unchanged. Follow Slack configuration; Doctor must verify both sides and the installed token before reporting success. Requires and installed alongside this skill; when either is missing, say to install it with (add when this skill lives in the global skills directory), then retry.
vercel env addgh auth tokenGTM_GITHUB_TOKENvercel git connectgtm-workspacegtm-workflownpx skills add eliasstravik/gtm-skills -s <name> -y-g密钥绝不会通过对话传递:脚本会生成密钥并通过 放置;GitHub token 是 CLI 自身的(),可访问该用户可写的所有仓库,用户之后可以将 替换为细粒度 token。Vercel Hobby 账户无法拥有团队:说明需要 Pro 团队并停止。未安装 Vercel GitHub app 的 GitHub 组织会导致 失败:请说明安装位置(Vercel → Settings → Git)并重新运行。Vercel 配置更新可能不会改变 Slack。请遵循 Slack configuration;Doctor 必须在报告成功前验证两侧以及已安装的 token。需要在此技能旁边安装 和 ;如果缺少其中任何一个,请说明使用 安装它(如果此技能位于全局 skills 目录中,则添加 ),然后重试。
vercel env addgh auth tokenGTM_GITHUB_TOKENvercel git connectgtm-workspacegtm-workflownpx skills add eliasstravik/gtm-skills -s <name> -y-gProtected workflow viewer
受保护的工作流查看器
Setup stages an origin-scoped workflow bypass in the agent host, deploys that host, then enables native Vercel Authentication on All Deployments. The bypass and execution bearer never enter model-visible exports or user links. Doctor preserves protection and reports missing machine access or mismatched share-project trust. Existing signed intake senders need their own verified gate transport while preserving application signature checks; only pass after checking each sender.
--intake-protection-verifiedOne public sharing project uses the workspace repository's root and . It has production-to-production Trusted Sources access to its own private project, only the fixed GET proxy, and no database, execution or provider credentials. Enable Share after deployment and access verification. See workflow viewer.
workflows/npm run build:share设置会在 agent 宿主中暂存一个 origin-scoped 的工作流绕过,部署该宿主,然后在所有部署上启用原生 Vercel Authentication。该绕过和执行 bearer 不会进入模型可见的导出或用户链接。Doctor 会保留保护,并报告缺失的机器访问或 share-project 信任不匹配。现有的已签名 intake 发送者需要它们自己的已验证 gate 传输,同时保留应用签名检查;只有在检查每个发送者后才能传入 。
--intake-protection-verified一个公共共享项目使用工作区仓库的 根目录和 。它通过生产环境到生产环境的 Trusted Sources 访问自己的私有项目,仅使用固定的 GET 代理,并且没有数据库、执行或 provider 凭据。在部署和访问验证后启用 Share。参见 workflow viewer。
workflows/npm run build:shareQC
QC
- Connections lives in the existing private workflow project. Verify its signed-in browser access after deployment; configuration alone is not readiness. Native account login, provider consent and Slack-specific actions may require the human.
- No secret value appeared in the conversation or a reply.
- Doctor ends with "All good." before the deployment is called done; every failing line was reported with its fix. Live smoke checks cover mentions, private channels, DMs, group-DM mentions, workflow replies, file downloads/uploads, and approvals; use an authorized test conversation.
- The closing reply carries the two Slack lines and nothing about commits, builds, or checks.
- 连接配置位于现有私有工作流项目中。部署后验证其已登录的浏览器访问;仅配置并不等于就绪。原生账户登录、provider 同意和 Slack 特定操作可能需要人工参与。
- 对话或回复中不得出现任何密钥值。
- 在部署被认为完成之前,Doctor 必须以“All good.”结束;每个失败行都已报告并附带修复方式。实时冒烟检查涵盖提及、私密频道、私信、群组私信提及、工作流回复、文件下载/上传和审批;请使用经授权的测试对话。
- 结束回复包含两行 Slack 消息,不包含任何关于提交、构建或检查的内容。
References
参考
setup.md for what the scripts create, every variable, and the by-hand equivalent; interactions dialogues; from gtm-workspace: interaction, contract; from gtm-workflow: deploy.md.
setup.md:脚本创建的内容、每个变量以及手动操作对应的方式;interactions 对话;来自 gtm-workspace:interaction、contract;来自 gtm-workflow:deploy.md。