You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| commands | 2 months ago | |
| prompts | 2 weeks ago | |
| CLAUDE.md | 2 months ago | |
| README.md | 2 weeks ago | |
README.md
Claude Code Configuration
This directory contains Claude Code configuration files for the gh-actions repository.
Directory Structure
.claude/
├── CLAUDE.md # General project context and guidelines
├── commands/ # Custom slash commands
│ └── review-pr.md
└── prompts/ # Workflow-specific prompts
└── review-code.md # Repo specific review guidelines
Automated Workflow Reviews
The review-code.yml workflow uses custom plugins from Bitwarden's AI plugin marketplace:
-
Bitwarden code review agent
- Plugin hosted in
bitwarden/ai-pluginsrepository - Contains specialized review agent, with common review criteria for all Bitwarden repos
- Intended to be focused on Claude's behavior when reviewing code
- Automatically installed during workflow execution
- Plugin hosted in
-
Repository-specific review guidelines (
.claude/prompts/review-code.md)- Optional repo-specific review instructions
How it works:
- Workflow triggers on a PR.
- PR is validated as viable for a Claude Code review.
- Workflow adds the
bitwarden/ai-pluginsmarketplace and installs necessary plugins. - Workflow invokes the
bitwarden-code-revieweragent to perform a review of the pull request. bitwarden-code-revieweragent identifies and ingests the local repo's.claude/prompts/review-code.mdfile.bitwarden-code-revieweragent reviews the changes and appends feedback in the form of a brief summary comment with findings and inline comments (if necessary).
To customize review guidelines in our repos:
- Create
.claude/prompts/review-code.mdwith review criteria - Workflow runs automatically on subsequent pull requests
Custom Commands
/review-pr - Pull Request Review
Triggers a comprehensive PR code review in your current Claude Code session.
Usage:
- Open Claude Code in this repository
- Check out the PR branch you want to review
- Tag @claude and type
/review-pr
What it does:
- Analyzes code quality and best practices
- Checks for security vulnerabilities
- Validates workflow linter compliance
- Reviews performance and efficiency
- Provides structured feedback with action items
Example:
@claude /review-pr
Best Practices
- Commands (
.claude/commands/): For interactive Claude Code sessions - Prompts (
.claude/prompts/): For automated GitHub Actions workflows - CLAUDE.md: General project context available in all Claude interactions