agentleFS
ostrium-labsostrium-labs/loams-skills/skills/sdk-portability/SKILL.md

sdk-portability

Skill1 starsChanged 39 days agoApache-2.0View on GitHub

Decide which services and clients stay in their language and use one of the 13 Loams SDKs, and keep behaviour identical across them with the conformance corpus. Use before rewriting an edge service or adding a language.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check SDK maturity: All 13 are 0.x. Not every language has every app module yet.

    line 35
  2. Distinctive:

    Do not hand-write REST or Connect calls.

    line 58
  3. Distinctive:

    Do not generate a per-language behaviour spec.

    line 59
  4. Distinctive:

    Do not assume a package is published.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

SDK portability

"Rewrite the stack in Rust" means rewrite the data-owning core. The edges can stay where they are and use their SDK.

When to use

  • A team proposes rewriting a web, mobile, data, or infrastructure service in Rust only to use Loams.
  • A language needs to be added or removed from the company's matrix.
  • A cross-language behaviour difference appears.

Inputs

  • company/stack-inventory/inventory.md.
  • company/architecture/target.md.
  • 13-SDK matrix, runtime contract, fixtures.

Procedure

  1. Classify the edge. Does it own data and hot-path logic, or does it call an API? Owns data → Rust candidate. Calls an API → keep the language.
  2. Check SDK maturity. All 13 are 0.x. Not every language has every app module yet; the matrix in reference/sdk/README.md is the source of truth.
  3. Choose the transport. Connect unary is the default; gRPC where the language has a native stack; the Connect fallback for hosts without one.
  4. Pin the package and record the version in company/sdk-matrix.md.
  5. Run the conformance suite for each language. Do not accept "it works in TypeScript" as evidence for another language.
  6. Keep one behaviour spec. Tokens, idempotency, retries, consistency, pagination, and error reasons are shared; per-language wrappers must not reinterpret them.

Outputs

  • company/sdk-matrix.md:

    Service/clientLanguagePackageVersionTransportConformanceKeep/Rewrite
  • ADRs for "keep this language" decisions.
  • CI entries that run the language's conformance suite where possible.

Guardrails

  • Do not hand-write REST or Connect calls; use the SDK.
  • Do not generate a per-language behaviour spec; use the shared contract.
  • Do not assume a package is published; check the registry and the release status before committing to it.
  • A language without a required app module is a reason to wait or bridge, not to invent one.

References

  • 13 SDKs
  • Runtime contract
  • Fixtures
  • Design 44

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.