agentleFS
ostrium-labsostrium-labs/loams-skills/skills/agent-platform/SKILL.md

agent-platform

Skill1 starsChanged 38 days agoApache-2.0View on GitHub

Design an agent product on Loams: agentd, sandboxed runs, memory, durable execution, Studio, software factory, marketplace, and Mastra. Use when the company's product includes agents rather than only data services.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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. Distinctive:

    Use this skill only if the company is building agents or agent-powered software.

    line 13
  2. Distinctive:

    Durable runs: Use Loams durable execution for retries, timers, signals, and history.

    line 34
  3. Distinctive:

    Sandbox: Run untrusted code in the sandbox, not in the API process.

    line 36
  4. Distinctive:

    Studio / factory / marketplace: Use them when the product needs an IDE, generated software, or distribution.

    line 44
  5. Very specific:

    Mastra: If the agent layer is TypeScript, loams-mastra is the bridge.

    line 46
  6. Distinctive:

    No long-lived credentials in a sandbox.

    line 57
  7. Distinctive:

    No shared memory namespace across tenants.

    line 58
  8. Distinctive:

    No unbounded agent loop without a budget and a stop switch.

    line 59
  9. Distinctive:

    No marketplace or factory launch before the metering and revocation paths work.

    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

Agent platform (optional)

Use this skill only if the company is building agents or agent-powered software. The core migration skills do not need it.

When to use

  • The product runs agents, tools, or generated software.
  • A team wants Studio, the software factory, or a marketplace.
  • An agent needs durable runs, sandboxing, or memory.

Inputs

  • company/architecture/target.md.
  • company/company.yaml.
  • Design 63: Meter, Design 71: app BYOG.
  • Upstream design docs 50, 52, 53, 56, 72, and 73 (optional snapshot group).

Procedure

  1. Separate the concerns. Model calls, tool execution, durable runs, memory, sandbox, UI, and billing are different failure domains.
  2. Durable runs. Use Loams durable execution for retries, timers, signals, and history. Every tool call must be idempotent or carry an idempotency key.
  3. Sandbox. Run untrusted code in the sandbox, not in the API process. Give the sandbox a short-lived token; never an IdP key.
  4. Memory. Store conversation and long-term memory in collections with retention and tenancy. Do not put one tenant's memory in another's namespace.
  5. Agents as principals. Each agent is a machine user with explicit grants; it never inherits its owner's permissions.
  6. Metering. Bill per run, tool call, token, or storage; define the unit and make the meter idempotent.
  7. Studio / factory / marketplace. Use them when the product needs an IDE, generated software, or distribution. Do not build all three on day one.
  8. Mastra. If the agent layer is TypeScript, loams-mastra is the bridge; keep Loams as the data and durable layer.

Outputs

  • company/architecture/agents.md — runs, tools, sandbox, memory, identity.
  • company/architecture/agent-billing.md — metering units and limits.
  • ADRs for sandbox, memory retention, and agent permissions.

Guardrails

  • No long-lived credentials in a sandbox.
  • No shared memory namespace across tenants.
  • No unbounded agent loop without a budget and a stop switch.
  • No marketplace or factory launch before the metering and revocation paths work.

References

  • Design 63
  • Design 71
  • Design 76
  • Design index

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.