This commit is contained in:
rycee
2026-01-03 10:48:07 +00:00
parent dbe26921a0
commit db610dc844

View File

@@ -62374,7 +62374,7 @@ null or package</p>
<dd>
<p>Custom agents for opencode.
The attribute name becomes the agent filename, and the value is either:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>Inline content as a string</p></li><li class="listitem"><p>A path to a file containing the agent content
Agents are stored in <code class="filename">$XDG_CONFIG_HOME/.config/opencode/agent/</code> directory.</p></li></ul></div>
Agents are stored in <code class="filename">$XDG_CONFIG_HOME/opencode/agent/</code> directory.</p></li></ul></div>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (strings concatenated with “\n” or absolute path)</p>
@@ -62418,7 +62418,7 @@ attribute set of (strings concatenated with “\n” or absolute path)</p>
<dd>
<p>Custom commands for opencode.
The attribute name becomes the command filename, and the value is either:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>Inline content as a string</p></li><li class="listitem"><p>A path to a file containing the command content
Commands are stored in <code class="filename">$XDG_CONFIG_HOME/.config/opencode/command/</code> directory.</p></li></ul></div>
Commands are stored in <code class="filename">$XDG_CONFIG_HOME/opencode/command/</code> directory.</p></li></ul></div>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (strings concatenated with “\n” or absolute path)</p>
@@ -62531,6 +62531,53 @@ JSON value</p>
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/opencode.nix" target="_top">
&lt;home-manager/modules/programs/opencode.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.opencode.skills"></a><a class="term" href="options.xhtml#opt-programs.opencode.skills"><code class="option">programs.opencode.skills</code>
</a>
</span>
</dt>
<dd>
<p>Custom agent skills for opencode.</p><p>This option can either be:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>An attribute set defining skills</p></li><li class="listitem"><p>A path to a directory containing multiple skill folders</p></li></ul></div><p>If an attribute set is used, the attribute name becomes the skill directory name,
and the value is either:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>Inline content as a string (creates <code class="literal">opencode/skill/&lt;name&gt;/SKILL.md</code>)</p></li><li class="listitem"><p>A path to a file (creates <code class="literal">opencode/skill/&lt;name&gt;/SKILL.md</code>)</p></li><li class="listitem"><p>A path to a directory (creates <code class="literal">opencode/skill/&lt;name&gt;/</code> with all files)</p></li></ul></div><p>If a path is used, it is expected to contain one folder per skill name, each
containing a <code class="filename">SKILL.md</code>. The directory is symlinked to
<code class="filename">$XDG_CONFIG_HOME/opencode/skill/</code>.</p><p>See <a class="link" href="https://opencode.ai/docs/skills/" target="_top">https://opencode.ai/docs/skills/</a> for the documentation.</p>
<p><span class="emphasis"><em>Type:</em></span>
(attribute set of (strings concatenated with “\n” or absolute path)) or absolute path</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
git-release = &#x27;&#x27;
---
name: git-release
description: Create consistent releases and changelogs
---
## What I do
- Draft release notes from merged PRs
- Propose a version bump
- Provide a copy-pasteable `gh release create` command
&#x27;&#x27;;
# A skill can also be a directory containing SKILL.md and other files.
data-analysis = ./skills/data-analysis;
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>