AgentSkillsCN

dotagents

通过 dotagents 管理代理技能依赖关系。适用于被要求“添加技能”、“安装技能”、“移除技能”、“更新技能”、“dotagents init”、“agents.toml”、“agents.lock”、“同步技能”、“列出技能”、“设置 dotagents”、“配置信任”、“添加 MCP 服务器”、“添加钩子”,或执行任何与 dotagents 相关的任务时使用。

SKILL.md
--- frontmatter
name: dotagents
description: Manage agent skill dependencies with dotagents. Use when asked to "add a skill", "install skills", "remove a skill", "update skills", "dotagents init", "agents.toml", "agents.lock", "sync skills", "list skills", "set up dotagents", "configure trust", "add MCP server", "add hook", or any dotagents-related task.

Manage agent skill dependencies declared in agents.toml. dotagents resolves, installs, and symlinks skills so multiple agent tools (Claude Code, Cursor, Codex, etc.) discover them from .agents/skills/.

References

Read the relevant reference when the task requires deeper detail:

DocumentRead When
references/cli-reference.mdFull command options, flags, examples
references/configuration.mdEditing agents.toml, source formats, trust, MCP, hooks
references/config-schema.mdExact field names, types, and defaults

Quick Start

bash
# Initialize a new project (interactive TUI)
dotagents init

# Add a skill from GitHub
dotagents add getsentry/skills

# Add a pinned skill
dotagents add getsentry/warden@v1.0.0

# Install all dependencies from agents.toml
dotagents install

# List installed skills
dotagents list

Commands

CommandDescription
dotagents initInitialize agents.toml and .agents/ directory
dotagents installInstall all skills from agents.toml
dotagents add <specifier>Add a skill dependency
dotagents remove <name>Remove a skill
dotagents update [name]Update skills to latest versions
dotagents syncReconcile state (adopt orphans, repair symlinks, verify integrity)
dotagents listShow installed skills and their status

For full options and flags, read references/cli-reference.md.

Source Formats

FormatExampleDescription
GitHubgetsentry/skillsGitHub owner/repo
GitHub pinnedgetsentry/warden@v1.0.0With tag, branch, or commit
Git URLgit:https://git.corp.dev/team/skillsAny git remote
Local pathpath:./my-skills/customRelative to project root

Key Concepts

  • .agents/skills/ is the canonical home for all installed skills
  • agents.toml declares dependencies; agents.lock pins exact commits and integrity hashes
  • Symlinks: .claude/skills/, .cursor/skills/, etc. point to .agents/skills/
  • Trust: Optional [trust] section restricts which sources are allowed
  • Gitignore: When gitignore = true, managed skills are gitignored; custom in-place skills are tracked