getsentry/dotagents 是一个从 https://github.com/getsentry/dotagents. 导入的 Agent Skill 候选人。
概览
getsentry/dotagents 是一个从 https://github.com/getsentry/dotagents. 导入的 Agent Skill 候选人。
概述(AI 翻译)
为编码代理提供共享工具。在agents.toml中声明技能、MCP服务器、钩子、子代理和插件——dotagents会将它们连接到你团队中的每个代理工具中。
为什么是点代理人?
**唯一真实的来源。**技能存在于.agents/skills/],并与.claude/skills/或你的工具预期的位置同步。光标共享兼容Claude的技能。目录间不复制粘贴。
**只需一个命令即可安装。**全局依赖存在于~/.agents/之下。仓库本地依赖可以在已提交的agents.toml中声明;协作者运行dotagents --project install来获取或刷新该项目的管理状态。
可共享。 技能是带有SKILL.md的目录。托管在任何git仓库中,自动发现,用一个命令安装。
多代理。 配置 Claude、Cursor、Codex、GitHub Copilot CLI、Grok、VS Code、OpenCode 和 Pi 都来自一个 agents.toml——支持技能、MCP 服务器、钩子、子代理和插件。Pi 直接读取 .agents/skills/。
快速入门:默认全球
没有作用域标志时,每个命令在 ~/.agents/ 下以全局状态运行,即使在仓库中运行。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
dotagents
Shared tooling for coding agents. Declare skills, MCP servers, hooks, subagents, and plugins in agents.toml — dotagents wires them into every agent tool on your team.
Why dotagents?
One source of truth. Skills live in .agents/skills/ and symlink into .claude/skills/ or wherever your tools expect them. Cursor shares Claude-compatible skills. No copy-pasting between directories.
One command to install. Global dependencies live under ~/.agents/. Repository-local dependencies can be declared in a committed agents.toml; collaborators run dotagents --project install to fetch or refresh that project’s managed state.
Shareable. Skills are directories with a SKILL.md. Host them in any git repo, discover them automatically, install with one command.
Multi-agent. Configure Claude, Cursor, Codex, GitHub Copilot CLI, Grok, VS Code, OpenCode, Pi, and Google Antigravity from a single agents.toml – skills, MCP servers, hooks, subagents, and plugins where supported. Pi reads .agents/skills/ directly.
Quick Start: Global by Default
npx @sentry/dotagents init
Without a scope flag, every command operates on global state under ~/.agents/, even when run inside a repository. The interactive setup walks you through selecting agents and trust policy. Then add skills or plugins:
# Add a skill from a GitHub repo
npx @sentry/dotagents add getsentry/skills find-bugs
# Add multiple skills at once
npx @sentry/dotagents add getsentry/skills find-bugs code-review commit
# Or add all skills from a repo
npx @sentry/dotagents add getsentry/skills --all
# Add a plugin (auto-detected from the source)
npx @sentry/dotagents add getsentry/agent-plugins review-tools
This creates ~/.agents/agents.toml and ~/.agents/agents.lock, making the dependencies available across projects.
Run install again whenever you want to refresh global managed state:
npx @sentry/dotagents install
Repository-Local Workflow
Use --project for repository-local state. Inside Git, dotagents uses the repository root; outside Git, --project init uses the current directory.
# Initialize this repository
npx @sentry/dotagents --project init
# Add a dependency only for this repository
npx @sentry/dotagents --project add getsentry/skills find-bugs
# After cloning or pulling a repository with agents.toml
npx @sentry/dotagents --project install
# Check and repair repository-local state
npx @sentry/dotagents --project doctor --fix
Project commands other than init require agents.toml and never fall back to global state. Existing project and global files are not copied, merged, or removed when switching scopes.
Project-managed paths must also resolve inside the repository: traversal paths and symlinks that point outside it are rejected, while aliases to another location inside the repository remain supported.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add getsentry/dotagents