Repository navigation
chore: add AI agent instructions and streamline style guide - #1250
Conversation
📝 WalkthroughWalkthroughAdds three AI-agent documentation files and substantially rewrites the project STYLE_GUIDE.md. New docs (.github/copilot-instructions.md, CLAUDE.md, AGENTS.md) centralize agent rules and reference AGENTS.md as the single source of truth. All changes are documentation-only; no code or API modifications. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@STYLE_GUIDE.md`:
- Line 85: Update the EditorConfig link in the STYLE_GUIDE.md line containing
the text "to the [EditorConfig](http://editorconfig.org/) in the repo root
(`.editorconfig`)." to use HTTPS by replacing the URL with
https://editorconfig.org/ so the markdown link becomes
[EditorConfig](https://editorconfig.org/).
- Line 42: The bullet "Lint your changes to the code base, not the whole
project" is missing a terminal period; update that sentence in STYLE_GUIDE.md to
end with a period so it matches the punctuation style of other sentence-style
bullet points (i.e., change the line to "Lint your changes to the code base, not
the whole project.").
🧹 Nitpick comments (1)
STYLE_GUIDE.md (1)
28-28: Consider rephrasing for grammatical completeness.The phrase "If important enough, file an issue" is missing a subject. While acceptable in bulleted lists, it could be clearer.
✏️ Proposed rewording
-* `TODO` should not be used. If important enough, file an issue. +* `TODO` should not be used. If the item is important enough, file an issue instead.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@AGENTS.md`:
- Line 76: The line containing "Create feature branches from the development
branch; open PRs back into it." has a trailing whitespace character; remove the
trailing space at the end of that line in AGENTS.md so the Markdown line ends
immediately after the period (no extra spaces).
🧹 Nitpick comments (1)
AGENTS.md (1)
13-16: Consider consistent punctuation in list items.The numbered list has inconsistent punctuation. Items 1, 3, and 4 end with periods, while item 2's second sentence doesn't follow the same pattern. For consistency, consider restructuring item 2 to match the style of other items.
♻️ Proposed refinement
-2. Ensure the code is thread-safe. Check memory leaks, deadlocks and race conditions. +2. Ensure the code is thread-safe and free of memory leaks, deadlocks, and race conditions.
There was a problem hiding this comment.
Pull request overview
Adds centralized guidance for AI coding agents contributing to Tenderdash and trims/modernizes the Go style guide to remove outdated/duplicated prose.
Changes:
- Add
AGENTS.mdas the single source of truth for AI agent contribution rules (structure, commands, workflow, security, pitfalls). - Add thin pointer files
CLAUDE.mdand.github/copilot-instructions.mdreferencingAGENTS.md. - Streamline
STYLE_GUIDE.mdwith more concise guidance and updated links/examples.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| STYLE_GUIDE.md | Condenses and updates Go style guidance (structure, linters, naming, imports, testing, errors). |
| AGENTS.md | New agent-oriented contribution guide: repo map, build/test/lint commands, branching workflow, security notes. |
| CLAUDE.md | Pointer file directing Claude Code to follow AGENTS.md. |
| .github/copilot-instructions.md | Pointer file directing GitHub Copilot to follow AGENTS.md. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Issue being fixed or feature implemented
No existing documentation for AI coding agents (Claude Code, GitHub Copilot) to follow when contributing to Tenderdash. The style guide also contained verbose, outdated prose referencing Tendermint/CometBFT.
What was done?
AGENTS.mdwith minimum rules for AI agents: repo structure, build/test/lint commands, branching workflow, security policy, and common pitfallsCLAUDE.mdand.github/copilot-instructions.mdas thin pointers toAGENTS.mdSTYLE_GUIDE.md— removed verbose prose, outdated references, and sections duplicated elsewhere; added DRY and brevity principlesHow Has This Been Tested?
Documentation-only changes. Verified that referenced Makefile targets and directory paths are accurate.
Breaking Changes
None.
Checklist:
Summary by CodeRabbit