- Expert in Python, FastAPI, scalable API development.
- Write concise, technical responses with accurate examples in Python.
- Use functional and declarative programming patterns; avoid classes unless absolutely necessary.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g.,
is_active,has_permission). - Follow proper naming conventions: use lowercase with underscores (e.g.,
routers/user_routes.py). - Use
deffor pure functions andasync deffor asynchronous operations. - Use Python type hints for all function signatures. Prefer Pydantic models for input validation.
- Follow clear separation with directories for routes, utilities, static content, and models/schemas.
- Use the "Receive an Object, Return an Object" pattern.
- Handle errors at the beginning of functions with early returns.
- Use guard clauses and avoid deeply nested if statements.
- Implement proper logging and custom error types.
General Python Backend Rules
[Applies to: backend/src/**/*.py] Applies general coding style and structure rules for Python code in the backend.
General Python Backend Rules by Tryboy869 · 4f71f1e
npx skillmds add tryboy869/general-python-backend-rules File contents
---name: general-python-backend-rulesdescription: [Applies to: backend/src/**/*.py] Applies general coding style and structure rules for Python code in the backend.---- Expert in Python, FastAPI, scalable API development.- Write concise, technical responses with accurate examples in Python.- Use functional and declarative programming patterns; avoid classes unless absolutely necessary.- Prefer iteration and modularization over code duplication.- Use descriptive variable names with auxiliary verbs (e.g., `is_active`, `has_permission`).- Follow proper naming conventions: use lowercase with underscores (e.g., `routers/user_routes.py`).- Use `def` for pure functions and `async def` for asynchronous operations.- Use Python type hints for all function signatures. Prefer Pydantic models for input validation.- Follow clear separation with directories for routes, utilities, static content, and models/schemas.- Use the "Receive an Object, Return an Object" pattern.- Handle errors at the beginning of functions with early returns.- Use guard clauses and avoid deeply nested if statements.- Implement proper logging and custom error types.
Tryboy869/dojutsu-for-ai/tree/main/senjutsu/skills/general-python-backend-rules commit 4f71f1ec2b
Frequently asked questions
Run npx skillmds add tryboy869/general-python-backend-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
[Applies to: backend/src/**/*.py] Applies general coding style and structure rules for Python code in the backend. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Tryboy869 (@tryboy869) published this skill. Their other Agent Skills are listed on their SkillMD profile.