scaffold-models

scaffold-models is a skill for Claude Code from SyntaxArc/archipy-plugin. It costs 49 tokens per session (1,652 once invoked), scanned A, original, MIT.

A generator for ArchiPy model code under the models directory. It can create data-transfer objects, which carry validated data between parts of an application, along with errors, database entities, and shared types.

In plain words
What is it for?
Use it to add a DTO or schema, request or response model, error type, SQLAlchemy database entity, or domain type.
Why use it?
It keeps request, response, database, and error definitions organized and consistent with neighboring domains.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: mentions subagents; mentions Claude Code.

Part of the archipy plugin — 22 skills, 1 agent shipped together

Good fit Use it to add a DTO or schema, request or response model, error type, SQLAlchemy database entity, or domain type.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/syntaxarc/archipy-plugin/scaffold-models
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SyntaxArc/archipy-plugin --skill scaffold-models
Clone the repo
git clone --depth 1 https://github.com/SyntaxArc/archipy-plugin

Made for: Claude Code.

Or install archipy, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scaffold-models

README.md
[![agentmods](https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-models/github.svg)](https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-models)
Your own site
<a href="https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-models"><img src="https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-models/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scaffold-models

Your own site · 80×15
<a href="https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-models"><img src="https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-models.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01652
Opus 5.5 $0.00020 $0.00661
Sonnet 5.5 $0.00010 $0.00330
Haiku 4.5 $0.00005 $0.00165

Measured 1mo ago against content hash 3267476f2d18, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scaffold-models scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/scaffold-models/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold ArchiPy Models

Scope

Only models/. Do not create repositories, logics, services, or helpers here.

Read first

Read these plugin rules in full before generating files (paths relative to this skill directory; Claude Code: ${CLAUDE_SKILL_DIR}/../../rules/):

  • ../../rules/using-archipy-models.mdc
  • ../../rules/architecture-for-apps.mdc
  • ../../rules/using-archipy-utils.mdc

Before writing files

  1. Inspect existing models/ (DTOs, errors, entities, types), neighboring domains, and the installed ArchiPy version.
  2. Infer domain name, DTO naming, and error grouping from existing modules.
  3. Ask only for unresolved domain / operation names.
  4. Preserve existing model modules; do not overwrite.

Generate

models/
├── dtos/<domain>/
│   ├── domain/v{n}/
│   │   ├── <op>_input_dto.py
│   │   └── <op>_output_dto.py
│   └── repository/
│       ├── <action>_command_dto.py
│       └── <action>_query_dto.py
├── errors/
│   └── <domain>_errors.py
├── entities/                    # optional
│   └── <domain>_entity.py
└── types/                       # optional
    └── <domain>_types.py

Naming: *InputDTO / *OutputDTO for domain (versioned under domain/v{n}/); *CommandDTO / *QueryDTO / *ResponseDTO for repository (never versioned). Any repository method with two or more parameters takes a single *CommandDTO (write) / *QueryDTO (read) instead of positional arguments. Entities/DTOs for JWT-authenticated writes carry an explicit actor_uuid that fills created_by*/updated_by* (actor from current_actor/act first, token user_id/sub second; never a path owner uuid). Prefer ArchiPy BaseDTO and the exported BaseError hierarchy. Verify imports against the app's installed ArchiPy version before writing.

Example shapes (order → rename):

# models/dtos/order/domain/v1/order_create_input_dto.py
from pydantic import Field, PositiveInt

from archipy.models.dtos.base_dtos import BaseDTO


class OrderCreateInputDTO(BaseDTO):
    """Domain input crossing the service → logic boundary."""

    customer_id: str = Field(min_length=1)
    sku: str = Field(min_length=1)
    quantity: PositiveInt

Read the full file on GitHub · 160 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines 3267476f2d18
  2. 1mo ago Changed · +23 lines 386242a00206
  3. 2mo ago Changed · +1 lines f25ba409c3d0
  4. 2mo ago Changed · +1 lines 235988801863
  5. 2mo ago First seen · 132 lines · 49 tokens per session scan A 7a47a44855de

Subscribe to this mod's changes

scaffold-models is a skill published in the GitHub repository SyntaxArc/archipy-plugin (3 stars, last pushed 24d ago), licensed MIT. It adds 49 tokens to every session and 1,652 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

scaffold-models compared with skills from other repositories

scaffold-models next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffold-modelsSyntaxArc/archipy-pluginSkill324d agoMITA49Claude Code
clean-architecture-pythonSebastienDegodez/skraft-pluginSkill17yesterdayGPL-3.0A73Claude Code
fastapi-templateswshobson/agentsSkill43kyesterdayMITA37Claude Code
azure-mgmt-apicenter-pytmolavi/mcp-agent-skills-hubSkill114d agoMITA31Claude Code, Codex
python-fastapi-developmenttmolavi/mcp-agent-skills-hubSkill114d agoMITA28Claude Code, Codex
dbos-pythontmolavi/mcp-agent-skills-hubSkill114d agoMITA43Claude Code, Codex
fastapi-router-pytmolavi/mcp-agent-skills-hubSkill114d agoMITA25Claude Code, Codex