Industry
Software engineering
How professionals in Software engineering instruct their AI tools — browse what works in the field, scanned and sealed.
155 published items · Filter in browse
Suggesting Cursor Rules
Skill that notices repeated corrections and offers to encode the convention as a .cursor/rules/*.mdc file.
Zustand
Zustand v5 rule for React + TypeScript: typed curried stores, slice composition, functional updates, useShallow selectors, persist/devtools/immer middleware, and async actions.
SQLAlchemy
SQLAlchemy 2.x rules for Python: typed DeclarativeBase models with Mapped, sessions as context managers, select() over Query, selectinload against N+1, bulk ORM inserts, and Alembic migrations.
scikit-learn
scikit-learn rules: pipelines for every preprocessing step, API-compliant custom estimators with validate_data and check_is_fitted, split-before-fit to stop leakage, random_state everywhere, GridSearchCV on the pipeline, check_estimator tests.
pytest
Rules for fast, reliable pytest suites: src layout, test naming, fixture scopes and teardown, parametrize, skip/xfail markers, pytest-mock, pytest-cov, and typed fixtures.
NumPy
NumPy 2.x rules: vectorize and broadcast instead of looping, set dtype explicitly, know views from copies, pre-allocate, type signatures with np.ndarray, pin numpy>=2.0, and compare arrays with numpy.testing.assert_allclose.
TypeScript
Concise TypeScript rule: strict config, unknown over any, satisfies and as const, discriminated unions, type guards, Result types, and explicit null handling.
Tailwind CSS
Tailwind CSS v4 rule: CSS-first @theme tokens over arbitrary values, clsx/cva component abstraction, prettier class ordering, mobile-first and container queries, accessible focus styles, and dark mode via @custom-variant.
Solana / Anchor (Rust)
Rust rule for Solana programs built with Anchor 0.30+: program layout, account constraints, PDA and signer checks, checked math, error codes, zero-copy accounts, testing, and deploy workflow.
Python
Python 3.10+ rules: PEP 8 layout and naming, grouped imports, one docstring style, builtin generic type hints, uv or Poetry environments, src layout with editable installs, pytest with parametrize, and idioms like context managers and enums.
PostgreSQL
PostgreSQL SQL rule with BAD/GOOD examples: identity columns and data types, timestamptz, NOT IN and BETWEEN pitfalls, explicit joins and CTEs, indexing, safe migrations, least-privilege roles, and transactional tests.
Next.js
Next.js App Router rule: Server Components by default, async request APIs, Server Actions with Zod validation, caching and revalidation, next/image and next/font.
Go (extended)
Extended Go rule with BAD/GOOD examples: package layout, error wrapping and errors.Join, allocation-aware performance, context and errgroup concurrency, API design, table-driven tests, and govulncheck.
Minimal AGENTS.md starter
A lean AGENTS.md template: project context, commands, conventions, and hard rules.
FastAPI
Guidelines for building maintainable, secure FastAPI services: domain-module layout, Annotated dependencies, pydantic-settings, thread-pool offloading, and structured logging.
TDD Feature Loop
Multi-step agent workflow. A red-green-refactor loop for building one feature with a coding agent: one failing test at a time, minimal implementation, refactor under green, with stop points before scope changes.
Spec, Plan, Implement, Verify
Multi-step agent workflow. A four-gate workflow for medium-sized changes: write a spec the user approves, plan the files and steps, implement in reviewable chunks, and verify against the spec before declaring done.
Release Cut and Notes
Multi-step agent workflow. Cuts a release from the main branch with checks at each step: verify the tree, choose the version from the changes, generate notes from commits, tag, and hand off with a rollback plan.
Prompt Iteration With a Small Eval Set
Multi-step agent workflow. Improves a prompt empirically: build a 15-30 case eval set with a rubric, score the baseline, change one thing at a time, and keep only changes that move the score without regressing held-out cases.
Legacy Module Strangler Migration
Multi-step agent workflow. Replaces a legacy module incrementally: pin current behavior with tests, route calls through a facade, migrate one capability at a time with shadow comparison, retire on evidence.
Upgrade a Dependency Safely
Multi-step agent workflow. Upgrades one dependency with evidence at each step: read the changelog for breaking changes, upgrade in isolation, run the full verification, and document the risk for the reviewer.
Codebase Onboarding, Day One
Multi-step agent workflow. A structured first pass through an unfamiliar repository that ends with a verified local build, a map of the architecture, and a list of questions for the team, without changing any code.
Bug Report to Pull Request
Multi-step agent workflow. Takes a bug report to a mergeable PR: reproduce first, pin the root cause with a failing regression test, fix minimally, verify, and write a PR description a reviewer can trust.
README From a Codebase
Writes a README grounded only in what the repository actually contains: real commands from the manifest, real entry points, and honest gaps marked instead of invented.