Skip to content

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

Open
pingidentity-gaurav wants to merge 1 commit 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 1 commit 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 comprehensive developer guidance documentation covering project context and architectural patterns, standardized code conventions across languages, build/test/lint procedures, release workflows, integration testing requirements, documentation standards, licensing details, and Git safety rules to ensure code quality and security across contributions.

…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

📝 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 bridges 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 title accurately summarizes the main changes: adding AGENTS.md and CLAUDE.md files for AI agent context, which is the core objective of this PR.
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

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-19 17:57 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

1 participant