← スキル一覧に戻る

pokedao-architecture
by ChicoPanama
PokeDAO — A trading assistant for Pokémon card collectors, tracking listings, market trends, and values in real time.
⭐ 1🍴 0📅 2026年1月25日
SKILL.md
name: pokedao-architecture description: | PokeDAO project architecture and structure guide. Use when: (1) Working on any PokeDAO feature or bug fix (2) Need to understand the monorepo structure (3) Working with the Telegram bot, ML pipeline, or signal system (4) Questions about where to add new functionality Key components: Telegram bot (Grammy), ML signals, Prisma DB, Redis cache author: Claude Code version: 1.0.0 date: 2025-01-19
PokeDAO Project Architecture
Problem
PokeDAO is a complex monorepo with multiple apps and packages. Understanding where code lives and how components interact is essential for effective development.
Context / Trigger Conditions
- Working on any PokeDAO feature
- Adding new bot commands or handlers
- Modifying the ML/signal pipeline
- Debugging cross-package issues
- Understanding data flow
Solution
Project Structure
pokedao/
├── apps/
│ ├── agent/ # Signal processing agent
│ │ └── src/tick.ts # Main tick loop for signals
│ └── mew1a/ # ML/vLLM deployment
├── bot/ # Telegram bot (Grammy)
│ └── src/
│ ├── index.ts # Bot entry point
│ ├── commands/ # Bot commands (/start, /wallet, /alerts, etc.)
│ ├── callbacks/ # Callback query handlers
│ ├── alerts/ # Alert formatting and sending
│ ├── middleware/ # Auth, rate limiting
│ └── lib/ # Shared utilities (config, logger, prisma)
├── ml/ # ML system
│ └── src/alertSystem.ts # Alert generation from signals
├── packages/ # Shared packages
│ ├── core/ # Core utilities
│ ├── storage/ # Database/storage layer
│ └── analysis/ # Analysis tools
└── prisma/ # Database schema
Key Technologies
- Bot Framework: Grammy (Telegram)
- Database: Prisma + PostgreSQL
- Cache: Redis (ioredis)
- Logging: Pino
- Validation: Zod
- Runtime: Node.js with TypeScript
Adding New Bot Commands
- Create command file in
bot/src/commands/[name].ts - Export handler function
- Register in
bot/src/index.tswithbot.command()
Adding New Alert Types
- Define alert structure in
ml/src/alertSystem.ts - Add formatter in
bot/src/alerts/formatter.ts - Update sender logic in
bot/src/alerts/sender.ts
Verification
- Run
pnpm typecheckfrom root to verify types - Run
pnpm devin bot/ to test bot locally - Check logs with pino-pretty for debugging
Notes
- This is a pnpm workspace monorepo
- Use workspace dependencies:
@pokedao/core,@pokedao/storage,@pokedao/analysis - Environment variables defined in
.env.example - Deployed via render.yaml configuration
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です