robyn-config-backend-best-practices
Original:🇺🇸 English
Translated
Robyn backend scaffolding and architecture guidance for projects using robyn-config. Use when creating or evolving Robyn services, choosing DDD vs MVC, choosing SQLAlchemy vs Tortoise, adding new entities/routes/repositories with robyn-config add, auditing Robyn backend quality, or authoring and improving skill markdown for Robyn engineering workflows.
4installs
Added on
NPX Install
npx skill4agent add lehsqa/robyn-config-skills robyn-config-backend-best-practicesTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Robyn Config Backend Best Practices
Overview and intent
Use this skill to work effectively with and production-oriented Robyn backend patterns.
robyn-configThis skill is optimized for four task groups:
- scaffold a new service with
robyn-config create - extend an existing service with
robyn-config add - audit and improve architecture and operational readiness
- author high-quality skill files for Robyn engineering work
Do not load every reference file by default. Load only the files required for the current task.
Fast triage workflow
- Detect project metadata in :
pyproject.toml- (
[tool.robyn-config].designorddd)mvc - (
[tool.robyn-config].ormorsqlalchemy)tortoise - (
[tool.robyn-config].package_manageroruv)poetry
- Classify requested work:
- bootstrap
- extension
- architecture or operations audit
- skill authoring
- Select references from the routing table in this file.
- Produce branch-specific guidance for design, ORM, and package manager.
- End with a validation checklist and concrete commands.
Workflow A: bootstrap from robyn-config create
robyn-config create- Select stack options: design, ORM, package manager.
- Generate service:
bash
robyn-config create <service-name> --design <ddd|mvc> --orm <sqlalchemy|tortoise> --package-manager <uv|poetry> <destination>- Confirm output baseline:
- contains
pyproject.toml[tool.robyn-config] - layout matches selected design
src/app - lock file matches package manager (or
uv.lock)poetry.lock
- Execute ORM-specific migration bootstrap before app start.
- Run lint, type checks, and tests, then report exact failures with file paths.
Workflow B: evolve project with robyn-config add
robyn-config add- Ensure target project is a project by checking
robyn-config.[tool.robyn-config] - Read optional path overrides under .
[tool.robyn-config.add] - Add module:
bash
robyn-config add <entity-name> <project-path>- Verify generated updates:
- new files in expected layer paths
- route registration inserted in the right registry file
- repository exports and tables updated
- no duplicate symbols or broken imports
- Regenerate migrations if schema changed.
- Run checks and confirm command rollback behavior if failures occur.
Workflow C: review and improve architecture and ops readiness
- Validate architecture boundaries for selected design.
- Validate runtime safety:
- settings and env overrides
- auth, session, CORS behavior
- transaction boundaries and error mapping
- Validate operations:
- migration startup order
- compose and local parity
- logging and debug posture
- Prioritize recommendations:
- P0 correctness and security
- P1 reliability and consistency
- P2 maintainability and performance
- Provide file-targeted, diff-ready changes.
Workflow D: author and update skill files for Robyn engineering
- Keep concise and procedural.
SKILL.md - Put deep detail into and load on demand.
references/ - Write frontmatter with explicit trigger contexts.
- Reuse rule patterns from where useful.
react-best-practices - Validate skill structure before delivering:
- no placeholder markers
- all referenced files exist
- no extra docs such as README or changelog inside skill folder
Reference routing table
Open only the file needed for the task:
references/robyn-config-src-analysis.md- Use for internals and generation/injection behavior.
robyn-config
- Use for
references/robyn-backend-best-practices.md- Use for prioritized engineering guidance and review criteria.
references/robyn-config-workflows.md- Use for operator playbooks and command sequences.
references/architecture-ddd-vs-mvc.md- Use for architecture selection and refactor planning.
references/orm-sqlalchemy-vs-tortoise.md- Use for ORM tradeoffs and migration/session behavior.
references/skill-authoring-patterns.md- Use for writing and validating high-quality skill markdown.
references/react-style-rule-system.md- Use for reusable rule-library design patterns and taxonomy.
Output requirements
Always:
- Include concrete executable commands.
- Include design and ORM branch-specific instructions.
- Include package-manager-aware instructions (and
uv).poetry - Include a validation checklist covering structure, behavior, and checks.
- State assumptions explicitly when repository context is incomplete.