Auto-activate for advanced_alchemy, alembic/, SQLAlchemyAsyncRepositoryService, SQLAlchemyAsyncConfig, repository_type, service_class, filters, or storage. Not for raw SQLAlchemy — use sqlspec.
中文简介正在准备中。当前显示原文说明。
Use when authoring Litestar skill content, Python/TypeScript examples, PEP 604, async I/O, Google docstrings, ruff/mypy/pyright, pytest, or CI rules. Not for focused Litestar APIs.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
This is the shared style baseline that every other skill in this plugin references. It exists so that cross-cutting rules (PEP 604 unions, async I/O, ruff + mypy + pyright + prek, test file naming, CI/CD conventions) live in exactly one place — and individual skills stay focused on their framework or tool-specific surface.
Reason:; never hedge ("you might want to…").T | None) and PEP 585 generics (list[T], dict[K, V]). Never use typing.Optional, typing.Union, typing.List, or typing.Dict.from __future__ import annotations is a library-author guardrail, not a consumer rule. Application code (handlers, services, tests) MAY use it; avoid it only in modules defining runtime-introspected types (msgspec.Struct, SQLAlchemy Mapped[...], Dishka @provide, SAQ @task).# noqa: TC001, TC002). When from __future__ import annotations and Ruff flake8-type-checking (TC) are active in Litestar controller/handler modules, keep Request, NamedDependency, FromDishka, FromPath, FromQuery, JSONBody, and request/response DTO imports at module top-level with # noqa: TC001, TC002 (or "**/controllers.py" = ["TC001", "TC002", "TC003"] in per-file-ignores), never inside if TYPE_CHECKING:. Reason: Litestar and Dishka inspect handler annotations at runtime during app startup and OpenAPI generation.@pytest.mark.anyio).msgspec, advanced-alchemy / sqlspec, litestar-granian, litestar-saq / litestar-queues when starting fresh, and match the user's existing stack when present.| Slice | Reference File | Key Topics |
|---|---|---|
| Cross-language principles | references/general.md | Simplicity over cleverness, boundary validation, naming, import order |
| Python conventions | references/python.md | PEP 604/585, # noqa: TC001, TC002, msgspec.Struct, async I/O, docstrings, ruff, mypy, pyright, prek |
| Litestar baseline | references/litestar.md | Typed markers (FromPath, FromQuery, JSONBody, RequestBody, NamedDependency, SkipValidation), Provide vs Dishka, MsgspecDTO, Guards, plugins |
| TypeScript conventions | references/typescript.md | Strict tsconfig, discriminated unions, named exports, oxlint / biome |
| Testing conventions | references/testing.md | pytest + anyio, AsyncTestClient lifespan fixtures, Vitest, 90%+ coverage |
| CI/CD conventions | references/ci-cd.md | GitHub Actions with setup-uv, prek / .pre-commit-config.yaml, matrix builds |
| Canonical reference apps | references/canonical-apps.md | litestar-fullstack-inertia, litestar-fullstack, litestar-sqlstack, oracledb-vertexai-demo |
| Google Developer Knowledge MCP | references/google-developer-knowledge-mcp.md | Opt-in MCP setup for fresh GCP / Firebase / Maps documentation |
Every SKILL.md in this plugin has a ## Shared Styleguide Baseline section near the bottom. That section links to a subset of these references — only the ones that apply to the skill's language / framework mix. For example:
skills/litestar/SKILL.md links to general.md + python.md + litestar.mdskills/litestar-vite/SKILL.md links to general.md + typescript.md + litestar.mdskills/litestar-testing/SKILL.md links to general.md + testing.md + python.md + litestar.mdThe sibling skill extends the baseline with its own tool-specific Code Style Rules, Quick Reference, Guardrails, and Validation — but it does not duplicate the baseline. If a convention is generic (type hints, naming, imports), it belongs here.
references/<lang>.md and link from skills that use it.prek replaces pre-commit CLI) → update python.md / ci-cd.md once; all sibling skills inherit it.skills/<name>/SKILL.md).## Shared Styleguide Baseline section — it already lists a subset of the references here.references/ here. Specific → keep it in the sibling.## Shared Styleguide Baseline section resolves to files that exist under references/Reason: explanationreferences/<lang>.md — not scattered into sibling skillsA reviewer finds that two sibling skills independently wrote "use ruff format not black". Instead of leaving duplicates, pull the rule into references/python.md:
- **Use `ruff format`, never `black`.** Reason: ruff is the single toolchain for
lint + format; running two formatters produces style drift.
Then in each sibling's SKILL.md, replace the duplicate with a pointer:
## Shared Styleguide Baseline
- [Python](../litestar-styleguide/references/python.md)
</example>
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Auto-activate for advanced_alchemy, alembic/, SQLAlchemyAsyncRepositoryService, SQLAlchemyAsyncConfig, repository_type, service_class, filters, or storage. Not for raw SQLAlchemy — use sqlspec.
中文简介正在准备中。当前显示原文说明。
Auto-activate for Litestar, Controller, Router, @get/@post, FromPath, MsgspecDTO, OpenAPIConfig, Provide, FromDishka, Guard, ASGIMiddleware, HTTPException, ChannelsPlugin, or WebSocket. Not for standalone libs.
中文简介正在准备中。当前显示原文说明。
Auto-activate for Google ADK, LlmAgent, Runner, SQLSpecSessionService, google-genai, AgentRuntime, AgentGroup, SpecTree, DynamicWorkflow, FunctionTool, or SSE agent chats. Not for offline ML training.
中文简介正在准备中。当前显示原文说明。
Auto-activate for litestar_autowire, AutowirePlugin, AutowireConfig, domain_packages, AutowireIntegration, AutowireLoader, or clear_autowire_cache. Not for manual Router composition — use explicit routes.
中文简介正在准备中。当前显示原文说明。
Auto-activate for uv build, hatch build, PyApp, PYAPP_*, wheel assets, GitHub release matrices, cargo-zigbuild, or python-build-standalone. Not for runtime deployment.
中文简介正在准备中。当前显示原文说明。
Auto-activate for Dockerfile, compose, Railway, Cloud Run, GKE, systemd, Kubernetes, Terraform, deploy scripts, or granian/litestar run at runtime. Not for packaging artifacts.
中文简介正在准备中。当前显示原文说明。