> ## Documentation Index
> Fetch the complete documentation index at: https://simili.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code Integration

> Automated workflows with Anthropic's Claude Code

# Claude Code Integration

Simili Bot integrates with [Claude Code](https://github.com/anthropic/claude-code) to provide automated coding tasks triggered by GitHub labels.

## Configuration

Add the `claude_code` block to your `simili.yaml`:

```yaml theme={null}
claude_code:
  issue_implement:
    enabled: true
    trigger_label: "implement"
  doc_sync:
    enabled: true
    watch_paths: ["internal/**/*.go"]
    doc_paths: ["docs/**/*.mdx"]
  security_review:
    enabled: true
    trigger_label: "security-review"
  review_checklist:
    enabled: true
```

## Available Workflows

### Automated Implementation (`issue_implement`)

When the `trigger_label` is added to an issue, Simili Bot triggers a Claude Code session to:

1. Analyze the issue description.
2. Search the codebase for relevant context.
3. Implement the fix or feature.
4. Create a pull request.

### Documentation Sync (`doc_sync`)

Automatically updates documentation when relevant code changes.

* **`watch_paths`**: Glob patterns of code files to monitor.
* **`doc_paths`**: Glob patterns of documentation files to update.

### Security Review (`security_review`)

Triggered by a label on Pull Requests. Performs a security-focused audit of the changes.

### Review Checklist (`review_checklist`)

Automatically generates a checklist for PR reviewers based on the changes made.

## Environment Setup

Ensure your GitHub Action runner has:

1. `claude` CLI installed.
2. `ANTHROPIC_API_KEY` set in secrets.
