mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-06 17:11:03 +01:00
deploy: b035546241
This commit is contained in:
parent
ca36eee75d
commit
1e0b7a2760
1 changed files with 88 additions and 0 deletions
|
|
@ -57639,6 +57639,94 @@ null or package</p>
|
||||||
<p><span class="emphasis"><em>Default:</em></span>
|
<p><span class="emphasis"><em>Default:</em></span>
|
||||||
<code class="literal">pkgs.opencode</code></p>
|
<code class="literal">pkgs.opencode</code></p>
|
||||||
|
|
||||||
|
<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.agents"></a><a class="term" href="options.xhtml#opt-programs.opencode.agents"><code class="option">programs.opencode.agents</code>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</dt>
|
||||||
|
<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 ~/.config/opencode/agent/ directory.</p></li></ul></div>
|
||||||
|
|
||||||
|
<p><span class="emphasis"><em>Type:</em></span>
|
||||||
|
attribute set of (strings concatenated with “\n” 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">{
|
||||||
|
code-reviewer = ''
|
||||||
|
# Code Reviewer Agent
|
||||||
|
|
||||||
|
You are a senior software engineer specializing in code reviews.
|
||||||
|
Focus on code quality, security, and maintainability.
|
||||||
|
|
||||||
|
## Guidelines
|
||||||
|
- Review for potential bugs and edge cases
|
||||||
|
- Check for security vulnerabilities
|
||||||
|
- Ensure code follows best practices
|
||||||
|
- Suggest improvements for readability and performance
|
||||||
|
'';
|
||||||
|
documentation = ./agents/documentation.md;
|
||||||
|
}
|
||||||
|
|
||||||
|
</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.commands"></a><a class="term" href="options.xhtml#opt-programs.opencode.commands"><code class="option">programs.opencode.commands</code>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</dt>
|
||||||
|
<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 ~/.config/opencode/command/ directory.</p></li></ul></div>
|
||||||
|
|
||||||
|
<p><span class="emphasis"><em>Type:</em></span>
|
||||||
|
attribute set of (strings concatenated with “\n” 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">{
|
||||||
|
changelog = ''
|
||||||
|
# Update Changelog Command
|
||||||
|
|
||||||
|
Update CHANGELOG.md with a new entry for the specified version.
|
||||||
|
Usage: /changelog [version] [change-type] [message]
|
||||||
|
'';
|
||||||
|
fix-issue = ./commands/fix-issue.md;
|
||||||
|
commit = ''
|
||||||
|
# Commit Command
|
||||||
|
|
||||||
|
Create a git commit with proper message formatting.
|
||||||
|
Usage: /commit [message]
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
<p><span class="emphasis"><em>Declared by:</em></span></p>
|
<p><span class="emphasis"><em>Declared by:</em></span></p>
|
||||||
<table border="0" summary="Simple list" class="simplelist">
|
<table border="0" summary="Simple list" class="simplelist">
|
||||||
<tr><td>
|
<tr><td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue