Logo Fallow Cloud Setup

Fallow Cloud Setup

Tổ chức
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.

Tổng quan

Nhà phát hànhfallow-rs
Kho mãfallow-skills
Tên kỹ năngfallow-cloud-setup
Sao
137
Bản fork
9
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được fallow-rs công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Fallow Cloud Setup trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/fallow-rs/fallow-skills/tree/main/fallow/skills/fallow-cloud-setup
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Fallow Cloud Setup trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Fallow Cloud Setup ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Fallow Cloud Setup không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Fallow Cloud Setup làm được gì?

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.

Vì sao nên dùng Fallow Cloud Setup trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Fallow Cloud Setup là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Fallow Cloud Setup trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/fallow-rs/fallow-skills/tree/main/fallow/skills/fallow-cloud-setup. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Fallow Cloud Setup?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Fallow Cloud Setup với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Fallow Cloud Setup với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Fallow Cloud Setup có miễn phí không?

Có. Kỹ năng này được fallow-rs phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇