The .claude folder stores project-specific context and "skills" that guide AI agents in their reviews.
- Create Project Memory: Place a CLAUDE.md file at your project root to act as a coordinator.
- Define Skills: Create the directory
.claude/skills/. For each review area, create a subdirectory containing aSKILL.mdfile:- Backend Review:
.claude/skills/backend-review/SKILL.md- Instruction: Focus on PEP 8 standards, FastAPI/Flask patterns, and Pydantic validation in
/backend.
- Instruction: Focus on PEP 8 standards, FastAPI/Flask patterns, and Pydantic validation in
- Frontend Review:
.claude/skills/frontend-review/SKILL.md- Instruction: Focus on Next.js 15+ App Router patterns, TypeScript safety, and Tailwind CSS efficiency in
/frontend.
- Instruction: Focus on Next.js 15+ App Router patterns, TypeScript safety, and Tailwind CSS efficiency in
- Infrastructure Review:
.claude/skills/terraform-review/SKILL.md- Instruction: Focus on HCL best practices, security groups, and state management in
/terraform.
- Instruction: Focus on HCL best practices, security groups, and state management in
- Backend Review:
The .github folder integrates these instructions into your development workflow and GitHub Copilot environment
- Custom Agents: Create specialized personas in
.github/agents/to handle reviews automatically.- Code Reviewer Agent: Create Code
Reviewer.agent.md. In the YAML frontmatter, specify tools likegithubRepoandsearch.
- Code Reviewer Agent: Create Code
- Workflow Integration: Set up GitHub Actions in
.github/workflows/review.ymlto trigger reviews on pull requests (PRs).- Python: Include steps for
autopep8orwemake-python-styleguide. - Terraform: Use
tflintto scan scripts under[project root]/terraform. - Agent Trigger: Use the Claude Code GitHub Action to automatically invoke your custom review skills when a PR is opened.
- Python: Include steps for
- Initialize Folders: Run mkdir -p .github/{agents,workflows} .claude/skills/{backend-review,frontend-review,terraform-review}.
- Author Instructions: Use imperative language (e.g., "Analyze code for...") in your SKILL.md and .agent.md files to ensure clarity.
- Define Scopes: Explicitly reference the directories /backend, /frontend, and /terraform in your skill descriptions so the agent knows exactly where to look.
- Connect GitHub: Run /install-github-app within the Claude Code terminal to link your repository and enable automated PR comments.
- Test: Open a test PR and ask Claude, "Review the changes in my backend," to verify it loads the backend-review skill automatically based on your description