/stackwise:engineering-rulesfrom stackwise
Enforces seven repo-wide engineering rules (reusable code, maintainable structure, readability, no AI slop, dead code removal, why-only comments, no em dashes) when writing, modifying, or reviewing code in any language.
Ships in stackwise. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns Claude into the repo's staff engineer: every diff it produces already passes the review these seven rules describe.
data, tmp, handle, process2), early returns over nesting, reads top-down.references/ai-slop-checklist.md item by item.grep -rn "$(printf '\xe2\x80\x94')" over changed files, in code, comments, docs, and commit messages; returns nothing.prettier --check . + eslint ., ruff format --check && ruff check, gofmt -l . && go vet ./...); fix every reported issue and re-run until clean.Load detailed guidance only when the task needs it:
| Topic | Reference | Load When |
|---|---|---|
| Reuse and structure (rules 1-2) | references/reusability-and-structure.md | Adding a helper/util, seeing duplicated logic, deciding module boundaries or where code lives |
| Readability and naming (rule 3) | references/readability-and-naming.md | Naming anything, untangling nested conditionals, code that needs a comment to be understood |
| AI slop checklist (rule 4) | references/ai-slop-checklist.md | Self-reviewing any diff, cleaning generated code, reviewing a PR |
| Comments, dead code, em dashes (rules 5-7) | references/comments-and-dead-code.md | Writing or deleting comments, removing a feature/flag/branch, touching a file with leftover code |
Extract on the second occurrence, not the first, not the third:
// Two call sites already format money the same way: extract now.
const formatCents = (cents: number, currency = "USD") =>
new Intl.NumberFormat("en-US", { style: "currency", currency }).format(cents / 100);
Early return instead of nesting:
def ship(order: Order) -> Shipment:
if not order.items:
raise EmptyOrderError(order.id)
if order.status is not Status.PAID:
raise UnpaidOrderError(order.id)
return carrier.dispatch(order)
Comment carries the why, code carries the what:
// Stripe retries webhooks for 3 days; dedupe on event ID or refunds double-apply.
if store.SeenEvent(evt.ID) {
return nil
}
grep -rn "formatCurrency\|toMoney") before writing line one.// increment counter) and section markers (// helpers). Both are deleted on sight; restructure the code instead.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aarvion-ai/stackwise-skills --plugin stackwise16 skills in this plugin
/docker-expertUse when working with Dockerfile, docker-compose.yml, .dockerignore, or multi-stage builds. Build, debug, secure, and optimize Docker 27+ images and Docker Compose services./fastapi-expertUse when building or debugging FastAPI services - files importing fastapi, pydantic, or sqlalchemy.ext.asyncio; projects with pyproject.toml using uv/ruff/mypy; mentions of FastAPI, Pydantic v2, APIRouter, Depends, async endpoints, OAuth2/JWT auth, or pytest with httpx. Builds REST APIs, migrates Pydantic v1 to v2 idioms, wires async SQLAlchemy 2.0, adds auth and settings, writes async tests. Invoke for new endpoints, request/response schema design, dependency injection, lifespan/background tasks, auth flows, and test suites./fastify-expert