BE hyperstack: add python-pro-coder skill - #139
Merged
Conversation
60 rules with stable IDs across project structure, Pydantic v2 modelling, endpoint design, settings, dependency injection, async and performance, security, error handling, database access, testing, and production observability. Gated on a version-verified stack file so dependency recommendations come from checked facts rather than recall: python-jose is abandoned with CVE-2024-33664, passlib breaks on Python 3.13+, on_event has been deprecated since FastAPI 0.93, and AsyncClient(app=app) is deprecated in httpx.
KailasMahavarkar
force-pushed
the
f-BE-hyperstack-python-pro-coder-skill
branch
from
September 3, 2026 21:47
92d305a to
c58ad7d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
python-pro-coder, the server-side counterpart toreact-pro-coder(#138): 60 rules with stable IDs for FastAPI + Pydantic v2 + SQLAlchemy 2.0 services, plus the process gates (environment check, task classification, layered architecture order, output contract, negative-doubt pass). Hyperstack has no Python MCP plugin, so the ground truth this skill would otherwise call for lives inreferences/STACK-2026.md: version-checked facts with the date they were verified and the sources they came from.The Iron Law is version freshness
The Python API ecosystem rots faster than model memory updates, and the stale answers are the confident ones. Four of them are wrong today and were right in 2023, which is exactly why a rule file beats recall here.
python-josefor JWTpasslib[bcrypt]for hashingpwdlibis the replacement@app.on_event("startup")lifespancontext managerAsyncClient(app=app)in testsAsyncClient(transport=ASGITransport(app=app))Annotated[bool, Query(default=False)]AssertionErrorat import. Default goes on the parameter with=Current versions recorded in the same file: FastAPI 0.141.1 (Python >= 3.10), Pydantic 2.13.5, pydantic-settings 2.15.0, SQLAlchemy 2.0.52, Python 3.14.7 stable with free-threading officially supported (PEP 779).
Rule set
references/PROJECT-STRUCTURE.mdreferences/PYDANTIC.mdreferences/ENDPOINTS.mdreferences/CONFIG-VALIDATION.mdreferences/DEPENDENCIES.mdreferences/ASYNC-PERFORMANCE.mdreferences/SECURITY.mdreferences/ERRORS.mdreferences/DATABASE.mdreferences/TESTING.mdreferences/OBSERVABILITY.mdConflicts resolved in the source material
settings = Settings()vs@lru_cache get_settings()app.dependency_overridescan replace it in tests and a module singleton cannot without monkeypatchingexcept:in the session dependencyexcept Exception:. A bare except swallowsCancelledErrorand turns shutdown into a hangSTACK-2026.mdwith the criterion for each, rather than a recommendation with no conditionChanges
skills/python-pro-coder/SKILL.mdskills/python-pro-coder/references/*.md(11 domain files)skills/python-pro-coder/references/STACK-2026.mdskills/python-pro-coder/references/REVIEW-CHECKLIST.mdskills/python-pro-coder/references/OUTPUT-CONTRACT.mdskills/python-pro-coder/references/TEMPLATES.mdREADME.mdskills/INDEX.mdNo
scripts/audit/sources.tsentry: that table tracks package versions per MCP plugin, and there is no Python plugin. The stack file carries the version tracking for this skill instead.Verification
Rule IDs verified contiguous per prefix and totalling 60. Every version and deprecation claim in
STACK-2026.mdwas checked against the registry or the project's own issue tracker on 2026-09-04, with the URLs listed in that file.Merge order
Rebased on top of #138 after it merged. The README domain count and
skills/INDEX.mdwere resolved against the merged state: count 7 to 8, both skill rows present, index regenerated.