cursor-rules-init
v0.1.2
Published
Scaffold opinionated .cursorrules starters for Cursor, Claude, ChatGPT, and any chat-based AI coding tool. Stack-aware, token-efficient, senior-dev defaults.
Maintainers
Readme
cursor-rules-init
Scaffold an opinionated .cursorrules starter for Cursor, Claude, ChatGPT,
or any chat-based AI coding tool. Free, MIT, no signup, no telemetry.
npx cursor-rules-init typescript
# wrote .cursorrules (typescript stack, 2014 bytes)Why
Default AI assistant output is verbose, hedging, and over-eager to
refactor. The fastest fix is a .cursorrules file at the repo root.
But you don't want to write one from scratch every time. This is the
starter set I've been using daily for ~18 months.
Stacks
npx cursor-rules-init --listCurrently:
| Stack | What it stacks |
| - | - |
| base | Senior-dev defaults, language-agnostic. |
| typescript | base + TypeScript strict. |
| react | base + TypeScript + React 18 hooks discipline. |
| nextjs | base + TypeScript + React + App Router. |
| python | base + Python 3.11+ types + pytest. |
| node-server | base + TypeScript + Express/Fastify defaults. |
Usage
npx cursor-rules-init # base stack -> .cursorrules
npx cursor-rules-init typescript # ts overlay -> .cursorrules
npx cursor-rules-init react -o RULES.md # custom path
npx cursor-rules-init --print python # stdout only, no file write
npx cursor-rules-init --list # list stacksThe CLI refuses to overwrite an existing .cursorrules. Move it aside
or use a different -o path.
What's inside
Every stack starts with the base rules:
- Cap output verbosity, no greetings or sign-offs.
- Smallest diff that solves it. No speculative refactors.
- Errors are nouns, never strings. Never catch-and-discard.
- Security defaults: parameterized SQL, no header trust, no PII logs.
- Debug methodology: reproduce > hypothesize > test > fix.
- Code review order: bugs > risks > style. Skip empty categories.
- Power-user mode: messages prefixed with
::get code-only replies.
Stack overlays add language-specific rules on top: TypeScript strict typing rules, React hooks discipline, Next.js App Router conventions, Python pytest patterns, etc.
Want the longer set
This CLI ships 6 stack starters. The full pack has 24 .cursorrules
files plus 3 system prompts, including REST API design, Postgres + SQL,
testing conventions for vitest/jest/pytest, accessibility defaults,
Docker, GitHub Actions, monorepos, and a zero-output power-user mode:
depmedic Senior Dev Cursor Rules - $7 one-time, free updates within v1.x.
If you only want the system prompt, there's a $3 single-prompt SKU.
Companion tools
ci-doctor- audit GitHub Actions workflows for cost waste and security gaps.depmedic- surgical npm vulnerability triage.npm audit fixis too aggressive; this finds the smallest set of bumps that close the real issues.
License
MIT.
Sponsor / support depmedic
If this saved you 10 minutes of CI debugging, consider one of these. All of them keep the free CLIs free:
- Tip what you want — pay-what-you-want, $0 minimum: https://buy.polar.sh/polar_cl_tipjar?utm_source=npm&utm_medium=readme&utm_campaign=cursor-rules-init
- depmedic Pro $5/mo — one license, unlocks Pro tier in every depmedic CLI + the VS Code / Cursor extension, free access to every paid playbook for as long as you stay subscribed: https://buy.polar.sh/polar_cl_SUzmX5RCQCV8MJV3dDEBFMu3MGWu2WQhzZ1s02ZhK09?utm_source=npm&utm_medium=readme&utm_campaign=cursor-rules-init
- Everything Bundle $59 once — every paid playbook (current and future): https://buy.polar.sh/polar_cl_everything_bundle?utm_source=npm&utm_medium=readme&utm_campaign=cursor-rules-init
- Sponsor on GitHub — https://github.com/sponsors/depmedicdev-byte
More from depmedic
| | |
| --- | --- |
| ci-doctor | audit GitHub Actions for cost + security (16 rules) |
| gitlab-ci-doctor | same engine for .gitlab-ci.yml (14 rules) |
| bitbucket-ci-doctor | for bitbucket-pipelines.yml (8 rules) |
| azure-pipelines-ci-doctor | for azure-pipelines.yml (8 rules) |
| circleci-ci-doctor | for .circleci/config.yml (8 rules) |
| gha-budget | $-denominated cost estimate of any GHA workflow |
| pin-actions | one-shot SHA pinner for uses: blocks |
| cursor-rules-init | scaffold .cursor/rules/ for your stack |
| depmedic | all-in-one cli, finds outdated/risky deps |
| depmedic/ci-doctor-action | composite GitHub Action: PR comment + SARIF |
In-browser scanners (no install): GitHub · GitLab · Bitbucket · Azure · CircleCI.
Newsletter (weekly, low-volume): https://depmedicdev-byte.github.io/newsletter.html?utm_source=npm&utm_medium=readme&utm_campaign=cursor-rules-init.
