Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .cursor/rules/ai-rules-generated-index.mdc

This file was deleted.

8 changes: 8 additions & 0 deletions ai-rules/.generated-ai-rules/ai-rules-generated-AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ The codebase follows a modular Rust structure:
**Run the tool:**
- `cargo run -- <args>` - Run with arguments (e.g., `cargo run -- init`)

## Before Committing

Always run these before committing changes:
1. `cargo fmt --all` - Format code
2. `./scripts/clippy-check.sh` - Check for lint errors

Do not commit code that fails formatting or clippy checks.

## Coding Style & Naming Conventions

**Code Organization:**
Expand Down
8 changes: 8 additions & 0 deletions ai-rules/.generated-ai-rules/ai-rules-generated-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ The codebase follows a modular Rust structure:
**Run the tool:**
- `cargo run -- <args>` - Run with arguments (e.g., `cargo run -- init`)

## Before Committing

Always run these before committing changes:
1. `cargo fmt --all` - Format code
2. `./scripts/clippy-check.sh` - Check for lint errors

Do not commit code that fails formatting or clippy checks.

## Coding Style & Naming Conventions

**Code Organization:**
Expand Down
2 changes: 1 addition & 1 deletion docs/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Agent | Standard Mode | Symlink Mode | MCP Support | Notes |
|-------|---------------|--------------|-------------|-------|
| **AMP** | `AGENTS.md` -> inlined file | `AGENTS.md` -> `ai-rules/AGENTS.md` | - | |
| **Claude Code** | `CLAUDE.md` -> inlined file (+ `.claude/skills/` if configured) | `CLAUDE.md` -> `ai-rules/AGENTS.md` | `.mcp.json` | Skills support via `use_claude_skills` config |
| **Claude Code** | `CLAUDE.md` -> inlined file | `CLAUDE.md` -> `ai-rules/AGENTS.md` | `.mcp.json` | |
| **Cline** | `.clinerules/AGENTS.md` -> inlined file | `.clinerules/AGENTS.md` -> `../ai-rules/AGENTS.md` | - | |
| **Codex** | `AGENTS.md` -> inlined file | `AGENTS.md` -> `ai-rules/AGENTS.md` | - | |
| **Copilot** | `AGENTS.md` -> inlined file | `AGENTS.md` -> `ai-rules/AGENTS.md` | - | |
Expand Down
31 changes: 0 additions & 31 deletions docs/commands-and-skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,6 @@ Command files support optional YAML frontmatter:

---

## Claude Code Skills

Claude Code supports optional rules through [skills](https://docs.claude.com/en/docs/claude-code/skills). This requires `use_claude_skills: true` in your config.

When enabled and a source rule has `alwaysApply: false`, the tool generates:
- **CLAUDE.md** - References required rules (`alwaysApply: true`) only
- **.claude/skills/{rule-name}/SKILL.md** - Individual skill files for optional rules

### Example

Source file `ai-rules/testing.md`:

```markdown
---
description: React Testing Library best practices
alwaysApply: false
---
# Testing Rules
- Prefer user-centric queries (getByRole, getByLabelText)
- Avoid implementation details (testId, class names)
- Test behavior, not implementation
```

Generates:
- `CLAUDE.md` - Contains only required rules
- `.claude/skills/testing/SKILL.md` - Skill that Claude can invoke when working with test files

Skills use the `description` field as the skill name for better discoverability.

---

## User-Defined Skills

You can define custom skill folders that are symlinked to supported agents' skill directories during generation.
Expand Down
12 changes: 0 additions & 12 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,3 @@ Options are resolved in the following order (highest to lowest priority):
1. **CLI options** - `--agents`, `--nested-depth`, `--no-gitignore`
2. **Config file** - `ai-rules/ai-rules-config.yaml` (at current working directory)
3. **Default values** - All agents, depth 0, generated files are NOT git ignored

## Experimental Options

### Claude Code Skills Mode

```yaml
use_claude_skills: true # Default: false
```

Experimental toggle to test Claude Code's skills feature. When enabled, rules with `alwaysApply: false` are generated as separate skills in `.claude/skills/` instead of being included in `CLAUDE.md`. This allows Claude Code to selectively apply optional rules based on context.

See [Commands and Skills](commands-and-skills.md) for more details on skills.
Loading
Loading