beads/website/docs/cli-reference/rules.md
matt wilkie dfa8ea4813
fix(docgen): generate CLI docs in one process (#4474)
Add a bulk help docs writer that emits the root CLI reference and website command pages from a single Cobra walk. Update the shell generator to call that mode, preserve the pure-Go docs binary guard, and refresh historical versioned CLI docs only when release snapshotting requests a specific version.

Agent-Signature: codex-gpt-5.5-medium on behalf of matt wilkie
2026-06-22 18:25:58 -07:00

49 lines
842 B
Markdown

---
id: rules
title: bd rules
slug: /cli-reference/rules
sidebar_position: 999
---
<!-- AUTO-GENERATED: do not edit manually -->
Generated from `bd help --doc rules`
## bd rules
Audit and compact Claude rules
```
bd rules [flags]
```
### bd rules audit
Scan rules for contradictions and merge opportunities
```
bd rules audit [flags]
```
**Flags:**
```
--path string Path to rules directory (default ".claude/rules/")
--threshold float Jaccard similarity threshold (default 0.6)
```
### bd rules compact
Merge related rules into composites
```
bd rules compact [flags]
```
**Flags:**
```
--auto Apply audit suggestions
--dry-run Preview without applying
--group strings Rule names to merge
--path string Path to rules directory (default ".claude/rules/")
```