Cline rules
.clinerules/git-commit-guidelines.mdCline rules
Quality
93/100
Scores the file, not the repository.Length
1,051 words
29 headings · 17 code blocksRepository
0
— · pushed 73 days agoLast changed
2 days ago
First indexed 2 days ago.1# Git Commit Guidelines23This document provides guidelines for creating meaningful git commits in the paper-games repository.45## Default Commit Behavior67When asked to create a git commit, unless explicitly instructed otherwise:89### 1. Include All Changes10- **Stage all modified files**: Use `git add -A` or `git add .`11- **Include new files**: Ensure all newly created files are staged12- **Include deletions**: If files were removed, include those changes13- **Check status first**: Always run `git status` to verify what will be committed1415### 2. Meaningful Commit Messages16Commit messages should be:17- **Descriptive**: Clearly explain what was changed and why18- **Concise**: Keep it simple and to the point19- **Action-oriented**: Use imperative mood (Add, Fix, Update, etc.)2021## Commit Message Format2223### Structure24```25<Short imperative summary of the change>2627- <Bullet point describing change 1>28- <Bullet point describing change 2>29- <Bullet point describing change 3>30- <Additional details as needed>31```3233**Key Points:**34- **No type prefixes** (no "feat:", "fix:", "chore:", etc.)35- Start with a verb in imperative mood (Add, Fix, Update, Improve)36- Use simple bullet points with dashes37- Keep it concise and focused on what changed38- No formal sections like "Changes:", "Files modified:", "Benefits:"3940## Examples4142### Example 1: Adding a New Game43```bash44git add -A45git commit -m "Add Pic-a-Pix nonogram game with 15x15 and 20x20 grid options4647- Created complete Pic-a-Pix (Nonogram) game with random puzzle generation48- Added grid size options: 15x15 and 20x2049- Implemented difficulty levels: Easy, Medium, Hard50- Features left-click to fill cells, right-click to mark empty cells51- Added solution checking and reveal functionality52- Integrated game into landing page alongside existing games53- Includes comprehensive game instructions and solving tips54- Responsive design for mobile and desktop55- References Wikipedia nonogram article for game rules"56```5758### Example 2: Simple Update59```bash60git add -A61git commit -m "Add Bouncing Balls game to homepage and improve navigation6263- Added Bouncing Balls to the games list on the main landing page64- Updated navigation button text from 'Explore More Games' to 'Back to Games' in bouncing-balls page for better clarity65- Included all bouncing-balls game files (HTML, CSS, JavaScript, and assets)"66```6768### Example 3: Bug Fix69```bash70git add -A71git commit -m "Fix hard AI in Order-Chaos to properly consider both X and O symbols7273- Modified AI logic to evaluate both X and O placement options74- Improved decision-making for optimal gameplay75- AI now makes better strategic choices"76```7778### Example 4: Minor Update79```bash80git add -A81git commit -m "Add last move highlighting to Order & Chaos game8283- Added visual highlight to show the most recent move84- Helps players track game progression85- Improves user experience"86```8788### Example 5: Multiple File Changes89```bash90git add -A91git commit -m "Extract common styles and utilities to shared directory9293- Created common/ directory with shared CSS, JavaScript, and assets94- Updated all game projects to reference common resources95- Reduced code duplication across projects96- Added documentation for common resources in .clinerules/"97```9899## Git Workflow100101### Before Committing1021031. **Check status**104```bash105 git status106```1071082. **Review changes**109```bash110 git diff111```1121133. **Test the changes**114 - Verify all games still work115 - Check for console errors116 - Test on mobile devices117 - Validate HTML/CSS118119### Creating the Commit1201211. **Stage all changes** (default behavior)122```bash123 git add -A124```1251262. **Or stage specific files** (when instructed)127```bash128 git add path/to/file1.html path/to/file2.css129```1301313. **Create commit with detailed message**132```bash133 git commit -m "type: short summary134135 Detailed description...136137 Changes:138 - change 1139 - change 2"140```1411424. **Verify commit**143```bash144 git log -1 --stat145```146147### After Committing1481491. **Push to remote** (if appropriate)150```bash151 git push origin main152```1531542. **Verify on GitHub** (if pushed)155 - Check that all files were uploaded156 - Review commit message display157 - Ensure no sensitive information was included158159## What NOT to Commit160161❌ **Never commit:**162- Temporary files (.DS_Store, Thumbs.db, *.swp)163- IDE/editor config files (unless project-specific)164- Node modules or dependencies (if applicable)165- Sensitive information (API keys, passwords)166- Large binary files (compress images first)167- Build artifacts (unless intended for GitHub Pages)168169## Special Cases170171### Partial Commits172If explicitly instructed to commit only specific files:173```bash174git add path/to/specific/file.html175git commit -m "fix: Update specific file only176177Only modifying [file] because [reason].178179Files modified:180- path/to/specific/file.html"181```182183### Amending Previous Commit184If instructed to amend the last commit:185```bash186git add -A187git commit --amend -m "Updated commit message"188```189190### Breaking Changes191If changes break existing functionality:192```bash193git commit -m "refactor!: Major restructuring of project194195BREAKING CHANGE: Project structure has been reorganized.196All projects must update their import paths.197198See migration guide in common/README.md"199```200201## Commit Message Best Practices202203### DO ✅204- Use present tense ("Add feature" not "Added feature")205- Be specific about what changed206- Include context about why changes were made207- List all significant files affected208- Group related changes together209- Keep the summary under 50 characters210- Wrap detailed description at 72 characters211- Use bullet points for multiple changes212213### DON'T ❌214- Write vague messages ("Updated files", "Fixed stuff")215- Forget to mention important changes216- Commit without testing first217- Mix unrelated changes in one commit218- Use past tense in summary219- Write overly long summaries220- Omit the "why" behind changes221222## Quick Reference223224```bash225# Standard commit workflow (DEFAULT)226git status # Check what changed227git add -A # Stage all changes228git commit -m "type: summary229230Detailed description231232Changes:233- item 1234- item 2"235git push origin main # Push to remote236237# Verify commit238git log -1 --stat # View last commit with files239git show # View last commit details240```241242## Automation243244When asked to "create a git commit" or "commit these changes":2451. Always use `git add -A` unless told otherwise2462. Generate a meaningful commit message that:247 - Identifies the type of change248 - Summarizes all changes clearly249 - Lists specific modifications made250 - Includes files affected2513. Follow the format and examples in this document252253## Version History254255- **v1.0** (2025-12-28): Initial git commit guidelines created256
Also in prabhakar267/paper-games
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| prabhakar267/paper-games.clinerules/project-guidelines.md · 0 | Cline rules | teststylearchui+3 | 65/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 3 days ago | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago |
