Skip to content

meta: Add dotagents configuration#5230

Open
markushi wants to merge 3 commits intomainfrom
markushi/feat/dotagents
Open

meta: Add dotagents configuration#5230
markushi wants to merge 3 commits intomainfrom
markushi/feat/dotagents

Conversation

@markushi
Copy link
Copy Markdown
Member

@markushi markushi commented Mar 24, 2026

📜 Description

Sets up dotagents for managing shared agent skills in this repo.

Changes:

💡 Motivation and Context

dotagents is Sentry's CLI tool for managing AI agent skills declaratively — like a package manager for instruction sets that teach AI coding assistants (Claude Code, Cursor, etc.) how to do Sentry-specific tasks. Teams run npx @sentry/dotagents install to get consistent AI assistant behavior.

💚 How did you test it?

Verified npx @sentry/dotagents install installs all declared skills and Claude Code resolves them correctly.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

#skip-changelog

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 24, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@sentry
Copy link
Copy Markdown

sentry bot commented Mar 24, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
SDK Size io.sentry.tests.size 8.37.1 (1) release Install Build

@markushi markushi force-pushed the markushi/feat/dotagents branch 2 times, most recently from 709ac2e to 27ba1df Compare March 26, 2026 09:23
Sets up dotagents to manage AI agent skills declaratively via agents.toml.
Previously committed skills are now managed by dotagents and gitignored.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@markushi markushi force-pushed the markushi/feat/dotagents branch from 27ba1df to 3cc54d5 Compare March 26, 2026 09:29
@@ -1,184 +0,0 @@
---
name: create-java-pr
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this PR removes skills, can we keep those please

Use a nested .gitignore in .claude/skills/ to ignore dotagents-managed
skills while preserving repo-specific custom skills (create-java-pr, test).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@markushi markushi marked this pull request as ready for review March 31, 2026 06:46
@markushi markushi requested a review from romtsn as a code owner March 31, 2026 06:46
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Six declared skills missing from agents.toml configuration
    • Added all 6 missing remote skills (sentry-android-sdk, sentry-sdk-setup, sentry-sdk-upgrade, sentry-feature-setup, sentry-create-alert, sentry-setup-ai-monitoring) sourced from getsentry/sentry-for-ai.
  • ✅ Fixed: Local skill path sources reference empty untracked directory
    • Changed local skill paths from path:.agents/skills/ to path:.claude/skills/ to reference the actual tracked skill files instead of the symlink.

Create PR

Or push these changes by commenting:

@cursor push d3c1e709a3
Preview (d3c1e709a3)
diff --git a/agents.toml b/agents.toml
--- a/agents.toml
+++ b/agents.toml
@@ -25,9 +25,33 @@
 source = "getsentry/sentry-for-ai"
 
 [[skills]]
+name = "sentry-android-sdk"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
+name = "sentry-sdk-setup"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
+name = "sentry-sdk-upgrade"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
+name = "sentry-feature-setup"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
+name = "sentry-create-alert"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
+name = "sentry-setup-ai-monitoring"
+source = "getsentry/sentry-for-ai"
+
+[[skills]]
 name = "create-java-pr"
-source = "path:.agents/skills/create-java-pr"
+source = "path:.claude/skills/create-java-pr"
 
 [[skills]]
 name = "test"
-source = "path:.agents/skills/test"
+source = "path:.claude/skills/test"

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

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.

2 participants