Deply Config
Use this skill to create or audit a production-ready deply.yaml for a Python project and wire it into local checks, CI, and documentation.
Workflow
- Inspect the repository before asking questions:
- Package tree and Python source roots.
pyproject.toml,setup.py,setup.cfg, requirements files, lockfiles.Makefile,.github/workflows/,.gitlab-ci.yml, tox/nox/pre-commit config.- Existing docs, architecture notes, and framework imports.
- Existing
deply.yamlfiles anddeply:ignore/deply:ignore-filesuppressions.
- Ask only for intent that cannot be discovered:
- Preserve current architecture or enforce a target architecture.
- Strictness:
light,medium, orstrict. - CI rollout: fail immediately or adopt with a temporary
--max-violations=Nratchet.
- Read the needed references:
references/discovery.mdfirst for deterministic repository inspection before asking questions.references/deply-v1-schema.mdfor exact Deply v1.0.0 YAML, collectors, rules, and validation constraints.references/architecture-recipes.mdwhen choosing a target architecture style.references/presets.mdforlight,medium, andstrictrule sets.references/framework-presets.mdwhen the repo uses Django, FastAPI, Flask, Celery, or SQLAlchemy.references/adoption-and-audit.mdwhen auditing an existing config or adopting Deply in a legacy project.references/monorepo.mdwhen the repo has multiple apps, packages, or services.references/violation-triage.mdwhendeply analyzereports violations.references/ci-and-docs.mdwhen adding Makefile, CI, or documentation changes.
- Choose the mode:
- Create/update mode: generate or improve
deply.yamlwith public root keydeply:. - Audit mode: review existing config, CI, docs, and suppressions before proposing changes.
- Create/update mode: generate or improve
- Run
deply validate --config=deply.yamlfrom the project root. - Run
deply analyze --parallel --config=deply.yamlfrom the project root. - If violations exist, triage them before editing. Fix collectors/excludes first. Only use
--max-violations=Nwhen the user chooses non-blocking adoption. - Add local command, CI step, and short architecture docs when requested.
- Finish with the output contract below.
Rules
- Prefer the smallest config that enforces the intended boundaries.
- Do not invent unsupported keys such as
allow_layer_dependencies. - Do not add generated files, tests, migrations, virtualenvs, build output, or vendored code to analysis scope.
- Keep domain/business layers independent from frameworks, persistence, transport, and SDKs when using
mediumorstrict. - Do not add new Deply suppressions unless the user accepts a specific architectural reason.
- Report existing suppressions separately from new violations.
- Validate every config with the installed Deply CLI before presenting it as complete.
Final Output Contract
End every run with:
- Changed files.
- Mode: create/update or audit.
- Strictness:
light,medium,strict, ornot changed. - Validation command and result.
- Analyze command and result.
- Current violation count.
- Existing suppression count and any new suppressions added.
- CI behavior: blocking, non-blocking, ratchet with exact
--max-violations=N, or not changed. - Follow-up work, only if required to finish adoption safely.