Skip to content

Commit 7f154a0

Browse files
Merge pull request #460 from reown-com/chore/claude-review
chore: added claude review workflow
2 parents d41b697 + 2c43b48 commit 7f154a0

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Claude Auto Review
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
auto-review:
11+
runs-on: ubuntu-latest
12+
if: |
13+
github.event_name == 'pull_request'
14+
|| (
15+
github.event_name == 'issue_comment'
16+
&& github.event.issue.pull_request
17+
&& contains(github.event.comment.body, '@claude review')
18+
)
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
issues: write
23+
id-token: write
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Claude Auto Review
31+
uses: WalletConnect/actions/claude/auto-review@1483e05460107d74c575e31af948ce20f9df6387
32+
with:
33+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
34+
model: claude-sonnet-4-20250514
35+
timeout_minutes: "60"
36+
project_context: |
37+
This is the AppKit React Native SDK, a comprehensive wallet connection and blockchain interaction library for React Native applications.
38+
39+
Key considerations for this project:
40+
- **React Native SDK Architecture**: Function-based components with hooks exclusively (useState, useEffect)
41+
- **TypeScript-first Approach**: Strict TypeScript with @types/react-native, noUncheckedIndexedAccess, strict mode
42+
- **Valtio State Management**: Proxy-based reactivity for controllers (e.g., RouterController, ConnectionsController)
43+
- **Modular Package Structure**: Separate packages for core, ui, common, wagmi, solana, bitcoin, ethers, coinbase
44+
- **UI Component System**: Use @reown/appkit-ui-react-native components (Text, Button, Pressable) over react-native defaults
45+
- **Internal Navigation**: Custom RouterController.ts for navigation, no react-navigation dependency
46+
- **Performance Optimization**: React.memo, useCallback, useMemo for efficient rendering; FlatList for large datasets
47+
- **Animation Strategy**: React Native's Animated API exclusively, no react-native-reanimated
48+
- **Error Handling**: Centralized ErrorUtil with try-catch blocks, descriptive error messages
49+
- **Security**: Storage only for non-sensitive data, no auth tokens or private keys in storage
50+
- **Testing**: Jest + React Native Testing Library for 80%+ coverage on controllers and components
51+
- **Code Quality**: ESLint + Prettier rules, JSDoc for public APIs, no inline styles
52+
- **Import Organization**: React/RN → External libs → @reown packages → Relative imports
53+
- **Blockchain Support**: Multi-chain with EVM, Solana, and Bitcoin adapters
54+
- **Developer Experience**: Clean package exports, strongly typed APIs, comprehensive error handling

0 commit comments

Comments
 (0)