mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
deploy: 1cfa305fba
This commit is contained in:
@@ -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">
|
||||
<home-manager/modules/programs/opencode.nix>
|
||||
</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/<name>/SKILL.md</code>)</p></li><li class="listitem"><p>A path to a file (creates <code class="literal">opencode/skill/<name>/SKILL.md</code>)</p></li><li class="listitem"><p>A path to a directory (creates <code class="literal">opencode/skill/<name>/</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 = ''
|
||||
---
|
||||
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
|
||||
'';
|
||||
|
||||
# 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>
|
||||
|
||||
Reference in New Issue
Block a user