robyn-config-backend-best-practices
1
总安装量
1
周安装量
#47735
全站排名
安装命令
npx skills add https://github.com/lehsqa/robyn-config-skills --skill robyn-config-backend-best-practices
Agent 安装分布
windsurf
1
zencoder
1
amp
1
cursor
1
kimi-cli
1
Skill 文档
Robyn Config Backend Best Practices
Overview and intent
Use this skill to work effectively with robyn-config and production-oriented Robyn backend patterns.
This 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].design(dddormvc)[tool.robyn-config].orm(sqlalchemyortortoise)[tool.robyn-config].package_manager(uvorpoetry)
- 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
- Select stack options: design, ORM, package manager.
- Generate service:
robyn-config create <service-name> --design <ddd|mvc> --orm <sqlalchemy|tortoise> --package-manager <uv|poetry> <destination>
- Confirm output baseline:
pyproject.tomlcontains[tool.robyn-config]src/applayout matches selected design- lock file matches package manager (
uv.lockorpoetry.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
- Ensure target project is a
robyn-configproject by checking[tool.robyn-config]. - Read optional path overrides under
[tool.robyn-config.add]. - Add module:
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
SKILL.mdconcise and procedural. - Put deep detail into
references/and load on demand. - Write frontmatter with explicit trigger contexts.
- Reuse rule patterns from
react-best-practiceswhere useful. - 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
robyn-configinternals and generation/injection behavior.
- 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 (
uvandpoetry). - Include a validation checklist covering structure, behavior, and checks.
- State assumptions explicitly when repository context is incomplete.