Fallow Cloud Setup 标志

Fallow Cloud Setup

组织
fallow-rs
fallow-cloud-setup

Connect a JavaScript or TypeScript app to Fallow Cloud production runtime coverage. Use when asked to set up Fallow Cloud, add the Fallow beacon, send runtime coverage to Fallow Cloud, or find out why Fallow Cloud shows no data for a repository. Do not use for local code-quality tooling; use fallow-setup for that. Do not use to read runtime data of a repository that is already set up; use the fallow skill for that.

概览

发布者fallow-rs
代码仓库fallow-skills
技能名称fallow-cloud-setup
星标数
137
复刻数
9
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 fallow-rs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Fallow Cloud Setup AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/fallow-rs/fallow-skills/tree/main/fallow/skills/fallow-cloud-setup
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fallow-rs/fallow-skills.git /tmp/fallow-skills
mkdir -p .claude/skills
cp -r /tmp/fallow-skills/fallow/skills/fallow-cloud-setup .claude/skills/fallow-cloud-setup
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Fallow Cloud Setup,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Fallow Cloud Setup。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Fallow Cloud Setup 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Fallow Cloud setup: runtime coverage with one commit SHA

Fallow Cloud joins production runtime coverage to the code only when five things name the same commit SHA:

  1. The beacon in the app sends commitSha.
  2. CI uploads the static inventory for that SHA.
  3. CI uploads the source maps for that SHA, when the build bundles the code.
  4. CI registers the deployment of that SHA.
  5. The first production data for that SHA arrives.

fallow coverage setup --cloud --json writes a plan for all five steps. This skill applies the plan.

When to Use

  • Add the Fallow beacon to an app and send production coverage to Fallow Cloud.
  • Wire the CI steps that upload the inventory and the source maps and register the deployment.
  • Find the missing step when Fallow Cloud shows no data or no matched functions for a repository.

When NOT to Use

  • Local code-quality tooling, CI quality gates, or agent wiring. Use fallow-setup.
  • Reading runtime data of a repository that is already set up. Use fallow.

Rules

  1. Never write an API key value into a file, a command, or a message. Use the environment variable names that the plan gives (cloud.api_key_env, cloud.browser_key_env). The user stores the values as CI secrets and server environment variables. Never use the --api-key flag and never put a key before a command (FALLOW_API_KEY=... npx ...). The user exports the key in the shell.
  2. A browser bundle gets only an ingest-only key (prefix fallow_pub_k1_). A full key (prefix fallow_live_k1_) stays in CI and on the server.
  3. Use the same commit SHA for every step. Do not replace $GITHUB_SHA or the commitSha expression in the plan with another value.
  4. Resolve flags from fallow coverage setup --help. Do not use flags from memory.
  5. Show the edits to the user before you change a CI workflow. A deploy workflow can hold secrets and production access.

Sequence

  1. Check the flag. Run npx fallow coverage setup --help. When it does not list --cloud, use Manual setup instead of steps 2 to 8. It has the same five steps.

  2. Get the plan. Run npx fallow coverage setup --cloud --json at the repository root. When cloud.project_id is null, ask the user for the Fallow Cloud project id (owner/repo) and run the command again with --project-id <owner/repo>, so no snippet keeps the OWNER/REPO placeholder. When the command exits 2 and prints no JSON, read the error on stderr: an input such as the project id, --git-sha, or --api-endpoint is not valid.

  3. Read the plan.

    • members[] has one entry for each workspace member that runs code. Each entry has its own snippets, files_to_edit, dockerfile_snippet, and warnings. Apply the snippets from members[] only: the top-level snippets and files_to_edit repeat the first member.
    • commands installs the beacon.
    • cloud.ci.steps holds the GitHub Actions steps (cloud.ci.provider is github_actions). cloud.ci.workflows_detected names the workflow files that look like a deploy.
    • cloud.source_maps.dirs names the build output of each bundled member. cloud.source_maps.reason says what the build must do, for example emit source maps.
    • warnings names what the plan cannot do for you, for example the coverage source of a Node server.
  4. Install the beacon. Run the commands in commands with the package manager of the project.

  5. Add the snippets. For each member, add each snippet to the file in its path. Keep the projectId, commitSha, coverageOrigin, and runtimeSurface values of the snippet. When the file exists, add the snippet at the start of the entry module. Do not replace the file.

  6. Pass the commit SHA to the runtime.

    • Browser bundle: set VITE_FALLOW_COMMIT_SHA on the build step (the CI steps show it).
    • Server in a container: add the dockerfile_snippet lines to the Dockerfile, and build with --build-arg FALLOW_COMMIT_SHA=$GITHUB_SHA.
    • Server on a platform: the snippet reads the SHA that Vercel, Render, or Railway sets. On another platform, set FALLOW_COMMIT_SHA in the runtime environment.
  7. Add the CI steps. Add cloud.ci.steps to the job that builds and deploys, in the workflow from cloud.ci.workflows_detected. When that list is empty, or the project does not use GitHub Actions, ask the user which job deploys and adapt the steps to it. The checkout needs fetch-depth: 0. The upload step goes after the build step, and the build must emit source maps for the upload to send anything. The registration step goes after the deploy step. Follow cloud.ci.instructions.

  8. Tell the user what to do by hand. The user creates the keys in the Fallow Cloud dashboard, stores them as the secrets that the plan names, and deploys.

  9. Check the setup after the deploy. Ask the user to export FALLOW_API_KEY (a full key) in the shell. Run cloud.wait_command from the plan with --json added and $DEPLOYED_SHA set to the deployed commit SHA. It holds the project id. Then read the exit code:

    • 0: every step is done.
    • 1: a timeout. Read cloud.wait.activation.next. It names the step to do now and, where one exists, a command. activation is null when no read succeeded, and next.command can be null.
    • 2: an error. Read cloud.wait.message, or stderr when stdout has no JSON.

    The activation body can have step ids and states that this skill does not name. Report them as they are.

Common problems

  • beacon is problem: the beacon sends no commit SHA. Check step 5.
  • runtime stays waiting: the app has no production traffic yet, or the beacon commitSha is not the full SHA that CI used.
  • deployment is waiting: an older deployment still receives runtime. The new one becomes current on its first runtime data.
  • overlap is waiting: too few functions ran so far. Send more traffic.
  • source_maps is missing for an app that runs its source files without a bundle: it changes to not_needed when runtime joins the inventory.
  • overlap is problem: runtime paths do not match the inventory paths. A container that runs the code under another root, for example /app, needs --path-prefix on upload-inventory. A bundled app needs the source maps.
  • inventory fails in CI: the checkout is shallow. Set fetch-depth: 0.

References

  • Manual setup: the five steps by hand, for a fallow version without --cloud.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Fallow Cloud Setup AI 技能有什么作用?

Connect a JavaScript or TypeScript app to Fallow Cloud production runtime coverage. Use when asked to set up Fallow Cloud, add the Fallow beacon, send runtime coverage to Fallow Cloud, or find out why Fallow Cloud shows no data for a repository. Do not use for local code-quality tooling; use fallow-setup for that. Do not use to read runtime data of a repository that is already set up; use the fallow skill for that.

为什么在 TypingMind 中使用 Fallow Cloud Setup?

因为您只需安装一次,就能搭配任何模型使用。Fallow Cloud Setup 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Fallow Cloud Setup?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/fallow-rs/fallow-skills/tree/main/fallow/skills/fallow-cloud-setup。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Fallow Cloud Setup?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Fallow Cloud Setup 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Fallow Cloud Setup 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Fallow Cloud Setup AI 技能免费吗?

是的。fallow-rs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇