arch-scaffold-entity SKILL.md skillA

arch-scaffold-entity from baristaze/swe_guidelines is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add baristaze/swe_guidelines/arch-scaffold-entity@git:20261022.7464806

Pins git:20261022.7464806 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
baristaze/swe_guidelines
Path
skills/arch-scaffold-entity/SKILL.md
Versions recorded
15
Latest version
git:20261022.7464806, committed Oct 22, 2026
First version recorded
Sep 20, 2026
Size
13,200 bytes
Repository stars
94
License
MIT

Add one entity to an object-model namespace: the frozen type, the table and its migration with its policy, storage in Postgres and memory, manager operations, wire types, routes, a portal screen, and tests, in the shape of the scaffold's own. Python and TypeScript.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# arch-scaffold-entity

A path that starts with `../` is read from this skill's folder
as `realpath` resolves it.
Conventions: `../_shared/scaffold-conventions.md`.
Sections of `../../architecture.md`: Naming
Entities (Identifiers), The Business Layer (Shape of an Operation), The
Storage Layer (Namespace Shape, Defining ORM Classes, Translation, A
Storage Impl, Database Roles, The Second Fence, Migrations), The Network
Layer (Service Interfaces and Impls, Public Types, Realtime at the
Edge), Documentation as Code (A README at Every Level), Cross-Cutting
Conventions (Exceptions). A section is read with its own introduction.

## Input

`<namespace> <EntityName> [field:type ...] [--role core|activity|queue|admin] [--scope system|org|identity|both] [--person-column <col>] [--no-api]`

Example: `inventory Warehouse address:str timezone:str`. The role
defaults to `core`, the scope to `org`. Ask in one message for the
fields not given and their types, and for the list below; with no one
to answer, decide them as the conventions' step 4 says:

- the mixins: `Named`? `Trackable`? `SoftDeletable`? A mixin is
  composed only when an operation exercises it: `Trackable` needs an
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add baristaze/swe_guidelines/arch-scaffold-entity@sha256:e649968a0035a941

The line at the top of this page pins the label git:20261022.7464806, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_scursukixcqdvy6c.svg)](https://markdownregistry.com/a/art_scursukixcqdvy6c)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 15 versions of this file, between Sep 20, 2026 and Oct 22, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261022.7464806 latest2026-10-22 7464806 13,200 BA view · diff
git:20261014.7748a1f2026-10-14 7748a1f 13,115 BA view · diff
git:20261014.2ed83a02026-10-14 2ed83a0 11,651 BA view · diff
git:20261014.62aa70e2026-10-14 62aa70e 11,063 BA view · diff
git:20260930.a5cd94d2026-09-30 a5cd94d 11,048 BA view · diff
git:20260929.34220142026-09-29 3422014 10,863 BA view · diff
git:20260929.5f6c2642026-09-29 5f6c264 10,833 BA view · diff
git:20260929.65e10932026-09-29 65e1093 10,788 BA view · diff
git:20260922.28cefc12026-09-22 28cefc1 18,168 BA view · diff
git:20260922.81ce1ea2026-09-22 81ce1ea 15,541 BA view · diff
git:20260922.e4ae97c2026-09-22 e4ae97c 14,468 BA view · diff
git:20260921.419a8e92026-09-21 419a8e9 14,626 BA view · diff
git:20260921.f72eecd2026-09-21 f72eecd 13,843 BA view · diff
git:20260921.93b5e1e2026-09-21 93b5e1e 12,717 BA view · diff
git:20260920.a3578972026-09-20 a357897 12,670 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (13200 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

baristaze/swe_guidelines · 94 stars · license MIT · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_scursukixcqdvy6c
GET https://markdownregistry.com/api/v1/resolve?ref=baristaze/swe_guidelines/arch-scaffold-entity
GET https://markdownregistry.com/api/v1/blob/e649968a0035a9416a37012797a344bbe7aff19f75b5e684104f407df7328d07

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from baristaze/swe_guidelines

CLAUDE.md@.claude CLAUDE.md file
baristaze/swe_guidelines · .claude/CLAUDE.md
git:20261004.1522cbc · audit B · 94 stars
AGENTS.md AGENTS.md file
baristaze/swe_guidelines · AGENTS.md
git:20261022.3569cc8 · audit A · 94 stars
audit-credential-lifetimes SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-credential-lifetimes/SKILL.md · Audit how long each credential keeps working after it should stop: one row per credential kind (auth session, API key…
git:20261014.62aa70e · audit B · 94 stars
audit-database-calls SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-database-calls/SKILL.md · Audit how many database calls each endpoint and each worker flow makes, at its least and at its most: round trips…
git:20261014.7748a1f · audit B · 94 stars
audit-deploy-time SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-deploy-time/SKILL.md · Audit where a deploy's minutes go: the pipeline's jobs and steps from the Actions run, the Terraform apply's resources…
git:20260929.3422014 · audit A · 94 stars
audit-provider-calls SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-provider-calls/SKILL.md · Audit every call to an external provider (WorkOS, the AWS services, any HTTP to a third party), per flow: each route…
git:20261014.7748a1f · audit A · 94 stars
audit-query-indexes SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-query-indexes/SKILL.md · Audit whether the indexes fit the queries, and what breaks first under load: every statement the Postgres storage…
git:20261014.62aa70e · audit A · 94 stars
audit-retention SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/audit-retention/SKILL.md · Audit which stores grow without bound and what trims them: every table of every role, with what writes it, when a row…
git:20261014.62aa70e · audit A · 94 stars
docs-compact SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/docs-compact/SKILL.md · Compact the tree's documents to what holds at the head of the main branch: rewrite each ADR to its present decision…
git:20261015.a329574 · audit A · 94 stars
ops-cloud-deployment-create SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/ops-cloud-deployment-create/SKILL.md · Create one cloud environment of the system from nothing, in its own AWS account, as that account's administrator: the…
git:20261014.62aa70e · audit A · 94 stars
ops-cloud-deployment-nuke SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/ops-cloud-deployment-nuke/SKILL.md · Destroy one cloud environment of the system as its account's administrator: empty the buckets, destroy the environment…
git:20261014.62aa70e · audit A · 94 stars
ops-infra-as-code SKILL.md skill
baristaze/swe_guidelines · scaffold/acme_root/.agents/skills/ops-infra-as-code/SKILL.md · Write or change the system's Terraform in the shape the guideline prescribes: one module graph shared by every…
git:20261014.62aa70e · audit A · 94 stars

Every file in baristaze/swe_guidelines

Browse by kind, by grade A, or by owner.