@@ -16,11 +16,11 @@ agents = ["claude", "cursor"] # Optional, agent targets
1616
1717## Top-Level Fields
1818
19- | Field | Type | Required | Default | Description |
20- | -------| ------| ---------- | ---------| -------------|
21- | ` version ` | integer | Yes | -- | Schema version, must be ` 1 ` |
22- | ` gitignore ` | boolean | No | ` true ` | Generate ` .agents/.gitignore ` for managed skills. |
23- | ` agents ` | string[ ] | No | ` [] ` | Agent targets: ` claude ` , ` cursor ` , ` codex ` , ` vscode ` , ` opencode ` |
19+ | Field | Type | Required | Default | Description |
20+ | ----------- | -------- | -------- | ------- | ---------------------------------------------------------------- |
21+ | ` version ` | integer | Yes | -- | Schema version, must be ` 1 ` |
22+ | ` gitignore ` | boolean | No | ` true ` | Generate ` .agents/.gitignore ` for managed skills. |
23+ | ` agents ` | string[ ] | No | ` [] ` | Agent targets: ` claude ` , ` cursor ` , ` codex ` , ` vscode ` , ` opencode ` |
2424
2525## Project Section
2626
@@ -50,12 +50,12 @@ ref = "v1.0.0" # Optional, pin to tag/branch/commit
5050path = " tools/my-skill" # Optional, subdirectory within repo
5151```
5252
53- | Field | Type | Required | Description |
54- | -------| ------| ---------- | -------------|
55- | ` name ` | string | Yes | Unique identifier. Pattern: ` ^[a-zA-Z0-9][a-zA-Z0-9._-]*$ ` |
56- | ` source ` | string | Yes | ` owner/repo ` , ` owner/repo@ref ` , ` git:url ` , or ` path:relative ` |
57- | ` ref ` | string | No | Tag, branch, or commit SHA to pin |
58- | ` path ` | string | No | Subdirectory containing the skill within the source repo |
53+ | Field | Type | Required | Description |
54+ | -------- | ------ | -------- | -- ----------------------------------------------------------- |
55+ | ` name ` | string | Yes | Unique identifier. Pattern: ` ^[a-zA-Z0-9][a-zA-Z0-9._-]*$ ` |
56+ | ` source ` | string | Yes | ` owner/repo ` , ` owner/repo@ref ` , ` git:url ` , or ` path:relative ` |
57+ | ` ref ` | string | No | Tag, branch, or commit SHA to pin |
58+ | ` path ` | string | No | Subdirectory containing the skill within the source repo |
5959
6060### Wildcard Skills
6161
@@ -67,12 +67,12 @@ ref = "v1.0.0" # Optional
6767exclude = [" deprecated-skill" ] # Optional, skills to skip
6868```
6969
70- | Field | Type | Required | Description |
71- | -------| ------| ----------| -------------|
72- | ` name ` | literal ` "*" ` | Yes | Wildcard marker |
73- | ` source ` | string | Yes | Same formats as regular skills |
74- | ` ref ` | string | No | Tag, branch, or commit SHA to pin |
75- | ` exclude ` | string[ ] | No | Skill names to skip. Default: ` [] ` |
70+ | Field | Type | Required | Description |
71+ | --------- | ------------- | -------- | ---------------------------------- |
72+ | ` name ` | literal ` "*" ` | Yes | Wildcard marker |
73+ | ` source ` | string | Yes | Same formats as regular skills |
74+ | ` ref ` | string | No | Tag, branch, or commit SHA to pin |
75+ | ` exclude ` | string[ ] | No | Skill names to skip. Default: ` [] ` |
7676
7777## Trust Section
7878
@@ -87,12 +87,12 @@ github_repos = ["ext-org/repo"] # Exact owner/repo pairs
8787git_domains = [" git.corp.example.com" ] # Git URL domains
8888```
8989
90- | Field | Type | Description |
91- | -------| ------| -------------|
92- | ` allow_all ` | boolean | Allow all sources (overrides other fields) |
93- | ` github_orgs ` | string[ ] | Allowed GitHub organizations |
94- | ` github_repos ` | string[ ] | Allowed exact ` owner/repo ` pairs |
95- | ` git_domains ` | string[ ] | Allowed domains for ` git: ` URLs |
90+ | Field | Type | Description |
91+ | -------------- | -------- | ------------------------------------------ |
92+ | ` allow_all ` | boolean | Allow all sources (overrides other fields) |
93+ | ` github_orgs ` | string[ ] | Allowed GitHub organizations |
94+ | ` github_repos ` | string[ ] | Allowed exact ` owner/repo ` pairs |
95+ | ` git_domains ` | string[ ] | Allowed domains for ` git: ` URLs |
9696
9797No ` [trust] ` section = allow all sources (backward compatible).
9898
@@ -116,14 +116,14 @@ name = "remote-api" # Required, unique server name
116116url = " https://mcp.example.com/sse" # Required for HTTP
117117```
118118
119- | Field | Type | Required | Description |
120- | -------| ------| ----------| -------------|
121- | ` name ` | string | Yes | Unique server identifier |
122- | ` command ` | string | Stdio only | Command to execute |
123- | ` args ` | string[ ] | No | Command arguments |
124- | ` env ` | string[ ] | No | Environment variable names to pass through |
125- | ` url ` | string | HTTP only | Server URL |
126- | ` headers ` | table | No | HTTP headers |
119+ | Field | Type | Required | Description |
120+ | --------- | -------- | ---------- | ------------------------------------------ |
121+ | ` name ` | string | Yes | Unique server identifier |
122+ | ` command ` | string | Stdio only | Command to execute |
123+ | ` args ` | string[ ] | No | Command arguments |
124+ | ` env ` | string[ ] | No | Environment variable names to pass through |
125+ | ` url ` | string | HTTP only | Server URL |
126+ | ` headers ` | table | No | HTTP headers |
127127
128128## Hooks Section
129129
@@ -134,11 +134,11 @@ matcher = "Bash" # Optional, tool name filter
134134command = " my-lint-check" # Required
135135```
136136
137- | Field | Type | Required | Description |
138- | -------| ------| ---------- | -------------|
139- | ` event ` | string | Yes | ` PreToolUse ` , ` PostToolUse ` , ` UserPromptSubmit ` , ` Stop ` |
140- | ` matcher ` | string | No | Tool name to match (omit for all tools) |
141- | ` command ` | string | Yes | Shell command to execute |
137+ | Field | Type | Required | Description |
138+ | --------- | ------ | -------- | -- ----------------------------------------------------- |
139+ | ` event ` | string | Yes | ` PreToolUse ` , ` PostToolUse ` , ` UserPromptSubmit ` , ` Stop ` |
140+ | ` matcher ` | string | No | Tool name to match (omit for all tools) |
141+ | ` command ` | string | Yes | Shell command to execute |
142142
143143## Lockfile (agents.lock)
144144
@@ -156,20 +156,20 @@ commit = "c8881564e75eff4faaecc82d1c3f13356851b6e7"
156156integrity = " sha256-FWmCLdOj+x+XffiEg7Bx19drylVypeKz8me9OA757js="
157157```
158158
159- | Field | Type | Description |
160- | -------| ------| -------------|
161- | ` source ` | string | Original source from ` agents.toml ` |
162- | ` resolved_url ` | string | Resolved git URL |
163- | ` resolved_path ` | string | Subdirectory within repo |
164- | ` resolved_ref ` | string | Ref that was resolved (omitted for default branch) |
165- | ` commit ` | string | Full 40-char SHA of resolved commit |
166- | ` integrity ` | string | ` sha256- ` prefixed base64 content hash |
159+ | Field | Type | Description |
160+ | --------------- | ------ | -------------------------------------------------- |
161+ | ` source ` | string | Original source from ` agents.toml ` |
162+ | ` resolved_url ` | string | Resolved git URL |
163+ | ` resolved_path ` | string | Subdirectory within repo |
164+ | ` resolved_ref ` | string | Ref that was resolved (omitted for default branch) |
165+ | ` commit ` | string | Full 40-char SHA of resolved commit |
166+ | ` integrity ` | string | ` sha256- ` prefixed base64 content hash |
167167
168168Local path skills have ` source ` and ` integrity ` only (no commit).
169169
170170## Environment Variables
171171
172- | Variable | Purpose |
173- | ----------| ---------|
172+ | Variable | Purpose |
173+ | --------------------- | ------------------------------------------------------- |
174174| ` DOTAGENTS_STATE_DIR ` | Override cache location (default: ` ~/.local/dotagents ` ) |
175- | ` DOTAGENTS_HOME ` | Override user-scope location (default: ` ~/.agents ` ) |
175+ | ` DOTAGENTS_HOME ` | Override user-scope location (default: ` ~/.agents ` ) |
0 commit comments