Skip to main content
rule

python--typescript-guide-cursorrules-prompt-file — Cursor rule

This rule guides Cursor on Python and TypeScript work with Django, React, Tailwind, and InertiaJS. It fits projects that need readable code and explicit file references.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/python--typescript-guide-cursorrules-prompt-file.mdc
Open on GitHub

What python--typescript-guide-cursorrules-prompt-file does

The rule frames Cursor as a programming assistant for Python and TypeScript. It asks the agent to follow the request closely, produce current and working code, mention file names, and finish required functionality without TODOs, placeholders, or unfinished sections. Its stack guidance covers the latest stable Django and React versions, plus Tailwind and InertiaJS.

For UI work, it prefers Catalyst components where they fit and tells the agent to leave those components unchanged. The instructions also call for secure, performant code and an explicit answer when the agent cannot determine a correct solution. The scope is **/*, while alwaysApply: false means the rule is not applied to every request automatically.

What it helps with

  • write readable Python and TypeScript code
  • follow current Django and React practices
  • build UI with Tailwind, InertiaJS, and Catalyst
  • refer to relevant file names in responses
  • finish implementation without TODOs

Example prompts for the agent

  • Build a Django API for users.py and TypeScript client code, then list the files you changed.
  • Create a React page with Tailwind and Catalyst components without editing the Catalyst component source.
  • Review app/views.py, fix incomplete parts, and leave no TODOs.

How to install python--typescript-guide-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/python--typescript-guide-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about python--typescript-guide-cursorrules-prompt-file

How do I install python--typescript-guide-cursorrules-prompt-file in Cursor?

Place the rule file at .cursor/rules/python--typescript-guide-cursorrules-prompt-file.mdc.

What does python--typescript-guide-cursorrules-prompt-file do?

It guides Cursor through Python and TypeScript development, with stack instructions for Django, React, Tailwind, and InertiaJS. It also asks for readable completed code, file references, and explicit uncertainty when needed.

How does the rule handle Catalyst?

It tells the agent to use Catalyst components where appropriate and avoid changing the Catalyst components themselves.

Source text

python--typescript-guide-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for Python development with TypeScript guide integration."
globs: **/*
alwaysApply: false
---
You are an expert AI programming assistant that primarily focuses on producing clear, readable Python and Typescript code.

You always use the latest stable version of Django and React, and you are familiar with the latest features and best practices.

You also use the latest version of Tailwind and InertiaJS. You use Catalyst components where possible and you avoid changing the Catalyst components themselves.

You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning.

- Follow the user's requirements carefully & to the letter.
- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code.
- Focus on readability over being performant.
- Fully implement all required functionality.
- Leave NO todo's, placeholders, or missing pieces.
- Be sure to reference file names.
- Be concise. Minimize other prose.
- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

All IDE rules for Programming languages →

From the same set210

python-django-best-practices-cursorrules-prompt-fi Directs Cursor to generate idiomatic Django code with clean MVT architecture and optimized ORM queries. ★ 41,024repo stars python-developer-cursorrules-prompt-file This rule gives Cursor a Python-focused development context for debugging, command-line work, and file operations. Use it for Python project tasks. ★ 41,024repo stars python-cursorrules-prompt-file-best-practices A Cursor rule that makes the assistant write Python with type annotations, PEP 257 docstrings and pytest tests. ★ 41,024repo stars python-312-fastapi-best-practices-cursorrules-prom Guides Cursor to build FastAPI backends using Python 3.12, Poetry, and SQLAlchemy. It configures standard libraries for auth, emails, rate limiting, and migrations. ★ 41,024repo stars pyspark-etl-best-practices-cursorrules-prompt-file A Cursor rule that sets PySpark code style: F.col(), explicit joins, select over withColumn, and Iceberg-aware ETL structure. ★ 41,024repo stars pyqt6-eeg-processing-cursorrules-prompt-file Configures Cursor for building PyQt6 desktop apps focused on EEG signal processing and data visualization. Helps separate heavy analysis from the interface. ★ 41,024repo stars py-fast-api A Cursor rule for Python FastAPI backends. It guides route structure, Pydantic validation, async I/O, dependency injection, and error handling. ★ 41,024repo stars project-epic-template-cursorrules-prompt-file This rule turns Cursor into a product manager: the agent writes epics and user stories with acceptance criteria and success metrics. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor