scaffold-archipy-applisted
Install: claude install-skill SyntaxArc/archipy-plugin
# Scaffold ArchiPy App
## Before writing files
1. Inspect the workspace for `pyproject.toml`, existing packages, config, and source layout.
2. Infer the package name and installed extras when they already exist.
3. Ask only for unresolved choices:
- Python package name
- ArchiPy extras to install
- Optional first domain name (default `user`)
4. If files already exist, merge compatible additions and preserve project conventions. Never replace an existing
application tree without explicit approval.
## Steps
1. Ensure project uses `uv` and Python 3.14+.
2. Install: `uv add "archipy[<extras>]"`
3. Create layout:
```text
<package>/
├── configs/
│ ├── __init__.py
│ ├── app_config.py # AppConfig(BaseConfig) + set_global
│ └── containers.py # DI stub (if dependency-injection extra)
├── models/
│ ├── __init__.py
│ ├── dtos/<domain>/
│ │ ├── domain/v1/
│ │ └── repository/
│ ├── entities/
│ └── errors/
├── helpers/ # optional — prefer archipy.helpers first
│ ├── __init__.py
│ ├── utils/__init__.py
│ ├── decorators/__init__.py
│ └── interceptors/__init__.py
├── repositories/
│ └── <domain>/
│ ├── adapters/
│ └── <domain>_repository.py
├── logics/
│ └── <domain>/
└── services/
└── <domain>/v1/
manage.py # when fastapi (or HTTP) requested
features/ # optional — /scaffold-bdd
.env.example
```
4. Write `app_config.py` with `customize()` setting `self.FASTAPI.PROJECT_N