agentleFS
CloudflareKnown publishercloudflare/kumo/ci/AGENTS.md

kumo / ci

AGENTS.md3.9k starsChanged 4 months agoMITView on GitHub

TypeScript scripts + shell scripts for validation, reporting, versioning, and deployment. 6 GitHub Actions workflows in .github/workflows/. Parent: See root AGENTS.md for monorepo context. Jobs communicate via filesystem: each writes JSON to ci/reports/{id}.json, final job reads all. getGitRefs() ad

  • Reads credentials

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 11 mentionsSep 2026: 28 mentionsOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/kumo repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cloudflare/kumo

The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 49

Talked about on GitHub and Bluesky (49 times).

On GitHub · 48

43 more on GitHub

The file

Files
AGENTS.md

CI/CD Scripts

TypeScript scripts + shell scripts for validation, reporting, versioning, and deployment. 6 GitHub Actions workflows in .github/workflows/.

Parent: See root AGENTS.md for monorepo context.

STRUCTURE

ci/
├── tsconfig.json              # ES2022, strict, Node types
├── reporters/
│   ├── types.ts               # Core types + artifact I/O (ci/reports/*.json)
│   ├── index.ts               # Reporter registry + re-exports
│   ├── npm-release.ts         # NPM beta install instructions (priority 10)
│   ├── kumo-docs-preview.ts   # Docs preview URL (priority 30)
│   └── visual-regression.ts   # Screenshot diff report
├── scripts/
│   ├── validate-kumo-changeset.ts   # Pre-push + CI changeset enforcement
│   ├── ensure-changeset-config.ts   # Guard: .changeset/config.json exists
│   ├── write-npm-report.ts          # Writes ci/reports/npm-release.json
│   ├── write-kumo-docs-report.ts    # Writes ci/reports/kumo-docs-preview.json
│   ├── post-pr-report.ts            # Aggregates artifacts → GitHub PR comment
│   └── create-release-pr.ts         # Creates release PR via GitHub API
├── utils/
│   ├── git-operations.ts      # Git ref detection (CI + local), diff, changed files
│   ├── github-api.ts          # Octokit wrapper (hardcoded: cloudflare/kumo)
│   └── pr-reporter.ts         # Markdown assembly + comment posting
├── visual-regression/
│   └── run-visual-regression.ts  # Creates vr-screenshots-{pr}-{runId} branches
└── versioning/
    ├── version-beta.sh        # changeset version + append -beta.<sha> via jq
    ├── publish-beta.sh        # Full pipeline: version → build → publish → verify (45s) → report
    ├── release-production.sh  # Branch → version → build → publish → verify (30s) → push → PR
    ├── deploy-kumo-docs-preview.sh   # Build → wrangler versions upload → preview URL → report
    └── deploy-kumo-docs-staging.sh   # Build → wrangler deploy --env staging

WHERE TO LOOK

TaskLocationNotes
Changeset validationscripts/validate-kumo-changeset.tsUsed by .vite-hooks/pre-push AND CI
PR comment systemreporters/ + scripts/post-pr-report.tsArtifact bus via ci/reports/*.json
Beta releaseversioning/publish-beta.shCalls version-beta.sh internally
Production releaseversioning/release-production.shCreates release branch + PR
Git operationsutils/git-operations.tsDual-mode: GitHub Actions env vars / local merge-base
Visual regressionvisual-regression/run-visual-regression.tsCreates ephemeral branches for screenshot diffs

CONVENTIONS

Artifact Bus Pattern

Jobs communicate via filesystem: each writes JSON to ci/reports/{id}.json, final job reads all.

publish-beta.sh → write-npm-report.ts → ci/reports/npm-release.json ──┐
                                                                       ├→ post-pr-report.ts → PR comment
deploy-docs-preview.sh → write-kumo-docs-report.ts → ci/reports/kumo-docs-preview.json ─┘
  • Priority determines display order (lower = higher in comment): npm=10, docs=30
  • Reporter returns null to skip (e.g., no package version = no npm section)
  • readReportArtifacts() handles partial failures via failures array

Shell ↔ TypeScript Boundary

  • Shell scripts: orchestration (npm auth, git config, sequential builds, wrangler)
  • TypeScript: structured operations (report generation, PR creation, GitHub API)
  • Data channel: environment variables (PACKAGE_VERSION, KUMO_DOCS_PREVIEW_URL, GITHUB_*)

Dual-Mode Git Operations

getGitRefs() adapts automatically:

  • CI: Uses GITHUB_BASE_REF / GITHUB_HEAD_REF
  • Local: Computes git merge-base origin/main HEAD
  • Uses execFileSync (array args) to prevent shell injection

GITHUB WORKFLOWS

WorkflowTriggerPurpose
release.ymlpush:mainchangesets/action (Version PR or publish)
pullrequest.ymlpull_request, push:opencode/**Build, lint, typecheck, test
docs-pr.ymlpull_requestBuild and test docs; upload preview artifact
package-preview-pr.ymlpull_request, push:opencode/**Publish package preview with pkg-pr-new
docs-preview-post-build.ymlworkflow_run, check_runDeploy fork docs; start visual regression
visual-regression.ymlworkflow_callVerify preview and compare screenshots
bonk.ymlissue_comment, pr_review_commentAI agent (@ask-bonk) via CF AI Gateway
bonk-pr-review.ymlpull_request:openedAutomatic Bonk review with a no-push token

ANTI-PATTERNS

PatternWhyInstead
Reading process.env.* directlyBypasses typed contextUse buildContextFromEnv()
Adding reporter without registryWon't be collectedAdd to reporters/index.ts array
Running release-production.sh as agentSensitive operationHuman-only; use DRY_RUN=true to test

NOTES

  • Verify-after-publish: Both beta (45s) and production (30s) scripts sleep then check npm registry. No retry logic.
  • DRY_RUN=true: Production release script gates all destructive operations; logs what would happen
  • Hardcoded repo: github-api.ts uses owner: "cloudflare", repo: "kumo"
  • Required secrets: NPM_TOKEN, CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, GITHUB_TOKEN, FIGMA_TOKEN (optional)
  • Bonk authentication: github.token for repository write-access checks; CF_AI_GATEWAY_ACCOUNT_ID, CF_AI_GATEWAY_NAME, and CF_AI_GATEWAY_TOKEN for AI Gateway
  • Visual regression: Creates ephemeral vr-screenshots-{pr}-{runId} branches for diff images
  • Fork PR security: docs-preview-post-build.yml handles fork PRs via workflow_run (no secrets in fork context)
  • Composite action: .github/actions/install-dependencies/action.yml installs pnpm 12.3.4, Node 24, with optional filter

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.