Rule of Claw
codingVerified

Astro + TypeScript + Tailwind + Commit Rules

Astro project rules including strict TypeScript, Tailwind styling, and conventional commit guidance

content
{
  "rules": {
    "commit_message_guidelines": {
      "description": "Guidelines for creating conventional commit messages.",
      "format": {
        "description": "Conventional commits format.",
        "body": "type(optional-scope): subject

(optional body)

(optional footer)"
      },
      "enabled": true,
      "rules": [
        { "description": "Always suggest a conventional commit with a type and optional scope in lowercase." },
        { "description": "Keep the commit message concise and within 60 characters." },
        { "description": "Ensure the commit message is ready to paste into the terminal." },
        { "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 for type safety." },
        { "description": "Use TailwindCSS for all styling (utility-first)." },
        { "description": "Ensure Astro components are modular, reusable, and have clear separation of concerns." }
      ]
    },
    "coding_style": {
      "description": "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 conventional commits.", "enabled": true }
      ]
    }
  }
}
astrotypescripttailwindconventional-commits

Compatible with

cursoropenclawclaude-code