Skip to content

#10670: Add AGENTS.md for AI coding assistant guidance - #215

Merged
Prafulrakhade merged 6 commits into
mosip:developfrom
chetankh239:agents-md-doc
Aug 26, 2026
Merged

Prafulrakhade merged 6 commits into
mosip:developfrom
chetankh239:agents-md-doc

Conversation

@chetankh239

@chetankh239 chetankh239 commented Aug 10, 2026 •

Copy link
Copy Markdown

Addresses mosip/mosip-config#10670 — adds a root AGENTS.md giving AI coding assistants and contributors a repository overview, tech stack, build/test commands, configuration notes, and PR guidelines for the mock-plugin, mosip-identity-plugin, and sunbird-rc-plugin modules.

Summary by CodeRabbit

  • Documentation
    • Added contributor guidance covering project structure, technology stack, build and test commands, configuration, development workflow, pull-request conventions, dependency guidelines, and CI behavior.

Addresses mosip/mosip-config#10670 — provides repository overview, tech stack, build/test commands, configuration notes, and contribution guidelines for AI agents and contributors working across the mock-plugin, mosip-identity-plugin, and sunbird-rc-plugin modules.

Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 4ef7e2a1-2c09-4c20-bab2-9191e7a13430

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9279a7b5-e862-42c1-adbf-a9a7130f5e41

📥 Commits

Reviewing files that changed from the base of the PR and between ea10c46 and bdea161.

📒 Files selected for processing (1)
  • AGENTS.md

Walkthrough

Added AGENTS.md with repository structure, Maven workflows, configuration requirements, CI behavior, dependency rules, and contribution guidance.

Changes

Repository Guidance

Layer / File(s) Summary
Repository structure and operations
AGENTS.md
Documents the three Maven modules, Java 21 and Maven tooling, build and test commands, configuration and secret handling, and CI behavior.
Contributor workflow and repository rules
AGENTS.md
Documents development workflow, pull-request requirements, dependency scope, versioning, publishing conditions, and agent-specific rules.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Poem

Three modules follow a clear plan,
Maven commands guide each span.
Secrets remain outside the code,
CI rules mark the proper road.
AGENTS.md records the mode.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding an AGENTS.md file for AI coding assistant guidance.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 69-74: Update the single-test Maven command in AGENTS.md so the
-Dtest=MockAuthenticationServiceTest system property appears before the test
goal, while preserving the mock-plugin directory and targeted test class.
🪄 Autofix

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: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9aa181c5-b2e2-4c2a-ac33-47e88d778c74

📥 Commits

Reviewing files that changed from the base of the PR and between fec2497 and 7deb1e7.

📒 Files selected for processing (1)
  • AGENTS.md

Comment thread AGENTS.md Outdated
-Dtest must come before the test goal for it to take effect.

Addresses review comment on mosip#215

Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
AGENTS.md (1)

176-177: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Scope the single-module rule to plugin implementation changes.

The current wording also covers valid repository-level work, such as AGENTS.md, workflow files, and shared documentation. An agent could reject a required repository-level change. Preserve module isolation for plugin code, but document an exception for repository-level changes.

Proposed fix
-1. Work inside a single module directory (`mock-plugin`, `mosip-identity-plugin`, or `sunbird-rc-plugin`) per change, and run that module's own `mvn clean install` / `mvn test` before proposing a change as complete.
+1. For plugin implementation changes, work inside a single module directory (`mock-plugin`, `mosip-identity-plugin`, or `sunbird-rc-plugin`), and run that module's own `mvn clean install` / `mvn test` before proposing a change as complete.
+   Repository-level documentation, workflow, and shared configuration changes may modify the required root-level files.

Based on learnings: “Work inside a single module per change unless a cross-module change is explicitly required.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 176 - 177, Update the single-module rule in AGENTS.md
to apply specifically to plugin implementation changes, while allowing
repository-level changes such as AGENTS.md, workflow files, and shared
documentation to span modules when required. Preserve the requirement to run the
affected module’s Maven checks and retain the module README guidance for
configuration changes.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@AGENTS.md`:
- Around line 176-177: Update the single-module rule in AGENTS.md to apply
specifically to plugin implementation changes, while allowing repository-level
changes such as AGENTS.md, workflow files, and shared documentation to span
modules when required. Preserve the requirement to run the affected module’s
Maven checks and retain the module README guidance for configuration changes.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1febebd9-feb9-486d-a751-341171645709

📥 Commits

Reviewing files that changed from the base of the PR and between 7deb1e7 and ea10c46.

📒 Files selected for processing (1)
  • AGENTS.md

Maven's CLI parser accepts -D properties in either position relative
to the goal, unlike a plain java -jar command where the JVM stops
parsing options at -jar. The previous rule incorrectly applied the
java -jar requirement to Maven too. Standardize the examples on -D
after the goal (mvn clean install -Dfoo=bar), matching common Maven
convention, and correct the stated rule.

Self-correction: found while fixing the same mistake in
mosip/esignet-signup#956
Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
@chetankh239

Copy link
Copy Markdown
Author

Self-correction (not prompted by an active CodeRabbit comment here): the -D system properties must precede the goal" rule I'd added for Maven commands was wrong — Maven's CLI parser accepts -D in either position, unlike java -jar where it's a hard JVM requirement. Found this while fixing the same mistake on esignet-signup#956. Standardized the examples on -D after the goal and corrected the stated rule.

Adds mock-plugin/AGENTS.md, mosip-identity-plugin/AGENTS.md, and
sunbird-rc-plugin/AGENTS.md, documenting each module's dual
esignet-integration-api/signup-integration-api package layout (where
applicable), implemented interfaces, and key classes. Notably flags
that mosip-identity-plugin (the production plugin) still ships a
MockIdentityVerifierPluginImpl for signup identity verification.
Root AGENTS.md now links to each.

Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread mosip-identity-plugin/AGENTS.md Outdated
Comment thread sunbird-rc-plugin/AGENTS.md Outdated
Comment thread mock-plugin/AGENTS.md Outdated
- Add -Dgpg.skip=true to every mvn clean install example (root and
  per-module AGENTS.md): each module's maven-gpg-plugin binds sign to
  the verify phase, which install runs through, so local builds fail
  without a signing key unless skipped.
- sunbird-rc-plugin/AGENTS.md: remove the "don't drive-by rename the
  misspelled test file" Do-not item, per maintainer request.

Addresses review comments on mosip#215

Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
Consolidate facts restated 2-3x across sections ("target develop",
"no root pom.xml", mock-plugin not-for-production warning, -D CLI
ordering rationale, provided-scope dependency rule) down to one
statement each, and tighten prose.

477 -> 388 lines across root + 3 module guides. Every command,
-Dgpg.skip=true flag, and security warning kept, just tighter.

Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
@Prafulrakhade
Prafulrakhade merged commit ffbec56 into mosip:develop Aug 26, 2026
13 checks passed
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.

3 participants