Skip to content

chore(docs): add AGENTS.md and CLAUDE.md for AI agent context (SDKS-5134)#54

Open
pingidentity-gaurav wants to merge 4 commits into
mainfrom
SDKS-5134-add-agents-md
Open

chore(docs): add AGENTS.md and CLAUDE.md for AI agent context (SDKS-5134)#54
pingidentity-gaurav wants to merge 4 commits into
mainfrom
SDKS-5134-add-agents-md

Conversation

@pingidentity-gaurav

@pingidentity-gaurav pingidentity-gaurav commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds AGENTS.md at the repo root — the open-standard context file for AI coding agents (Claude, Copilot, Gemini, Codex, etc.)
  • Adds CLAUDE.md as a one-line @AGENTS.md redirect per the ticket's acceptance criteria
  • Removes AGENTS.md from .gitignore so it is tracked going forward

What's in AGENTS.md

  • Package table (all 15 packages including rn-push)
  • Build/test commands, config file locations, Lefthook git hooks
  • Releases/Changesets workflow
  • Dual-architecture bridge pattern (Android + iOS layout, TypeScript bridge)
  • Code standards: Swift 6, Kotlin 2.x, TypeScript API conventions, error handling, logging
  • Native SDK verification guidance
  • Cross-platform parity rules (TODO-PARITY)
  • Documentation conventions (TSDoc, KDoc, Swift)
  • Testing requirements (unit, integration, PingTestRunner E2E with commands)
  • Licensing and Git safety rules

Summary by CodeRabbit

  • Documentation
    • Added repository-wide operating guidance for AI coding agents, including build/lint/test commands, release/versioning workflow, cross-platform architectural conventions, coding/documentation standards, testing requirements, and licensing/security rules.
    • Added a licensing and attribution reference document for AI-assisted work.
  • Chores
    • Updated gitignore rules so AGENTS.md is no longer excluded from version control.

…134)

Adds the open-standard AGENTS.md at the repo root with comprehensive
context for AI coding agents: package table, build/test commands,
dual-arch bridge pattern, code standards, releases/Changesets workflow,
Lefthook hooks, and E2E testing guidance.

Adds CLAUDE.md as a one-line redirect to AGENTS.md.

Removes AGENTS.md from .gitignore so it is tracked going forward.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@pingidentity-gaurav, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 7 minutes and 13 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2f0d0885-e503-40ce-95ea-d8479ea19eba

📥 Commits

Reviewing files that changed from the base of the PR and between 440b29b and 35a918d.

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

Walkthrough

AGENTS.md is removed from .gitignore and added as a new tracked file containing comprehensive repository-wide guidance for AI coding agents. CLAUDE.md is also added as a minimal file with a copyright header that redirects agents to AGENTS.md.

Changes

AI Agent Guidance Documentation

Layer / File(s) Summary
.gitignore unignore and CLAUDE.md entry point
.gitignore, CLAUDE.md
Removes AGENTS.md from .gitignore so it is tracked, and adds CLAUDE.md with a copyright/license header pointing to @AGENTS.md.
AGENTS.md full content
AGENTS.md
Adds the complete agent guidance document covering repository overview, package-to-bridge mapping, build/lint/test/typecheck/prettier commands, Changesets release workflow, dual-architecture bridge pattern, Swift 6/Kotlin 2.x/TypeScript code standards, documentation comment conventions, PingTestRunner/E2E testing requirements, and mandatory licensing and Git safety rules.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A bunny hops in, ears perked up tall,
"No more hiding," the agents now call!
AGENTS.md blooms where once it was banned,
With bridges and standards across every land.
🐇✨ Git safety enforced, conventions in place,
The SDK monorepo: a well-documented space!

🚥 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 PR title accurately summarizes the main change: adding two new documentation files (AGENTS.md and CLAUDE.md) for AI agent context, and is appropriately labeled as a documentation chore.
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch SDKS-5134-add-agents-md

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.

🧹 Nitpick comments (2)
AGENTS.md (2)

51-68: 💤 Low value

Fix markdown heading hierarchy: #### Pre-submission checklist should be ###.

Line 62 jumps from h2 (## Design & Quality) directly to h4; markdown convention requires incremental level changes. Change to h3.

 - Call out potential security risks explicitly if present

-#### Pre-submission checklist
+### Pre-submission checklist
🤖 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 51 - 68, The markdown heading hierarchy in AGENTS.md
violates incremental level changes. The "Pre-submission checklist" heading is
currently at level 4 (####) but appears directly after a level 2 (##) heading,
skipping level 3. Change the "Pre-submission checklist" heading from four hashes
(####) to three hashes (###) to establish proper incremental heading progression
and follow markdown conventions.

121-127: 💤 Low value

Add language specifications to fenced code blocks.

Lines 123 and 137 have code blocks representing file layouts but lack a language identifier. Specify ```text for consistency with markdown linter expectations.

 ### Android layout (`packages/<pkg>/android/src/`)

-```
+```text
 main/       ← *Common.kt — shared implementation
 newarch/    ← *Module.kt (extends NativeXxxSpec) + *Package.kt
 oldarch/    ← *ClassicModule.kt (extends ReactContextBaseJavaModule) + *Package.kt
-```
+```text

And similarly for the iOS layout block at line 137:

 ### iOS layout (`packages/<pkg>/ios/`)

-```
+```text
 *Common.swift / *Impl.swift    ← shared Swift implementation
 RNPing*.mm                     ← TurboModule (ObjC++): implements getTurboModule:
 RNPing*Classic.mm              ← Classic bridge (ObjC): RCT_EXPORT_MODULE + RCT_EXPORT_METHOD
 RNPing*.h                      ← Header for classic bridge linking
-```
+```text

Also applies to: 135-142

🤖 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 121 - 127, The fenced code blocks representing the
Android layout directory structure and the iOS layout directory structure are
missing language identifiers in their opening backticks. Add `text` as the
language identifier by changing ``` to ```text for both the Android layout code
block (containing main/, newarch/, oldarch/ directory structure) and the iOS
layout code block (containing RNPing*.mm, RNPing*Classic.mm, and other file
references) to ensure compliance with markdown linter expectations.
🤖 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.

Nitpick comments:
In `@AGENTS.md`:
- Around line 51-68: The markdown heading hierarchy in AGENTS.md violates
incremental level changes. The "Pre-submission checklist" heading is currently
at level 4 (####) but appears directly after a level 2 (##) heading, skipping
level 3. Change the "Pre-submission checklist" heading from four hashes (####)
to three hashes (###) to establish proper incremental heading progression and
follow markdown conventions.
- Around line 121-127: The fenced code blocks representing the Android layout
directory structure and the iOS layout directory structure are missing language
identifiers in their opening backticks. Add `text` as the language identifier by
changing ``` to ```text for both the Android layout code block (containing
main/, newarch/, oldarch/ directory structure) and the iOS layout code block
(containing RNPing*.mm, RNPing*Classic.mm, and other file references) to ensure
compliance with markdown linter expectations.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6c3d7de3-be45-4914-834a-f168ae6e64af

📥 Commits

Reviewing files that changed from the base of the PR and between 48ff86d and 01356ab.

📒 Files selected for processing (3)
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
💤 Files with no reviewable changes (1)
  • .gitignore

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://ForgeRock.github.io/ping-react-native-sdk/docs-preview/pr-54/

Built to branch gh-pages at 2026-06-22 15:24 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Comment thread AGENTS.md
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
…(SDKS-5134)

Address CodeRabbit review comments:
- Fix h4 Pre-submission checklist heading to h3
- Add 'text' language identifier to Android and iOS layout code fences

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread AGENTS.md
Comment thread AGENTS.md Outdated
pingidentity-gaurav and others added 2 commits June 22, 2026 10:35
- Fix packages/core/src/ references → point to native source directories
- Add lazy module caching guidance to TypeScript bridge section
- Expand Git Safety with a comprehensive forbidden/allowed command list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove Node <21 upper bound (Node >=20 only)
- Replace KDoc @remarks with plain NOTE comment guidance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants