Skip to content

chore(claude): add claude.md files for common packages#7082

Open
shaejaz wants to merge 6 commits into
masterfrom
chore/claude-md-agents
Open

chore(claude): add claude.md files for common packages#7082
shaejaz wants to merge 6 commits into
masterfrom
chore/claude-md-agents

Conversation

@shaejaz

@shaejaz shaejaz commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Add AI-coding context docs for the InstantSearch monorepo

Adds Claude Code / AGENTS.md configuration to help AI tools navigate the repo's connector → flavor-wrapper → shared-UI architecture.

What's included

  • Root CLAUDE.md — repo map, per-layer "where work goes" routing, and cross-flavor change conventions (settle the contract in the connector first, then React + Vue, then common tests).
  • Per-package CLAUDE.md for instantsearch.js, react-instantsearch, vue-instantsearch, algoliasearch-helper, and the two Next.js integrations — each documenting that package's layout, working commands, and gotchas.
  • AGENTS.md — symlink to CLAUDE.md for cross-tool portability (Codex/Cursor).
  • Slash commands/expose-option (recipe for surfacing a connector option across all flavors) and /preflight (pre-push lint/types/tests/commit check).
  • .claude/rules/e2e.md — Playwright/WebdriverIO e2e testing guide.

Docs-only; no library code changes.

@codacy-production

codacy-production Bot commented Jun 22, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes.

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown
More templates

algoliasearch-helper

npm i https://pkg.pr.new/algolia/instantsearch/algoliasearch-helper@7082

instantsearch-ui-components

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch-ui-components@7082

instantsearch.css

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.css@7082

instantsearch.js

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.js@7082

react-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch@7082

react-instantsearch-core

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-core@7082

react-instantsearch-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-nextjs@7082

react-instantsearch-router-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-router-nextjs@7082

vue-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/vue-instantsearch@7082

commit: b013783

Copilot AI 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.

Pull request overview

Adds repository- and package-level CLAUDE.md documentation (plus .claude/commands/*) to give AI tooling and contributors a concise architectural map and workflow guidance for the InstantSearch monorepo. This is a docs-only PR intended to standardize “where changes go” across connector → flavor wrapper → shared UI layers.

Changes:

  • Add root CLAUDE.md describing monorepo architecture, conventions, and common commands.
  • Add per-package CLAUDE.md docs for key packages (InstantSearch core, shared UI components, React/Vue flavors, helper, Next.js integrations).
  • Add Claude command docs under .claude/commands/ for preflight checks and cross-flavor connector-option rollout.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/vue-instantsearch/CLAUDE.md Documents Vue package layout, dual Vue2/Vue3 workflow, and shared UI usage via renderCompat.
packages/react-instantsearch/CLAUDE.md Documents React layer split (core hooks vs DOM widgets) and local/shared UI conventions.
packages/react-instantsearch-router-nextjs/CLAUDE.md Documents Pages Router adapter responsibilities, API surface, and e2e workflow.
packages/react-instantsearch-nextjs/CLAUDE.md Documents App Router SSR/hydration architecture and testing workflow.
packages/instantsearch.js/CLAUDE.md Documents connector/widget layout and where cross-flavor behavior should be implemented/tested.
packages/instantsearch-ui-components/CLAUDE.md Documents shared UI factory/renderer pattern, typing/classname conventions, and testing approach.
packages/algoliasearch-helper/CLAUDE.md Documents helper role, stability expectations, and package-specific conventions (CJS, hand-written d.ts).
CLAUDE.md Adds repo-wide architecture map, “where work goes” routing, commands, and conventions.
.claude/commands/preflight.md Adds a reusable pre-push checklist procedure (lint/types/tests/commit message).
.claude/commands/expose-option.md Adds a cross-flavor checklist for surfacing a connector option through JS/React/Vue + tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-instantsearch/CLAUDE.md Outdated
Comment thread packages/react-instantsearch-router-nextjs/CLAUDE.md Outdated

Copilot AI 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.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Comment thread CLAUDE.md Outdated
Comment thread packages/vue-instantsearch/CLAUDE.md Outdated
Comment thread packages/instantsearch-ui-components/CLAUDE.md Outdated

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI 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.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

@shaejaz shaejaz marked this pull request as ready for review June 24, 2026 11:45
@shaejaz shaejaz requested review from a team, FabienMotte and afrencalg and removed request for a team June 24, 2026 11:46
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