<< All versions

Skill v1.0.0

currentAutomated scan100/100
saasplane/spn-claude-marketplace/implement
──Details
PublishedNovember 24, 2026 at 12:54 PM
Content Hashsha256:621e0f34ccf08c9d...
Git SHA3a758b119bff
──Files
Files (1 file, 17.3 KB)
SKILL.md17.3 KBactive
SKILL.md · 166 lines · 17.3 KB

name: implement description: Author an estate node - locate it, write the choices a person actually makes into its manifest, and build out a lifecycle module package end to end. Use when adding or changing an environment, an app grant row, a module row, a region, a schema, a size, a hosting or a deploy trigger; and when a platform needs a lifecycle plug-in - a vendor you run, a warehouse, a search engine, anything attached at a layer step. Not for scaffolding a node that does not exist yet (new skill), not for reading a plan back (review skill), and not for publishing (release skill). metadata: version: "1.0.0"


<!-- spn:restates { "docs": [ { "path": "spn-foundation/docs/02-constructs/01-devex/02-agent/02-skills.md", "seen": "00d468e8" }, { "path": "spn-foundation/docs/02-constructs/01-devex/01-function/04-develop.md", "seen": "1e3741bc" } ] } -->

implement — locate the node, write the choices, build the module

Read `refs/devex/workspace/workstream.md` (spn-devex) before acting. It holds the loop this skill runs inside: how a prompt is read, where a new ask goes, what a prompt does to a running arc, and how a reply closes.

The estate declares; it never implements what it declares. A change to what exists is an edit to a src/spestate.json (or a spinfrapkg.json), and the whole change must read back as the small set of choices it makes. Read refs/support/infra/packages.md, in this plugin, for the manifest shapes and the locator rules; refs/support/infra/laws.md for the lines no edit may cross; refs/support/infra/modules.md for what a module is and where it may attach.

1 · Locate the node

Find the node root by spinfrapkg.json and read the type from src/spestate.json — never infer it from the folder name. Organization-scoped choices (regions, packages, blueprint pin, org modules) belong to the ORGANIZATION node; platform-scoped ones (environments, apps, resources, platform modules) to the PLATFORM node. An edit landing in the wrong scope is the first finding.

2 · Edit — a person writes choices, and nothing else

May be typedNever typed
codes, regions, networkIndex values, environments, sizes, hosting, deploy triggers, schema rows, module rows, app grant rows, package refs, portsderived names or addresses · discovered identifiers · secrets, ARNs, account ids · provider strings outside a cloud entry
  • `src/spestate.json` opens on `type`, with config discriminated by its mtype. `spinfrapkg.json` names the publishable artifact — name · version (the semver) · description · author · license — and an infra tree holds no package.json (RULE.SUPPORT.INFRA.066 · MUST · skill:spn-infra/implement).
  • `networkIndex` is append-only, forever — a freed index is never reused. An index places its region, platform or environment in the cloud address plan and says nothing about local ports.
  • Every local port sits inside the hundred the platform declares in `providers.local.ports: { first, last }`, in the part of it that holds its kind of listener (RULE.SUPPORT.INFRA.062 · MUST · skill:spn-infra/implement) — engines +00–14, modules +15–29, services +30–39, health listeners +40–49, web apps +50–69, spaces +70–99. Module and space ports derive, so type one only as an override. infra validate refuses a port outside the range or in the wrong part of it.
  • A module row's source is a locator: a path while iterating (version: null), a scoped package + semver once published. Keep hosting null unless there is a real pin to make.
  • The `apps[]` rows are the cloud grant list — deploy requires claim (spkind.config.code) ∧ grant (kindCode). Granting an app is a declaration change here, never anything in the app's own repo.
  • setup is free text and nothing derives from it — never encode posture in a name; posture is workload.

The declaration change rides a pull request — PRs plan, merges apply (see refs/support/infra/laws.md, plan-is-the-review). Before asking anyone to look at it, run the verify skill, then present it with the review skill's one-line-per-choice form.


Authoring a lifecycle module

A module is a package attached to the layer lifecycle — the estate's one extension point. It consumes only the outputs published at its named step, runs under that scope's credentials, and publishes into /environments/{env}/modules/{code}/* and the config plane. Its supply reaches apps as configured values, never as new vocabulary. The tri-law binds everything below (refs/support/infra/laws.md §6).

A vendor reached over the network is not a module — that is application configuration behind a support seam, and the estate never sees it.

3 · Name by purpose, scaffold

The code is a purpose, never a product — idp, not a vendor name — so swapping the product changes no consumer. Use the new skill: spnutils infra scaffold module <code>.

4 · The identity-only manifest

src/spestate.json is { "type": "MODULE", "config": null }; spinfrapkg.json gives name: "@{org}/infra-module-{code}" with version the module's semver, plus description · author · license — and no package.json beside it (RULE.SUPPORT.INFRA.066 · MUST · skill:spn-infra/implement). Usage stays on the referencing `modules[]` row — the module defines its variables; the declaring row values them. Nothing about a consumer ever enters the module.

5 · Renderings derive from the tree

src/local/ (the compose rendering) first — local-first is the loop; src/{cloud}/ where a cloud rendering ships, the code being the one the estate declares rather than one typed here. A rendering absent is absent, not stubbed — its folder's presence is exactly what the hosting-pin check reads. A module shipping one rendering runs that one; shipping both, it follows the environment unless its row pins one.

6 · Compose the library — never reimplement it

The baseline's machinery is exposed to renderings as identity-scoped functions; a module composes them and is as capable as a blueprint step:

FunctionMintsThe scoping
publishFacta {SPC}_{CODE}_* key in the globalskey composed from the caller's purpose code — off-grammar keys impossible
mintDatabase{spc}_{module} owned by {module}_admthe vendor-DB narrowing — never a platform schema
registerHost{env}-{purpose}.{spd} / the local vhostthe DNS grammar, composed
mintManagedResourcefull coordinates + the required tag setdetach = the reverse of the tagged footprint, data refused

You never pass a key or a name — the library composes them. A module's workload lands in the VND namespace, internal only; modules are that namespace's only writers. No function reaches platform ground — a module that cannot live without changing platform ground is asking the blueprint for a capability, and that request travels as a declaration change.

7 · Wire the consuming row — path locator while iterating

On the consuming platform's modules[]: code · layer · after (a named step that publishes outputs) · source: ./packages/infra-module-<code> · version: null · hosting: null unless a real pin · config values. That edit is §1 and §2 above.

8 · Prove

text
spnutils infra validate module # tree to type, manifest to contract
spnutils infra test <run> <package> # the render harness — templates plan against fixtures
spnutils infra platform up <spc> --plan # the rendering, locally

A cloud plan refuses the path-resolved ref by name — that is the correct gate, not a failure to fix around; it opens when the pin exists. See the verify skill for what each green run proves.

9 · Release, then flip the pin

Use the release skill (bump version in spinfrapkg.json → spnutils infra release <package>, to the org's registry pair). Then flip the consuming row: source: "@{org}/infra-module-<code>", version a semver — and run spnutils infra platform up <spc> --plan --cloud to see the gate open. Refs flip at each consumer's own pace.

Hand-off

verify to prove the edit; review when a plan output or a declaration diff needs a verdict; release when a package must publish; new when the change turned out to need a node that does not exist yet.

The rules this step holds

<!-- Generated by the plugins build from spn-devex/src/refs/rules.json. Change the book, never these lines. -->

  • SCM and CLOUD are the two ports a blueprint library fills (RULE.SUPPORT.INFRA.007 · MUST · skill:spn-infra/implement)
  • A capability is either typed and created by SaaS Plane, or it sits outside the estate completely. There is no third answer (RULE.SUPPORT.INFRA.012 · MUST · skill:spn-infra/implement)
  • shipped, not authored (RULE.SUPPORT.INFRA.013 · MUST · skill:spn-infra/implement)
  • There is no architecture template, and no syntax for one (RULE.SUPPORT.INFRA.014 · MUST · skill:spn-infra/implement)
  • You write choices, and you never write an identifier (RULE.SUPPORT.INFRA.022 · MUST · skill:spn-infra/implement)
  • A layer boundary earns itself only where the two sides differ in blast radius or in cadence (RULE.SUPPORT.INFRA.023 · MUST · skill:spn-infra/implement)
  • The estate declaration keeps only the choices a person makes (RULE.SUPPORT.INFRA.027 · MUST · skill:spn-infra/implement)
  • A hosted vendor's local lifecycle is the platform's own, driven by `modules[]`, with no vendor command group, and `mod` is not a namespace token (RULE.SUPPORT.INFRA.028 · MUST · skill:spn-infra/implement)
  • Realization follows (account × region) (RULE.SUPPORT.INFRA.030 · MUST · skill:spn-infra/implement)
  • No application segment exists, because an application never composes a key (RULE.SUPPORT.INFRA.035 · MUST · skill:spn-infra/implement)
  • Org-singular governance gets its own two seats (RULE.SUPPORT.INFRA.039 · MUST · skill:spn-infra/implement)
  • An immutable, versioned artifact stream is installed once at organization scope and consumed by pin, and an instrument that runs with state belongs to the platform (RULE.SUPPORT.INFRA.040 · MUST · skill:spn-infra/implement)
  • two stores, split by audience rather than by sensitivity (RULE.SUPPORT.INFRA.041 · MUST · skill:spn-infra/implement)
  • The CORS origin regex is an authored key (RULE.SUPPORT.INFRA.044 · MUST · skill:spn-infra/implement)
  • present-but-empty marker (RULE.SUPPORT.INFRA.046 · MUST · skill:spn-infra/implement)
  • Storage rides the same pair grammar (RULE.SUPPORT.INFRA.047 · MUST · skill:spn-infra/implement)
  • The health port is `{CODE}_HEALTH_PORT` (RULE.SUPPORT.INFRA.048 · MUST · skill:spn-infra/implement)
  • One world-marking rule covers every service hostname class (RULE.SUPPORT.INFRA.052 · MUST · skill:spn-infra/implement)
  • The sequence can never be declared (RULE.SUPPORT.INFRA.054 · MUST · skill:spn-infra/implement)
  • `ENDPOINTS` is a per-connection-block fact (RULE.SUPPORT.INFRA.055 · MUST · skill:spn-infra/implement)
  • Module facts keep their three-way placement (RULE.SUPPORT.INFRA.057 · MUST · skill:spn-infra/implement)
  • browser-reachable under every hosting (RULE.SUPPORT.INFRA.060 · MUST · skill:spn-infra/implement)
  • A platform declares the five hundred local ports it owns, and writes both ends: `providers.local.ports: { first, last }`, where `first` is a multiple of 500 and `last` is `first + 499` (RULE.SUPPORT.INFRA.062 · MUST · skill:spn-infra/implement)
  • A key never names a bucket (RULE.SUPPORT.INFRA.063 · MUST · skill:spn-infra/implement)
  • So an environment is derived, and only what its own row declares may vary (RULE.SUPPORT.INFRA.064 · MUST · skill:spn-infra/implement)
  • singular for the whole company (RULE.SUPPORT.INFRA.065 · MUST · skill:spn-infra/implement)
  • an estate repository carries no `package.json` (RULE.SUPPORT.INFRA.066 · MUST · skill:spn-infra/implement)
  • A resource world's schemas are its own named baseline plus what it declares, which adds and never replaces, and no resource passes from the platform's resources to a space's (RULE.SUPPORT.INFRA.077 · MUST · skill:spn-infra/implement)
  • Every object key leads with `public/` or `private/` (RULE.SUPPORT.INFRA.080 · MUST · skill:spn-infra/implement)
  • A customer's hostname is issued and bound when the request to serve it arrives, through the edge seam, and never by an apply (RULE.SUPPORT.INFRA.084 · MUST · skill:spn-infra/implement)
  • Every declared domain stands a public zone `{domain}` and a private zone `internal.{domain}`. The private zone is a child name, never the apex (RULE.SUPPORT.INFRA.086 · MUST · skill:spn-infra/implement)
  • Each declared domain gets one `{lc-domain}`, its own certificates from the machine's root CA, and an answer from the machine's local resolver (RULE.SUPPORT.INFRA.087 · MUST · skill:spn-infra/implement)
  • A signing secret rotates without signing anybody out (RULE.SUPPORT.INFRA.095 · MUST · skill:spn-infra/implement)
  • One tenant edge, stood by the platform layer, serves the customer hosts of every environment (RULE.SUPPORT.INFRA.104 · MUST · skill:spn-infra/implement)
  • The resolver's one configuration is written with one privileged prompt, and then nothing else on the machine needs a privilege to serve a host (RULE.SUPPORT.INFRA.106 · MUST · skill:spn-infra/implement)
  • `CLUSTER` mirrors the local realization, one engine at a time (RULE.SUPPORT.INFRA.108 · MUST · skill:spn-infra/implement)
  • Two labels belong to the grammar and never to a deployment (RULE.SUPPORT.INFRA.119 · MUST · skill:spn-infra/implement)
  • The gateway's rate limit store is published beside them (RULE.SUPPORT.INFRA.120 · MUST · skill:spn-infra/implement)
  • Each resource family in a world gets one default engine, named `app` and never written, as a database gets its baseline schemas. A declaration lists only what goes beyond it (RULE.SUPPORT.INFRA.124 · MUST · skill:spn-infra/implement)
  • A prefix is one word for a platform and two words for a space (RULE.SUPPORT.INFRA.127 · MUST · skill:spn-infra/implement)
  • An application deploys because a row grants it, and never because the code exists (RULE.SUPPORT.INFRA.128 · MUST · skill:spn-infra/implement)
  • A row carries keys of both kinds, they look alike, and telling them apart is what keeps a review honest (RULE.SUPPORT.INFRA.129 · MUST · skill:spn-infra/implement)
  • A deployment's shape decides what it adds, never what it may omit (RULE.SUPPORT.INFRA.130 · MUST · skill:spn-infra/implement)
  • Which edge a deployment answers on, which zone it sits in, and whether it stands on the public attack surface at all are one declared fact (RULE.SUPPORT.INFRA.131 · MUST · skill:spn-infra/implement)
  • The estate half answers every requirement the foundation states, in writing, in its own repository, and never in prose inside the book (RULE.SUPPORT.INFRA.137 · MUST · skill:spn-infra/implement)
  • There is one folder per category, its instances beneath it, and the local realization beside them (RULE.SUPPORT.INFRA.138 · MUST · skill:spn-infra/implement)
  • Everything a provider knows lives in its instance (RULE.SUPPORT.INFRA.139 · MUST · skill:spn-infra/implement)
  • The local realization fills no category and binds nothing (RULE.SUPPORT.INFRA.140 · MUST · skill:spn-infra/implement)
  • A layer an instance has not implemented is absent, and never present as something that accepts a call and does nothing (RULE.SUPPORT.INFRA.143 · MUST · skill:spn-infra/implement)
  • Where a rule reaches both realizations it is written once and rendered twice, and never left to a configuration file both read (RULE.SUPPORT.INFRA.144 · MUST · skill:spn-infra/implement)
  • The acting role trusts the estate repository's pipeline role by name, and no other principal becomes it (RULE.SUPPORT.INFRA.145 · MUST · skill:spn-infra/implement)
  • The deployments layer is applied by the pipeline alone, from a push, by digest (RULE.SUPPORT.INFRA.146 · MUST · skill:spn-infra/implement)
  • The organization owns every domain, registered once, and a domain outlives any platform (RULE.SUPPORT.INFRA.147 · MUST · skill:spn-infra/implement)
  • A burstable size is refused in production (RULE.SUPPORT.INFRA.149 · MUST · skill:spn-infra/implement)
  • The organization owns the catalog, and each platform chooses from it (RULE.SUPPORT.INFRA.150 · MUST · skill:spn-infra/implement)
  • An environment's size is the default and the floor (RULE.SUPPORT.INFRA.151 · MUST · skill:spn-infra/implement)
  • A deployment is told who it is and where its traces go (RULE.SUPPORT.INFRA.154 · MUST · skill:spn-infra/implement)
  • An application is given a module's settings only when its row names the module (RULE.SUPPORT.INFRA.157 · MUST · skill:spn-infra/implement)
  • The estate publishes whether an environment is production, and only a non-production one may let a request simulate time (RULE.SUPPORT.INFRA.158 · MUST · skill:spn-infra/implement)
  • The edge and the app split a web app's headers: the edge sends transport and framing, and the app sends the content policy (RULE.SUPPORT.INFRA.159 · MUST · skill:spn-infra/implement)
All versions