Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules for Astro and TypeScript with conventional commits and style guidance

A Cursor .mdc rules file that sets Astro and TypeScript development guidelines, including strict typing, TailwindCSS utility styling, conventional commit message formatting, and consistent code style.

People use this for

  • astro typescript cursor rules
  • cursor rules conventional commits
  • astro tailwind coding guidelines
  • write conventional commit messages
  • set up cursor astro project rules
Name
cursor-rules-for-astro-and-typescript-with-conventional-commits-
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-astro-and-typescript-with-conventional-commits-and-styl-t86m/export/mdc" -o .cursor/rules/cursor-rules-for-astro-and-typescript-with-conventional-commits-.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-for-astro-and-typescript-with-conventional-commits-.mdc
Manual install

Save cursor-rules-for-astro-and-typescript-with-conventional-commits-.mdc as .cursor/rules/cursor-rules-for-astro-and-typescript-with-conventional-commits-.mdc for this project or ~/.cursor/rules/cursor-rules-for-astro-and-typescript-with-conventional-commits-.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Astro development with TypeScript integration." globs: */ alwaysApply: false

{ "rules": { "commit_message_guidelines": { "description": "Guidelines for creating conventional commit messages.",

  "format": {
    "description": "The format for commit messages using the conventional commits spec.",
    "body": "[optional scope]: \n\n[optional body]\n\n[optional footer(s)]"
  },
  
  "enabled": true,
  
  "rules": [
    {
      "description": "Always suggest a conventional commit with a type and optional scope in lowercase letters."
    },
    {
      "description": "Keep the commit message concise and within 60 characters."
    },
    {
      "description": "Ensure the commit message is ready to be pasted into the terminal without further editing."
    },
    {
      "description": "Provide the full command to commit, not just the message."
    }
  ],
  
  "examples": [
    {
      "prompt": "<diff_context> /commit",
      "response": "git commit -m 'feat: add responsive navbar with TailwindCSS'"
    }
  ]
},

"development_guidelines": {
  "description": "Guidelines for developing code with Astro, TypeScript, and TailwindCSS.",
  
  "enabled": true,
  
  "rules": [
    {
      "description": "Enforce strict TypeScript settings, ensuring type safety across the project."
    },
    {
      "description": "Use TailwindCSS for all styling, keeping the utility-first approach in mind."
    },
    {
      "description": "Ensure Astro components are modular, reusable, and maintain a clear separation of concerns."
    }
  ]
},

"coding_style": {
  "description": "Guidelines for maintaining consistent coding style.",
  
  "enabled": true,
  
  "rules": [
    {
      "description": "Code must start with path/filename as a one-line comment."
    },
    {
      "description": "Comments should describe purpose, not effect."
    },
    {
      "description": "Prioritize modularity, DRY principles, and performance."
    }
  ]
},

"custom_slash_commands": {
  "description": "Custom slash commands.",
  
  "enabled": true,
  
  "commands": [
    {
      "name": "/commit",
      "description": "Generate a Git commit message using the conventional commits spec.",
      "enabled": true
    }
  ]
}

} }

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.