archipy-docs
Answer how-to questions about ArchiPy 5.x in an app (config, DI, adapters, helpers, errors, layout, observability) from the bundled reference and live docs. Use for "how do I … with archipy", "which extra/adapter/decorator", or API questions.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- archipy-docs
- description
- Answer how-to questions about ArchiPy 5.x in an app (config, DI, adapters, helpers, errors, layout, observability) from the bundled reference and live docs. Use for "how do I … with archipy", "which extra/adapter/decorator", or API questions.
02 资源文件 9
- 参考文档reference.md9.0 KB
- 参考文档reference/adapters.md4.7 KB
- 参考文档reference/config.md2.6 KB
- 参考文档reference/errors.md426 B
- 参考文档reference/health-checks.md5.0 KB
- 参考文档reference/helpers.md6.2 KB
- 参考文档reference/observability.md3.3 KB
- 参考文档reference/services.md1.8 KB
- 参考文档reference/testing.md1.8 KB
03 SKILL.md 正文
ArchiPy Docs Lookup
Procedure
- Determine the app's installed ArchiPy major version from
pyproject.tomloruv.lockwhen available. - For version-sensitive topics (extras, observability, decorators, interceptors), consult the matching live doc first.
- Read
reference.mdin this skill directory (version, install, layout, and a topic index), then only the matchingreference/<topic>.md; it targets ArchiPy 5.x. For older apps, explain migration differences instead of recommending removed APIs. - Answer concisely and link the matching live doc:
- Prefer PyPI
archipyAPIs — do not assume the ArchiPy monorepo is on disk.
Output
- Short, actionable answer with a code sketch when useful
- Link to live docs for deep dives
- Suggest the matching
/scaffold-*or/docs-*command when scaffolding is the next step
04 同仓库更多 Skills
scaffold-utils
Add or wire pure helpers/utils, preferring ArchiPy utils (datetime, JWT, password, file, string). Use for "add a helper/util function", "format dates", "hash passwords", or "generate tokens".
scaffold-service
Scaffold a thin FastAPI router or gRPC servicer under services/{domain}/v{n}/ with AppUtils bootstrap. Use for "add an endpoint/route/API", "expose via REST/gRPC", or "new API version".
scaffold-observability
Configure ArchiPy 5.x OpenTelemetry traces, metrics, logs, and instrumentation. Use for "add tracing/metrics/OTel", "Prometheus/Pushgateway", or migrating off Sentry, Elastic APM, or old Prometheus.
scaffold-models
Scaffold ArchiPy models under models/: domain/repository DTOs, errors, optional entities and types. Use for "add DTO/schema/request/response model", "new error type", or "SQLAlchemy entity".
scaffold-logic
Scaffold an ArchiPy logic (use case) under logics/{domain}/ with a unit-of-work decorator and DTO I/O. Use for "add business logic", "new use case", "transactional operation", or "service layer method".
scaffold-interceptor
Add or wire cross-cutting FastAPI/gRPC interceptors or middleware, preferring ArchiPy's. Use for "add middleware", "request ID/logging/auth interceptor", or "gRPC interceptor".