Skip to content

Conversation

@Mounil2005
Copy link
Contributor

Description:

  • Configure CodeRabbit AI to provide senior-level feedback on documentation by adding tailored review instructions for different audiences and paths.
  • Add general documentation review guidance with correctness, clarity, completeness, consistency, and navigation priorities
  • Add SDK users guidance focused on runnable examples, step-by-step clarity, and zero assumptions
  • Add SDK developers guidance emphasizing workflow accuracy, edge cases, and training progression
  • Include edge case checks for external link versioning, deprecated patterns, audience signposts, platform gotchas, and standalone training modules
  • Ensure audience alignment and explicit next steps for mixed-audience pages and training

Related issue(s):

Fixes #1236

Notes for reviewer:
The prompts are designed to treat documentation as work-in-progress, preferring incremental improvements over large restructures, and keeping feedback concise and action-oriented.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@Mounil2005 Mounil2005 force-pushed the feature/coderabbit-docs-prompt branch from ecd8c6c to 32e10f1 Compare January 1, 2026 17:19
@coderabbitai
Copy link

coderabbitai bot commented Jan 1, 2026

📝 Walkthrough

Walkthrough

Adds multiple path-specific documentation-review instruction blocks to ./.coderabbit.yaml, duplicating guidance across docs globs (including docs/**, docs/sdk_users/**, docs/sdk_developers/**) and updates CHANGELOG.md; no runtime or API behavior changes.

Changes

Cohort / File(s) Change Summary
CodeRabbit configuration
./.coderabbit.yaml
Added several DOCUMENTATION REVIEW INSTRUCTIONS / path_instructions blocks for docs/**, docs/sdk_users/**, and docs/sdk_developers/** (covers docs/sdk_developers/training/**), duplicated similar guidance under an integration/test-related section, and extended review coverage to docs near .github. Priorities defined: Correctness, Clarity, Consistency, Philosophy, AVOID.
Changelog
CHANGELOG.md
Added Unreleased entry documenting the new CodeRabbit documentation-review prompts for docs/**, docs/sdk_users/**, and docs/sdk_developers/** referencing issue #1236.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Pre-merge checks

✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: add CodeRabbit review prompts for documentation' clearly summarizes the main change: adding review guidance configuration for documentation in the codebase.
Description check ✅ Passed The description is related to the changeset, detailing the configuration of CodeRabbit with specific review prompts for different documentation audiences and paths as specified in the PR changes.
Linked Issues check ✅ Passed The PR fully addresses issue #1236 by adding tailored CodeRabbit review instructions to .coderabbit.yaml for docs paths (docs/, docs/sdk_users/, docs/sdk_developers/**) with principle-driven guidance covering correctness, clarity, completeness, and audience-specific priorities.
Out of Scope Changes check ✅ Passed All changes are in scope: modifications to .coderabbit.yaml and CHANGELOG.md align with issue #1236's objective of adding CodeRabbit review prompts for documentation without introducing unrelated code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c872870 and 2cf0035.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
CHANGELOG.md (1)

128-128: LGTM - Changelog entry is accurate and well-structured.

The entry correctly describes the addition of CodeRabbit documentation review prompts, references the correct issue, and follows the project's changelog conventions.

.coderabbit.yaml (1)

171-235: LGTM - Documentation review instructions align well with PR objectives.

The three instruction blocks effectively address the requirements from issue #1236:

  • General docs guidance (lines 172-200): Prioritizes correctness, clarity, and consistency with appropriate PHILOSOPHY and AVOID sections
  • SDK users guidance (lines 202-216): Focuses on high-level explanations with links to /examples, assumes minimal prior knowledge
  • SDK developers guidance (lines 218-234): Emphasizes workflow accuracy, training progression, and contributor onboarding

The structure is principle-driven, audience-specific, and favors incremental improvements over large restructures, as requested.

💡 Optional: Reduce repetition per maintainer feedback

Per maintainer comment ("we can cut down the prompt to say 50 lines"), consider consolidating the repeated PHILOSOPHY bullets:

Current structure:

  • PHILOSOPHY appears in all three blocks (lines 192-195, 214-216, 231-234)
  • Shared principles: "work-in-progress", "concise/action-oriented", "avoid large restructures"

Optional consolidation:
Keep the detailed PHILOSOPHY in the base docs/** block, then reference it implicitly in the specialized blocks by removing the redundant bullets from docs/sdk_users/** and docs/sdk_developers/**, keeping only their unique philosophical guidance. This could reduce the total by ~15 lines while preserving all guidance.

However, the current explicit structure allows each block to be understood independently, which has maintainability benefits. Given the maintainer's "we can GTM like this" comment, this optimization is truly optional.


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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cd9ca69 and 32e10f1.

📒 Files selected for processing (1)
  • .coderabbit.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
.coderabbit.yaml (1)

171-313: Excellent documentation review structure that aligns well with PR objectives.

The three-tier approach (general docs, SDK users, SDK developers) provides comprehensive yet focused guidance:

  1. Clear differentiation: Each block appropriately targets its audience with relevant priorities
  2. Principle-driven: Emphasizes correctness, clarity, and usefulness without mandating large restructures
  3. Actionable: Provides concrete checkpoints rather than vague guidance
  4. Balanced: The AVOID sections appropriately discourage nitpicking and scope creep

The emphasis on verifying code snippets, checking command accuracy, and validating links addresses the core quality concerns. The explicit handling of mixed-audience pages and training progression is particularly valuable.

Based on learnings, this approach successfully implements the flexible, principle-driven documentation review guidance requested in issue #1236.

@Mounil2005 Mounil2005 force-pushed the feature/coderabbit-docs-prompt branch from 32e10f1 to 8dcb557 Compare January 1, 2026 18:49
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
.coderabbit.yaml (1)

171-221: Formatting inconsistency with existing instruction blocks.

The existing instruction blocks (examples, unit tests, integration tests) use bold markdown formatting with colons for headers (e.g., **Priority 1 - Correctness**:, **PHILOSOPHY**:), while these new documentation blocks use plain text without bold or colons.

This was flagged in a previous review. Aligning the formatting would improve consistency across all path instructions.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 32e10f1 and 8dcb557.

📒 Files selected for processing (1)
  • .coderabbit.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
.coderabbit.yaml (2)

222-267: SDK users guidance looks well-structured.

The instructions appropriately emphasize copy-pasteable examples, explicit prerequisites, and zero-assumption documentation for SDK users. The focus on "time-to-first-success" aligns well with user-facing documentation goals.

One minor note: Line 240 references "Hedera background" while the project is "Hiero Python SDK." If you want strict naming consistency throughout, consider updating to "Hiero/Hedera" or just "Hedera network" to clarify the relationship.


268-313: SDK developers guidance is comprehensive and well-targeted.

The instructions appropriately cover:

  • Contribution workflow accuracy (DCO, GPG, CI, branching)
  • Training module progression with explicit next steps
  • Alignment with codebase conventions and patterns
  • Preference for follow-up issues over blocking large restructures

The guidance for training/ specifically addressing module independence and progressive learning flow (Priority 4) is a good addition.

@exploreriii
Copy link
Contributor

Some ideas:

- path: "docs/sdk_developers/**"
  instructions: |
    These docs are for SDK developers and contributors.

    FOCUS ON
    - Step-by-step instructions that can be followed end-to-end
    - Clear prerequisites, assumptions, and setup steps
    - Training material that builds understanding progressively

    CHECK THAT
    - Instructions are explicit, ordered, and complete
    - File paths, scripts, workflows, and tooling are accurate
    - Each section explains what the reader should do next

    AVOID
    - Assuming prior knowledge of the codebase
    - Nit picking at valuable documentation additions, LGTM is preferred
- path: "docs/sdk_users/**"
  instructions: |
    These docs are for SDK users who want to understand how to use the SDK.

    FOCUS ON
    - High-level explanation of what the SDK can do and when to use it
    - Clear guidance on configuration, concepts, and choices
    - Direct links to working examples for copy-paste or execution

    CHECK THAT
    - Concrete actions are delegated to examples where possible
    - Links to examples are easy to find, clearly labeled and correct

    AVOID
    - Large runnable code blocks, refer to examples
- path: "docs/**"
  instructions: |
    Docs should help readers quickly understand:
    - what this page is for
    - who it is for and is it for me
    - if it is for them, it should teach them the information they need quickly and accurately
    - where to go next to solve their problem

    CHECK THAT
    - The page states its purpose and audience near the top
    - It points to the relevant next step (example, guide, training, or reference)
    - Information is easy to scan (clear headings, short sections)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
.coderabbit.yaml (1)

171-256: Consider consolidating shared principles to reduce repetition.

Per earlier feedback, there's opportunity to reduce the prompt length by extracting common PHILOSOPHY and AVOID principles to the base docs/** block. Currently at ~85 lines; consolidation could reduce to ~60-65 lines.

Potential consolidation approach:

  1. Move shared philosophy (incremental improvements, concise feedback, reader success focus) to the docs/** block
  2. Move common avoidances (no lint feedback, no large restructures) to the base block
  3. Keep only audience-specific guidance in sdk_users/** and sdk_developers/** blocks

That said, the current self-contained structure has clear maintainability benefits—each block is independently understandable. This is a design trade-off rather than a defect.

📝 Example consolidation

Move to docs/** block:

SHARED PHILOSOPHY
- Treat docs as work-in-progress: optimize for correctness and clarity.
- Keep feedback concise, action-oriented, and focused on reader success.
- Prefer follow-up issues for large gaps over blocking PRs.

SHARED AVOID
- Avoid lint-style feedback on Markdown formatting.
- Avoid large-scale restructures unless current structure blocks understanding.

Then trim redundant sections from sdk_users/** and sdk_developers/** blocks.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8dcb557 and 6e87b34.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
CHANGELOG.md (1)

124-124: LGTM!

The changelog entry accurately describes the documentation review prompts added to .coderabbit.yaml and follows the established format.

@Mounil2005 Mounil2005 force-pushed the feature/coderabbit-docs-prompt branch from 6e87b34 to 7acd554 Compare January 1, 2026 19:37
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
CHANGELOG.md (1)

1-1: Remove the BOM (Byte Order Mark) character from the file header.

The file begins with a UTF-8 BOM character that can cause issues with certain parsers and tools.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6e87b34 and 7acd554.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
CHANGELOG.md (1)

125-125: LGTM!

The changelog entry accurately describes the addition of CodeRabbit documentation review prompts and properly references issue #1236.

@Mounil2005 Mounil2005 force-pushed the feature/coderabbit-docs-prompt branch from 7acd554 to c872870 Compare January 1, 2026 19:46
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
CHANGELOG.md (1)

1-1: BOM character issue previously flagged.

This line still contains the UTF-8 BOM character that was flagged in a previous review. Please address the earlier comment to remove it.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7acd554 and c872870.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
CHANGELOG.md (1)

127-127: LGTM! Changelog entry is clear and accurate.

The entry accurately describes the documentation review prompts added in this PR, follows project conventions, and links to the correct issue.

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

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

Very good, last tidy please!

@exploreriii exploreriii marked this pull request as draft January 1, 2026 20:14
@github-actions
Copy link

github-actions bot commented Jan 1, 2026

Hi, this is MergeConflictBot.
Your pull request cannot be merged because it contains merge conflicts.

Please resolve these conflicts locally and push the changes.

To assist you, please read:

Thank you for contributing!

…sdk_developers

- General docs guidance with correctness, clarity, completeness, consistency, and navigation priorities
- SDK users guidance focused on runnable examples, step-by-step clarity, and zero assumptions
- SDK developers guidance emphasizing workflow accuracy, edge cases, and training progression
- Edge case checks: external link versioning, deprecated patterns, audience signposts, platform gotchas, and standalone training modules
- Audience alignment and explicit next steps for mixed-audience pages and training

Resolves hiero-ledger#1236

Signed-off-by: Mounil <[email protected]>
@Mounil2005 Mounil2005 force-pushed the feature/coderabbit-docs-prompt branch from c872870 to 23cf578 Compare January 2, 2026 09:13
@Mounil2005 Mounil2005 marked this pull request as ready for review January 2, 2026 09:42
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1294   +/-   ##
=======================================
  Coverage   91.80%   91.80%           
=======================================
  Files         139      139           
  Lines        8484     8484           
=======================================
  Hits         7789     7789           
  Misses        695      695           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@exploreriii exploreriii merged commit 9a51751 into hiero-ledger:main Jan 2, 2026
19 checks passed
@exploreriii
Copy link
Contributor

Thanks again @Mounil2005 let's see how this goes!

@Mounil2005 Mounil2005 deleted the feature/coderabbit-docs-prompt branch January 7, 2026 11:57
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.

[Intermediate]: Create a Prompt to Code Rabbit to Explain to it how to review /docs

2 participants