Skip to content

chore: add AI agent instructions and streamline style guide - #1250

Merged
lklimek merged 8 commits into
v1.6-devfrom
chore/agents.md
Feb 10, 2026
Merged

lklimek merged 8 commits into
v1.6-devfrom
chore/agents.md

Conversation

@lklimek

@lklimek lklimek commented Feb 9, 2026 •

Copy link
Copy Markdown
Collaborator

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?

  • Added AGENTS.md with minimum rules for AI agents: repo structure, build/test/lint commands, branching workflow, security policy, and common pitfalls
  • Added CLAUDE.md and .github/copilot-instructions.md as thin pointers to AGENTS.md
  • Streamlined STYLE_GUIDE.md — removed verbose prose, outdated references, and sections duplicated elsewhere; added DRY and brevity principles

How Has This Been Tested?

Documentation-only changes. Verified that referenced Makefile targets and directory paths are accurate.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

Summary by CodeRabbit

  • Documentation
    • Added new guidance documents outlining AI agent rules, project conventions, security/privacy guidance, and usage instructions for automated assistants.
    • Introduced a concise agent-specific instruction doc referencing the central conventions.
    • Rewrote and reorganized the style guide for clearer, standardized coding and contribution practices.

@coderabbitai

coderabbitai Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds 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

Cohort / File(s) Summary
AI Agent Documentation
.github/copilot-instructions.md, CLAUDE.md, AGENTS.md
Added three docs for AI agents. AGENTS.md defines canonical rules (conventions, repo layout, build/test/lint commands, dependency/tool guidance, branching/PR workflow, security/privacy, common pitfalls). Copilot/Claude files reference AGENTS.md.
Style Guide Rewrite
STYLE_GUIDE.md
Extensive editorial rewrite: reorganized and rephrased sections on code structure, comments, linters, naming, imports, dependencies, testing, errors, and non-Go guidance. Documentation-only edits; no behavioral or API changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I hopped through pages, tidy and neat,
AGENTS.md now holds the rules complete,
Copilot and Claude follow the cue,
The style guide sings in wording new,
A little rabbit clap — docs refreshed and fleet!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: adding AI agent instructions (AGENTS.md, CLAUDE.md, .github/copilot-instructions.md) and streamlining the STYLE_GUIDE.md. It accurately reflects the primary focus of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/agents.md

No actionable comments were generated in the recent review. 🎉

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread STYLE_GUIDE.md Resolved
Comment thread STYLE_GUIDE.md Resolved
@lklimek lklimek changed the title chore: instructions for AI agents in AGENTS.md chore: add AI agent instructions and streamline style guide Feb 9, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread AGENTS.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md as the single source of truth for AI agent contribution rules (structure, commands, workflow, security, pitfalls).
  • Add thin pointer files CLAUDE.md and .github/copilot-instructions.md referencing AGENTS.md.
  • Streamline STYLE_GUIDE.md with 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.

Comment thread STYLE_GUIDE.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Co-authored-by: Copilot <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@lklimek
lklimek requested a review from shumkov February 9, 2026 17:14
@lklimek lklimek self-assigned this Feb 10, 2026
@lklimek
lklimek merged commit 53d81e7 into v1.6-dev Feb 10, 2026
16 checks passed
@lklimek
lklimek deleted the chore/agents.md branch February 10, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants