Skip to content

docs: Add AGENTS.md#1165

Merged
alexs-mparticle merged 8 commits intodevelopmentfrom
docs/no-jira-agents
Feb 20, 2026
Merged

docs: Add AGENTS.md#1165
alexs-mparticle merged 8 commits intodevelopmentfrom
docs/no-jira-agents

Conversation

@alexs-mparticle
Copy link
Collaborator

Background

Introduces an AGENTS.md file

What Has Changed

  • Add AGENTS.md file

Screenshots/Video

  • {Include any screenshots or video demonstrating the new feature or fix, if applicable}

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • {Any additional information or context relevant to this PR}

Reference Issue (For employees only. Ignore if you are an outside contributor)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an AGENTS.md guide intended to orient AI coding agents (and contributors) to the mParticle Web SDK’s architecture, workflows, and conventions.

Changes:

  • Introduces a new AGENTS.md document with common SDK guidance plus Web SDK–specific architecture and workflow notes.

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

Copy link
Contributor

@jaissica12 jaissica12 left a comment

Choose a reason for hiding this comment

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

Added couple of comments in Project Structure and Key Files Reference section!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Remove line count column from Key Files Reference table
- Move jest.config.js to root level in Project Structure
- Add jest/*.spec.ts to test directory structure
- Clarify test command as "unit tests" for better precision
- Add root level indicator for jest.config.js in project structure
- Update TypeScript configuration description to be more accurate
Add .claude/ directory with skills for debugging and session management:
- debug-jest: Jest/unit test failure debugging
- debug-build: TypeScript/Rollup build failure debugging
- debug-api: HTTP/network/API failure debugging
- handoff: Session context transfer document generation
- kickstart: Session initialization from handoff documents
- session-recap: Quick status summaries after interruptions

Also includes settings.local.json with WebFetch and GitHub CLI permissions.
Copy link
Contributor

@jaissica12 jaissica12 left a comment

Choose a reason for hiding this comment

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

I’ve added a few comments, mostly non-blocking. I noticed there’s quite a bit of redundancy in the file, which could potentially cause issues over time, so I’ve left suggestions around that.

I also have mixed thoughts on the Project Structure section. My suggestion would be to try it out for a while and revisit it later if adjustments are needed.

AGENTS.md Outdated
# Linting
npm run lint # ESLint check (both .js and .ts files)
npm run prettier # Prettier check (.js files only)
npm run gts:check # TypeScript style check (.ts files)
Copy link
Contributor

@jaissica12 jaissica12 Feb 20, 2026

Choose a reason for hiding this comment

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

nit: this fails for me locally. My suggestion is not to have these unless we fix the cause of failure


Fixed: Removed the gts:check and gts:fix commands since they fail when linting generated .d.ts files in dist/.

AGENTS.md Outdated
/.github/workflows/ # CI/CD pipelines
```

### Code Organization Pattern
Copy link
Contributor

@jaissica12 jaissica12 Feb 20, 2026

Choose a reason for hiding this comment

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

I think this can be removed since we have Project Structure section already exists, feels repetitive to me


Fixed: Removed the entire Code Organization Pattern section to avoid duplication with Project Structure and Testing Strategy sections.

AGENTS.md Outdated
└── jest/[feature].spec.ts # Jest tests (TypeScript unit tests)
```

**Testing Structure:**
Copy link
Contributor

@jaissica12 jaissica12 Feb 20, 2026

Choose a reason for hiding this comment

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

We can keep either this OR Jest (TypeScript Unit Tests) & Karma (Browser Integration Tests) section below


Fixed: Removed this subsection as part of removing the redundant Code Organization Pattern section. The detailed Testing Strategy section below covers this.

The gts:check and gts:fix commands fail due to linting issues with
generated files in dist/. Removing these commands until the gts
configuration can be fixed.
This section was repetitive with the Project Structure section above
and the Testing Strategy section below. Removing it makes the
documentation more concise and avoids duplication.
@sonarqubecloud
Copy link


<!-- ============================================ -->
<!-- COMMON SECTION - Keep synced across all SDKs -->
<!-- Last Updated: 2026-02-16 -->
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: date

@alexs-mparticle alexs-mparticle merged commit 6ecd6e0 into development Feb 20, 2026
29 of 33 checks passed
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 2.58.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants