agentleFS
Kevin-Liu-01Kevin-Liu-01/Claude-of-Tanks/api/SKILL.md

api-skill

Skill448 starsChanged 4 months agoMITView on GitHub

Maintain the deployed ICE credential, telemetry, Jev proxy and public GitHub-count HTTP entrypoints.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. JustSteveKing/api-skill★ 82same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Keep ICE responses private/no-store and credentials server-side.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claude-of-tanks / api

Purpose

<!-- agent-docs:fill:purpose -->

Expose the hosted application's small server-side API surface. Keep deployment adapters thin; room policy belongs to src/mp/room and server/, not browser code.

Mental model & key files

<!-- agent-docs:fill:model -->

ice.ts provides validated static, coturn, or Cloudflare TURN configuration: the client (src/mp/transport/iceConfig.ts) asks /api/ice on https pages and uses host candidates on LAN. github-stars.ts proxies the public repository count with bounded upstream requests and cache headers. telemetry.ts is the entry-telemetry fallback sink (docs/ENTRY-RESILIENCE.md), used only while VITE_TELEMETRY_URL is unset: one v2 record per request validated through the shared schema server/telemetryRecord.ts (personal field names refused), one log line per record, no store. The production sink is the Cloudflare Worker cloudflare/telemetry (Workers Analytics Engine). jev.ts is the Jev commander proxy (docs/JEV-COMMANDER.md): one text-only team document per request, validated and bounded, the TypeSafe questions built server-side, the server-held TYPESAFE_API_KEY never leaving the function, upstream 401/422/429/529/timeouts mapped to clean errors with a cool-down, per-address and per-session buckets, a session budget and a global ceiling. Deployment routes are configured in vercel.json. The signaling function of the first multiplayer (api/signal.ts) left the tree with the cutover of 2026-09-29 (docs/MULTIPLAYER-V2.md §13.10): rooms live in the cloudflare/rooms Worker.

Patterns to follow / invariants

<!-- agent-docs:fill:patterns -->
  • Preserve allowed-origin checks, method/status contracts, and upstream timeouts.
  • Keep ICE responses private/no-store and credentials server-side. Document environment variable names only; never commit secret values or log credentials.
  • Handler factories accept injected fetch, clock, and environment dependencies so failure paths can be tested without external services.

Common tasks → first action

<!-- agent-docs:fill:tasks -->
  • TURN configuration: inspect ice.ts and run node server/ice.selftest.mjs.
  • Star-count responses: run node server/githubStars.selftest.mjs; inspect src/ui/githubStars.ts for the loading/error presentation contract.
  • Telemetry beacon: run node server/telemetryRecord.selftest.mjs, node server/telemetry.selftest.mjs and node src/entry/telemetry.selftest.mjs; the Worker sink is npm run test:telemetry:cloudflare; read the funnel with node tools/telemetry-report.mjs (docs/ENTRY-RESILIENCE.md, cloudflare/telemetry/README.md).
  • Jev commander proxy: run node server/jev.selftest.mjs (fake upstream: auth header, server-built questions, every error mapping, rate limits, budget, origin and state validation); locally npm run jev:dev serves it on 8794 with the key from the environment (docs/JEV-COMMANDER.md).

Gotchas

<!-- agent-docs:fill:gotchas -->

TURN credentials and a public count have different caching requirements. Do not import a function module into client bundles.

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.