一键导入
ddd-architect
Design and build Python systems using Domain-Driven Design (DDD), Clean Architecture, and SOLID principles. Uses FastAPI and SQLAlchemy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design and build Python systems using Domain-Driven Design (DDD), Clean Architecture, and SOLID principles. Uses FastAPI and SQLAlchemy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate a Word document from ingested source documents using the agnostic Document tree (CommonMark/Pandoc-aligned)
Generate a single Document (Word/PowerPoint) from all source documents in a collection, with attributions back to each source
Generate a PDF from ingested source documents using the agnostic Document tree
Generate a PowerPoint deck from ingested source documents using the agnostic Document tree (parametrised by slide_count, style, audience, tone)
Generate an Excel workbook (.xlsx) from ingested source documents — tabular with charts, formulas, KPI cells
Find PII (emails, phones, SSN, credit cards, IBANs, names, addresses, DOB) in an ingested document; return redaction plan
基于 SOC 职业分类
| name | ddd-architect |
| description | Design and build Python systems using Domain-Driven Design (DDD), Clean Architecture, and SOLID principles. Uses FastAPI and SQLAlchemy. |
| compatibility | Python 3.10+, SQLAlchemy 2.0+, FastAPI. |
Use this skill when the user asks to structure a complex Python application, requests "Clean Architecture," or mentions "Domain-Driven Design". Do NOT use this for simple scripts or micro-apps.
In this architecture, dependencies point inward.
src/domain)Strict Rule: Pure Python only. No sqlalchemy, pydantic, or fastapi imports here.
@dataclass.Email, Money). Use @dataclass(frozen=True).src/application)Orchestrates the domain.
execute or __call__ method. They handle the "business transaction."src/infrastructure)Implements the Ports.
src/api)The Entry Point.
Do not use legacy session.query. Use await session.execute(select(...)).
class UserRepository(Protocol): ...class SqlAlchemyUserRepository:Use fastapi.Depends to inject the Unit of Work and Repositories into Routes.
typing.Self for fluent interfaces.typing.Annotated for Dependency Injection.| union operators (e.g., str | None).