You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
This PR synchronizes the Claude Code workflows from the workspace
repository templates with repository-specific customizations for the
TypeScript/React gaming wallet codebase.
### Changes Made
- **Updated `.github/workflows/claude-code-review.yml`**:
- Applied latest template structure with updated review flow
- Enhanced with TypeScript/React specific review focus areas
- Added redundancy checks for existing reviews/comments
- Configured for gaming wallet and blockchain integration patterns
- **Updated `.github/workflows/claude.yml`**:
- Applied latest template structure with ast-grep support
- Preserved repository-specific pnpm and monorepo development commands
- Updated custom instructions for TypeScript/React best practices
- Added Node.js setup for ast-grep integration
### Key Features
- **Review Workflow**: Focuses on TypeScript/React quality,
wallet/blockchain integration, UI/UX, testing, monorepo, and security
- **Interactive Workflow**: Supports pnpm commands, Turbo build system,
and monorepo structure
- **Template Synchronization**: Maintains consistency with workspace
standards while preserving repository-specific needs
### Test Plan
- [ ] Verify workflows trigger correctly on PR creation
- [ ] Test Claude Code review functionality with sample PR
- [ ] Confirm pnpm and monorepo commands work as expected
🤖 Generated via workspace coordination from
[cartridge-gg/workspace#27](cartridge-gg/workspace#27)
Please review this TypeScript/React gaming wallet PR and provide inline feedback using the GitHub review system. Follow these steps:
52
+
53
+
1. **Check for existing reviews**: First, use `mcp__github__get_pull_request_reviews` to check if you have any existing pending or submitted reviews on this PR
54
+
2. **Check existing comments**: Use `mcp__github__get_pull_request_comments` to see what comments have already been made to avoid redundancy
55
+
3. **Start a fresh review**: Use `mcp__github__create_pending_pull_request_review` to begin a new pending review
56
+
4. **Get diff information**: Use `mcp__github__get_pull_request_diff` to understand the code changes
57
+
5. **Add unique inline comments**: Only add comments for issues that haven't been addressed in existing reviews
58
+
6. **Add inline comments**: Use `mcp__github__add_pull_request_review_comment_to_pending_review` for each specific piece of feedback on particular lines, including code change suggestions where appropriate using multiline comments and the suggestion syntax:
59
+
60
+
```suggestion
61
+
const ExampleComponent: React.FC<Props> = ({ children }) => {
62
+
return <div>{children}</div>;
63
+
};
64
+
```
65
+
66
+
7. **Submit the review**: Use `mcp__github__submit_pending_pull_request_review` with event type "COMMENT" (not "REQUEST_CHANGES") to publish all comments as a non-blocking review
67
+
68
+
Only comment when something is off, wrong, or could be improved but don't be overly pedantic; if a given implementation is already good, do not comment on it.
69
+
70
+
Focus your review on:
71
+
72
+
**TypeScript/React Code Quality:**
73
+
- Type safety and proper TypeScript usage
74
+
- React hooks usage and lifecycle management
75
+
- Component composition and reusability
76
+
- Props interface design and validation
77
+
- State management patterns
78
+
79
+
**Wallet & Blockchain Integration:**
80
+
- StarkNet integration best practices
81
+
- Account abstraction implementation
82
+
- Session token management
83
+
- WebAuthn/Passkeys security patterns
84
+
- Iframe communication security
85
+
86
+
**UI/UX & Accessibility:**
87
+
- Component API consistency
88
+
- Storybook story completeness
89
+
- TailwindCSS usage patterns
90
+
- Responsive design considerations
91
+
- Accessibility best practices
92
+
93
+
**Testing & Quality:**
94
+
- Jest unit test coverage and quality
95
+
- Storybook visual regression tests
96
+
- Playwright E2E test completeness
97
+
- Mock usage and test isolation
98
+
- Error boundary implementation
99
+
100
+
**Monorepo & Build:**
101
+
- Package interdependencies
102
+
- Turbo build configuration
103
+
- Workspace protocol usage
104
+
- Bundle size considerations
105
+
- Performance optimizations
106
+
107
+
**Security:**
108
+
- Input validation and sanitization
109
+
- XSS prevention
110
+
- Secure iframe communication
111
+
- Sensitive data handling
112
+
- Authentication flow security
113
+
114
+
Provide specific, actionable feedback with inline comments and suggestions for line-specific issues. Include an concise overall summary when submitting the review.
115
+
116
+
**Important**: Submit as "COMMENT" type so the review doesn't block the PR.
117
+
118
+
# Add MCP GitHub tools for inline comments and project-specific testing
119
+
allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_reviews,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff,Bash(pnpm install),Bash(pnpm run build),Bash(pnpm run test:*),Bash(pnpm run lint:*),Bash(pnpm run format),Bash(pnpm run dev),Bash(pnpm run storybook),Bash(pnpm run e2e:*),Bash(pnpm --filter *),Bash(pnpm run clean),Bash(corepack enable pnpm)"
# Optional: Trigger when specific user is assigned to an issue
45
56
assignee_trigger: "claude-bot"
46
57
47
-
# Add MCP GitHub tools for inline comments and TypeScript/React testing
48
-
allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff,Bash(pnpm install),Bash(pnpm run build),Bash(pnpm run test:*),Bash(pnpm run lint:*),Bash(pnpm run format),Bash(pnpm run dev),Bash(pnpm run storybook),Bash(pnpm run e2e:*),Bash(pnpm --filter *),Bash(pnpm run clean),Bash(corepack enable pnpm)"
49
-
50
-
# Custom instructions for Claude to provide comprehensive TypeScript/React reviews
51
-
direct_prompt: |
52
-
Please review this TypeScript/React gaming wallet PR and provide inline feedback using the GitHub review system. Follow these steps:
53
-
54
-
1. **Start a review**: Use `mcp__github__create_pending_pull_request_review` to begin a pending review
55
-
2. **Get diff information**: Use `mcp__github__get_pull_request_diff` to understand the code changes and line numbers
56
-
3. **Add inline comments**: Use `mcp__github__add_pull_request_review_comment_to_pending_review` for each specific piece of feedback on particular lines, including code change suggestions where appropriate
57
-
4. **Submit the review**: Use `mcp__github__submit_pending_pull_request_review` with event type "COMMENT" (not "REQUEST_CHANGES") to publish all comments as a non-blocking review
58
+
# Customize allowed tools and commands for your repository
# Add custom instructions specific to your codebase
62
+
custom_instructions: |
63
+
Always review the instructions in the CLAUDE.md file before proceeding.
102
64
103
-
Provide specific, actionable feedback with inline comments for line-specific issues and include an overall summary when submitting the review. **Important**: Submit as "COMMENT" type so the review doesn't block the PR.
65
+
IMPORTANT: When you make changes to files, you must create a Pull Request:
66
+
1. Use mcp__github__create_pull_request to create a PR
67
+
2. If responding to an issue, include "Closes #[ISSUE_NUMBER]" in the PR description
68
+
3. Provide a clear title and description explaining what was changed and why
104
69
105
-
# Optional: Custom environment variables for Claude
106
-
# claude_env: |
107
-
# NODE_ENV: test
70
+
Never commit directly to main branch. Always create PRs for changes.
0 commit comments