RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/keep-starknet-strange/pow

CLAUDE.md

CLAUDE.md
CLAUDE.mdroot

Quality

66/100

Scores the file, not the repository.

Length

460 words

18 headings · 2 code blocks

Repository

18

— · pushed 208 days ago

Last changed

3 days ago

First indexed 3 days ago.
keep-starknet-strange/pow/CLAUDE.mdRawGitHub
1# CLAUDE.md
2 
3This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4 
5## Common Development Commands
6 
7### Frontend Development
8```bash
9# Install dependencies
10cd frontend && npm install
11 
12# Start development server (uses Expo)
13cd frontend && npx expo start
14 
15# Start with specific Starknet environment
16cd frontend && npm run start:devnet # For local devnet
17cd frontend && npm run start:sepolia # For Sepolia testnet
18cd frontend && npm run start:mainnet # For mainnet
19 
20# Run on specific platforms
21cd frontend && expo run:android
22cd frontend && expo run:ios
23 
24# Linting
25cd frontend && npx expo lint
26cd frontend && npx expo lint --fix
27 
28# Run tests (Jest)
29cd frontend && npm test
30```
31 
32### Smart Contract Development
33```bash
34# Build contracts
35cd onchain && scarb build
36 
37# Run tests
38cd onchain && snforge test
39 
40# Deploy contracts
41cd onchain/scripts && ./deploy-devnet.sh # Deploy to devnet
42cd onchain/scripts && ./deploy-sepolia.sh # Deploy to Sepolia
43cd onchain/scripts && ./deploy-mainnet.sh # Deploy to mainnet
44 
45# Setup contracts after deployment
46cd onchain/scripts && ./setup-contracts.sh
47```
48 
49## Architecture Overview
50 
51### Frontend Architecture
52POW! is a React Native mobile game using Expo Router for file-based navigation. The frontend follows a modular architecture with:
53 
54- **State Management**: Zustand stores in `/frontend/app/stores/` manage game state, user data, blockchain interactions, and UI state
55- **Blockchain Integration**: Multiple React contexts in `/frontend/app/contexts/` handle different blockchain connections (StarknetJS, AVNU SDK)
56- **Game Logic**: Custom hooks in `/frontend/app/hooks/` encapsulate game mechanics, timers, and state calculations
57- **Component Structure**: Page components use store observers for reactive updates and delegate logic to hooks
58 
59Key architectural patterns:
60- Store observers trigger re-renders when relevant state changes
61- Hooks calculate derived state from stores and manage game intervals
62- Context providers wrap the app to provide blockchain connectivity
63- Environment variables control which blockchain network to connect to
64 
65### Smart Contract Architecture
66The onchain contracts use Cairo and follow a modular component-based design:
67 
68- **Core Contract**: `pow_game` contract in `/onchain/src/pow_game.cairo` is the main entry point
69- **Component System**: Separate components for different game features (upgrades, prestige, builders, staking)
70- **Upgradeability**: Uses OpenZeppelin's upgradeable contract pattern
71- **Security**: Leverages OpenZeppelin components for standard security features
72 
73Contract interaction flow:
741. Frontend uses Starknet.js to call contract methods
752. Embedded wallet (AVNU SDK) sponsors gas fees for users
763. Game state is stored on-chain and synced to frontend stores
774. Events emitted by contracts update frontend state
78 
79### Key Integration Points
80- **Account Creation**: Uses OpenZeppelin Smart Account with AVNU paymasters for gasless transactions
81- **State Sync**: Frontend polls blockchain for state updates and caches in Zustand stores
82- **Asset Management**: Game assets (images, sounds, fonts) are bundled with the app
83- **Configuration**: JSON files define game mechanics, balancing, and progression curves

Sections

  • CLAUDE.md
  • Common Development Commands
  • Frontend Development
  • Install dependencies
  • Start development server (uses Expo)
  • Start with specific Starknet environment
  • Run on specific platforms
  • Linting
  • Run tests (Jest)
  • Smart Contract Development
  • Build contracts
  • Run tests
  • Deploy contracts
  • Setup contracts after deployment
  • Architecture Overview
  • Frontend Architecture
  • Smart Contract Architecture
  • Key Integration Points

What it covers

setupbuildtestarchitecturedependenciesapideploymentagent-behaviour

Stack — with the evidence

typescript

(1.00)

react-native

(1.00)

react

(0.70)

expo

(0.70)

tailwind

(0.70)

jest

(0.70)

eslint

(0.70)

github-actions

(0.60)

javascript

(0.50)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
keep-starknet-strange
Language
—
License
—
Archived
no

All configs in this repo

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
microsoft/playwrightCLAUDE.md · 94kCLAUDE.mdtypescriptjavascript+10buildtestlint-formatstyle+7100/1003 days ago
dotCMS/corecore-web/CLAUDE.md · 949CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
dotCMS/coreCLAUDE.md · 949CLAUDE.mdjavanode+9setupbuildteststyle+799/100today
lollipopkit/flutter_server_boxCLAUDE.md · 8.3kCLAUDE.mddartflutter+8buildteststylearch+298/1003 days ago
carrot-foundation/middle-earthCLAUDE.md · 0CLAUDE.mdtypescriptnode+12setupbuildtestlint-format+697/1003 days ago
caliber-ai-org/ai-setupCLAUDE.md · 1.2kCLAUDE.mdtypescriptnode+5buildtestlint-formatstyle+197/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack