Skip to content

docs: add community contract guidelines#18

Open
visionEye0 wants to merge 2 commits into
KiiChain:mainfrom
visionEye0:fix/issue-#10
Open

docs: add community contract guidelines#18
visionEye0 wants to merge 2 commits into
KiiChain:mainfrom
visionEye0:fix/issue-#10

Conversation

@visionEye0
Copy link
Copy Markdown

This PR addresses the need for better organization and documentation for community smart contracts within the repository. Previously, there was no central index or structured guide, which could lead to disorganized ad-hoc submissions.

To encourage consistency and ease of future auditing, I have introduced specific community contract guidelines.

Changes Made:
Created

COMMUNITY.md: Added a new file that details instructions for submitting community contracts. This includes:
Folder Structure: Guidelines indicating that each new contract should reside in its own dedicated folder within the contracts/ directory.
Required Elements: Specifications that all new contracts must include a

README.md
, comprehensive tests in the test/ folder, and a valid

LICENSE.
Naming Conventions: Established rules utilizing PascalCase for folders/contracts and camelCase for variables/functions as per Solidity style guides.
Updated

CONTRIBUTING.md:
Corrected outdated references (changed "Kiijs library" to "Kii-solidity-contracts repository").
Added a new section for Community Contract Guidelines that links directly to the detailed instructions in

COMMUNITY.md.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 18, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1070aaf6-fcaf-49e6-b672-1df40d49ceae

📥 Commits

Reviewing files that changed from the base of the PR and between 44f6934 and 4a5945b.

📒 Files selected for processing (1)
  • CONTRIBUTING.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • CONTRIBUTING.md

Walkthrough

A new COMMUNITY.md was added defining community contract submission guidelines (required repository layout, required files, naming conventions for folders, contract files, tests, and identifiers). CONTRIBUTING.md was edited to retarget the repository (repository name updates and links), add a "Community Contract Guidelines" section linking to COMMUNITY.md, adjust wording around maintainers and API-compatibility guidance, and update related anchors and GitHub links. Both changes are documentation-only.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding community contract guidelines documentation.
Description check ✅ Passed The description is directly related to the changeset, detailing the new COMMUNITY.md file and CONTRIBUTING.md updates that implement community contract guidelines.
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

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
Copy Markdown
Contributor

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@CONTRIBUTING.md`:
- Around line 5-10: The table of contents link `[Question or
Problem?](`#question`)` is pointing to a non-existent fragment; update the
fragment target to match the actual heading id (for example change the link to
`[Question or Problem?](`#question-or-problem`)` or rename the section header to
`Question` to match `#question`) so in-page navigation works; edit the TOC entry
containing `[Question or Problem?](`#question`)` and ensure the corresponding
section header matches the fragment identifier.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7b5b2838-83e5-4510-8d53-d3a5470f95e1

📥 Commits

Reviewing files that changed from the base of the PR and between 691f00e and 44f6934.

📒 Files selected for processing (2)
  • COMMUNITY.md
  • CONTRIBUTING.md

Comment thread CONTRIBUTING.md
Comment on lines 5 to 10
- [Code of Conduct](#coc)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Community Contract Guidelines](#community-contracts)
- [Submission Guidelines](#submit)
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.

⚠️ Potential issue | 🟡 Minor

Fix broken Table of Contents fragment link.

[Question or Problem?](#question) points to a missing fragment target, so in-page navigation is broken.

Proposed fix
-- [Question or Problem?](`#question`)
+- [Question or Problem?](`#issue`)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- [Code of Conduct](#coc)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Community Contract Guidelines](#community-contracts)
- [Submission Guidelines](#submit)
- [Code of Conduct](`#coc`)
- [Question or Problem?](`#issue`)
- [Issues and Bugs](`#issue`)
- [Feature Requests](`#feature`)
- [Community Contract Guidelines](`#community-contracts`)
- [Submission Guidelines](`#submit`)
🧰 Tools
🪛 markdownlint-cli2 (0.22.0)

[warning] 6-6: Link fragments should be valid

(MD051, link-fragments)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` around lines 5 - 10, The table of contents link `[Question
or Problem?](`#question`)` is pointing to a non-existent fragment; update the
fragment target to match the actual heading id (for example change the link to
`[Question or Problem?](`#question-or-problem`)` or rename the section header to
`Question` to match `#question`) so in-page navigation works; edit the TOC entry
containing `[Question or Problem?](`#question`)` and ensure the corresponding
section header matches the fragment identifier.

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.

1 participant