This commit is contained in:
khaneliman
2025-12-19 19:20:23 +00:00
parent dbe4de3f29
commit 601e21eff4

View File

@@ -26378,6 +26378,80 @@ null or strings concatenated with “\n”</p>
&#x27;&#x27;
</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/claude-code.nix" target="_top">
&lt;home-manager/modules/programs/claude-code.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.claude-code.rules"></a><a class="term" href="options.xhtml#opt-programs.claude-code.rules"><code class="option">programs.claude-code.rules</code>
</a>
</span>
</dt>
<dd>
<p>Modular rule files for Claude Code.
The attribute name becomes the rule 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 rule content
Rules are stored in .claude/rules/ directory.
All markdown files in .claude/rules/ are automatically loaded as project memory.</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-style = &#x27;&#x27;
# Code Style Guidelines
- Use consistent formatting
- Follow language conventions
&#x27;&#x27;;
testing = &#x27;&#x27;
# Testing Conventions
- Write tests for all new features
- Maintain test coverage above 80%
&#x27;&#x27;;
security = ./rules/security.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/claude-code.nix" target="_top">
&lt;home-manager/modules/programs/claude-code.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.claude-code.rulesDir"></a><a class="term" href="options.xhtml#opt-programs.claude-code.rulesDir"><code class="option">programs.claude-code.rulesDir</code>
</a>
</span>
</dt>
<dd>
<p>Path to a directory containing rule files for Claude Code.
Rule files from this directory will be symlinked to .claude/rules/.
All markdown files in this directory are automatically loaded as project memory.</p>
<p><span class="emphasis"><em>Type:</em></span>
null or absolute path</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">null</code></p>
<p><span class="emphasis"><em>Example:</em></span>
<code class="literal">./rules</code></p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>