scaffold-archipy-domain

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

A scaffold for adding a complete business area, or domain, to an ArchiPy Python application. It creates the data objects, errors, database adapters, application logic, and service layer for that area.

In plain words
What is it for?
Adding domains such as orders, including their data-transfer objects, repository adapters, use cases, and FastAPI or gRPC service endpoints.
Why use it?
It avoids repeatedly designing the same set of files when adding a new part of an existing application.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the archipy plugin — 13 skills, 20 commands shipped together

Good fit Adding domains such as orders, including their data-transfer objects, repository adapters, use cases, and FastAPI or gRPC service endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/syntaxarc/archipy-plugin/scaffold-archipy-domain
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-archipy-domain
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 13 skills, 20 commands.

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-archipy-domain

README.md
[![agentmods](https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-archipy-domain.svg)](https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-archipy-domain)
Your own site
<a href="https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-archipy-domain"><img src="https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-archipy-domain.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,170 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.00043 $0.01170
Opus 5 $0.00022 $0.00585
Sonnet 5 $0.00009 $0.00234
Haiku 4.5 $0.00004 $0.00117

Measured today against content hash b7aafade64b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scaffold-archipy-domain 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 today.

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-archipy-domain/SKILL.md · 139 lines

How it starts

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

Scaffold ArchiPy Domain

Before writing files

  1. Inspect pyproject.toml, the package tree, neighboring domains, DI containers, and existing tests.
  2. Infer package name, installed extras, naming, transport, and sync/async style from the repository.
  3. Ask only for unresolved choices that materially change the generated slice:
    • Domain name
    • Missing infrastructure/extras
    • Transport when the app does not already establish one (default FastAPI)
  4. Preserve existing files. Extend compatible modules; stop and explain conflicts instead of overwriting them.

Compose — do not fork templates

Before generating files, read these plugin skills in full:

  • ../scaffold-archipy-adapter/SKILL.md
  • ../scaffold-archipy-logic/SKILL.md
  • ../scaffold-archipy-service/SKILL.md

Apply their constraints and Verify sections in order; do not replace them with summaries:

  1. Models — stubs below, then flesh via using-archipy-models rule
  2. scaffold-archipy-adapter — thin wrapper under repositories/<domain>/adapters/ + <domain>_repository.py
  3. scaffold-archipy-logic — at least one use-case under logics/<domain>/
  4. scaffold-archipy-serviceservices/<domain>/v1/<domain>_service.py

Install extras as needed: uv add "archipy[<extras>]".

Model stubs (create first)

models/
├── dtos/<domain>/
│   ├── domain/v1/
│   │   ├── <domain>_input_dto.py
│   │   └── <domain>_output_dto.py
│   └── repository/
│       └── <domain>_command_dto.py
├── errors/
│   └── <domain>_errors.py
└── entities/                    # optional
    └── <domain>_entity.py

Example shapes (order → rename):

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

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: int = Field(gt=0)

Read the full file on GitHub · 139 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. today Changed · +17 lines b7aafade64b1
  2. 7d ago First seen · 122 lines · 43 tokens per session scan A 4f3c52bcbd19

Subscribe to this mod's changes

scaffold-archipy-domain is a skill published in the GitHub repository SyntaxArc/archipy-plugin (2 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,170 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

fastapi-templates

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

wshobson/agents · 37 tokens

telnyx-numbers-python

Search, order, and manage phone numbers by location, features, and coverage.

team-telnyx/ai · 23 tokens

telnyx-ai-outbound-voice-python

End-to-end setup for making a Telnyx AI assistant call a phone number. Covers provisioning a phone number, creating a TeXML application, assigning the number, configuring telephony settings, whitelisting destination countries, and triggering outbound calls via scheduled events. Use this skill (not…

team-telnyx/ai · 97 tokens

specx-component-architecture

Design or review specx core scope boundaries in Python services. Use when deciding where code belongs across packaged scoped foundation bases, optional local foundation extensions, core/, capabilities, delivery, infrastructure, shared/, and ioc; when adding guardrails or splitting use cases, services, DTOs, schemas…

maksimzayats/specx · 74 tokens

specx-project-structure

Create or reshape a Python FastAPI service repo into the specx clean core/delivery architecture using packaged scoped foundation bases. Use when starting an API backend, adding the first src package, or establishing AGENTS.md, core/, optional local foundation/, delivery/, infrastructure, ioc/, migrations, and tests.

maksimzayats/specx · 75 tokens

specx-add-core-use-case

Add or refactor a specx core scope use case. Use when implementing an externally meaningful application action under a core scope usecases package, adding same-file command/query inputs, result DTOs, coordinating services, opening a unit-of-work transaction, or moving behavior out of delivery or infrastructure into…

maksimzayats/specx · 70 tokens