Best practices
Config
Section titled “Config”- Prefer a preset, then override only what you must.
- Keep
featuressnake_case and stable — renaming is a manual migrate. - Commit
stackchain.yamland.stackchain/lock.yaml.
Generation hygiene
Section titled “Generation hygiene”- Dry-run before overwrite or migrate.
- Never put irreplaceable logic inside managed regions.
- Run
doctorin CI (in addition to the generated workflow whenci: true).
Features
Section titled “Features”- Use named recipes (
auth,settings,profile) when they match the domain. - Keep domain/data pure; put UI state in presentation only.
- Register manual services outside
<stackchain:…>markers or extend via bricks.
Evolution
Section titled “Evolution”syncfor wiring;upgradefor deps;migratefor stack changes.- Use
--keep-oldwhen you need a staged cleanup. - Re-run widget/unit tests after migrate.
Security
Section titled “Security”- Keep
secure_storageenabled for tokens. - Do not log secrets — rely on generated logger/interceptor patterns carefully.
- Treat
strict_quality: trueas the bar for production presets.