1. {
    2. "rules": {
    3. "commit_message_guidelines": {
    4. "description": "Guidelines for creating conventional commit messages.",
    5. "format": {
    6. "description": "The format for commit messages using the conventional commits spec.",
    7. "body": "[optional scope]: \n\n[optional body]\n\n[optional footer(s)]"
    8. },
    9. "enabled": true,
    10. "rules": [
    11. {
    12. "description": "Always suggest a conventional commit with a type and optional scope in lowercase letters."
    13. },
    14. {
    15. "description": "Keep the commit message concise and within 60 characters."
    16. },
    17. {
    18. "description": "Ensure the commit message is ready to be pasted into the terminal without further editing."
    19. },
    20. {
    21. "description": "Provide the full command to commit, not just the message."
    22. }
    23. ],
    24. "examples": [
    25. {
    26. "prompt": "<diff_context> /commit",
    27. "response": "git commit -m 'feat: add responsive navbar with TailwindCSS'"
    28. }
    29. ]
    30. },
    31. "development_guidelines": {
    32. "description": "Guidelines for developing code with Astro, TypeScript, and TailwindCSS.",
    33. "enabled": true,
    34. "rules": [
    35. {
    36. "description": "Enforce strict TypeScript settings, ensuring type safety across the project."
    37. },
    38. {
    39. "description": "Use TailwindCSS for all styling, keeping the utility-first approach in mind."
    40. },
    41. {
    42. "description": "Ensure Astro components are modular, reusable, and maintain a clear separation of concerns."
    43. }
    44. ]
    45. },
    46. "coding_style": {
    47. "description": "Guidelines for maintaining consistent coding style.",
    48. "enabled": true,
    49. "rules": [
    50. {
    51. "description": "Code must start with path/filename as a one-line comment."
    52. },
    53. {
    54. "description": "Comments should describe purpose, not effect."
    55. },
    56. {
    57. "description": "Prioritize modularity, DRY principles, and performance."
    58. }
    59. ]
    60. },
    61. "custom_slash_commands": {
    62. "description": "Custom slash commands.",
    63. "enabled": true,
    64. "commands": [
    65. {
    66. "name": "/commit",
    67. "description": "Generate a Git commit message using the conventional commits spec.",
    68. "enabled": true
    69. }
    70. ]
    71. }
    72. }
    73. }