You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/custom-skills.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,16 @@ Minimum frontmatter:
23
23
name: enforce-style
24
24
description: "Apply team style checks before submitting code"
25
25
args: "<task-id>"# optional
26
+
disable-model-invocation: true # optional; consumed by supporting TUI adapters
26
27
---
27
28
```
28
29
29
30
-`name`: user-facing skill name
30
31
-`description`: used when generating editor command metadata
31
32
-`args`: optional argument hint; agent-infra uses it when generating slash commands for supported AI TUIs
33
+
-`disable-model-invocation`: optional generic metadata; each TUI adapter consumes it according to its capabilities
34
+
35
+
Use a YAML literal block (`|`) when a multiline `description` should retain its line breaks. Sync emits the corresponding multiline metadata format for each TUI.
32
36
33
37
After adding the skill, run `update-agent-infra` again:
Copy file name to clipboardExpand all lines: templates/.agents/README.en.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,11 +165,14 @@ Recommended frontmatter:
165
165
name: enforce-style
166
166
description: "Apply the team style guide before code review. Use when you need to align the team's code style before review"
167
167
args: "<task-id>"# optional
168
+
disable-model-invocation: true # optional; consumed by supporting TUI adapters
168
169
---
169
170
```
170
171
171
172
Write `description` as "one-line responsibility + scenario clause": after the short responsibility, append "Use when …" (the Chinese `SKILL.zh-CN.md` variant uses "当……时使用") as the cross-TUI trigger semantics, so Agent Skills-capable tools can self-discover the skill in natural conversation. Do **not** add a separate `triggers` (or similar) frontmatter field for this.
172
173
174
+
Set the generic optional `disable-model-invocation` field to `true` when generated TUI commands should disable model invocation; each TUI adapter consumes it according to its capabilities. To preserve line breaks in a multiline `description`, use a YAML literal block (`|`); sync emits the corresponding multiline metadata format for each TUI.
175
+
173
176
After adding or updating a custom skill, run `update-agent-infra` again. The sync step detects non-built-in skills and generates matching commands for Claude Code, Gemini CLI, and OpenCode automatically.
0 commit comments