sir-chawakorn/power-ranger-toolkit/codebase-understanding

Claude Code and agent skill by sir-chawakorn/power-ranger-toolkit

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install sir-chawakorn/power-ranger-toolkit/codebase-understanding

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

🧠 Codebase Understanding Skill


name: codebase-understanding description: Deeply understand entire codebases including file relationships, architecture patterns, and data flows


🎯 Purpose

เข้าใจ codebase ทั้งหมดอย่างลึกซึ้ง รู้ความสัมพันธ์ระหว่างไฟล์, architecture patterns, และ data flows เพื่อให้แก้ไขได้ตรงจุด

📋 When to Use

  • เริ่มทำงานกับ project ใหม่
  • ต้องการแก้ไขที่กระทบหลายไฟล์
  • Debug ปัญหาที่ซับซ้อน
  • Refactor code ขนาดใหญ่
  • ทำความเข้าใจ legacy code

🔧 Analysis Dimensions

1. File Structure Analysis
📁 Project Root
├── 📁 src/
│ ├── 📁 components/ ← UI components (React/Vue)
│ ├── 📁 pages/ ← Page components / routes
│ ├── 📁 hooks/ ← Custom hooks
│ ├── 📁 services/ ← API calls
│ ├── 📁 stores/ ← State management
│ ├── 📁 utils/ ← Helper functions
│ └── 📁 types/ ← TypeScript types
├── 📁 public/ ← Static assets
├── 📁 tests/ ← Test files
└── 📄 config files ← package.json, tsconfig, etc.
2. Dependency Graph
Component A
│
├──imports──► Hook B
│ │
│ └──uses──► Store C
│ │
└──imports──► Util D │
│ │
└──uses──────┘
3. Data Flow Analysis
User Action
│
▼
Component (Event Handler)
│
▼
Store Action (State Update)
│
▼
API Service (Fetch Data)
│
▼
Component Re-render (Display Data)

📝 Understanding Process

1. SCAN Project Structure
- Read package.json (dependencies, scripts)
- Identify framework (React, Vue, Next.js)
- Map folder structure
2. IDENTIFY Key Files
- Entry points (main.tsx, App.tsx)
- Config files (tsconfig, vite.config)
- Route definitions
3. TRACE Dependencies
- Import relationships
- Component hierarchy
- State management flow
4. UNDERSTAND Patterns
- Architecture patterns used
- Coding conventions
- State management approach
5. MAP Data Flows
- User interactions → Events
- Events → State changes
- State → API calls → Renders

🔍 Key Questions to Answer

QuestionHow to Find
What framework?package.json dependencies
How is routing done?App.tsx, pages folder
Where is state?stores/, context/, hooks/
How are API calls made?services/, api/ folders
What's the component tree?Trace from App.tsx
Where are types?types/, *.d.ts files

📊 Analysis Output Template

markdown
## 🧠 Codebase Analysis: {project-name}
### Tech Stack
-**Framework**: Next.js 14 (App Router)
-**Language**: TypeScript
-**Styling**: Tailwind CSS
-**State**: Zustand
-**API**: REST with React Query
### Architecture
-**Pattern**: Feature-based structure
-**Components**: Atomic design (atoms, molecules, organisms)
-**State Flow**: Unidirectional (Zustand stores)
### Key Files
| Purpose | File |
|---------|------|
| Entry | `app/layout.tsx` |
| Routing | `app/*/page.tsx` |
| Main Store | `stores/appStore.ts` |
| API Client | `lib/api.ts` |
### Dependency Map

graph TD A[App Layout] --> B[Pages] B --> C[Components] C --> D[Hooks] D --> E[Stores] E --> F[API Services]

### Notable Patterns
- Uses custom hooks for data fetching
- Implements optimistic updates
- Server components for static content
### Potential Issues
- Some circular dependencies in utils
- Large component files (>300 lines)

🎯 Framework-Specific Patterns

React/Next.js
- Components: src/components/
- Pages: app/ or pages/
- Hooks: src/hooks/
- State: Zustand, Redux, Context
Vue/Nuxt
- Components: src/components/
- Pages: pages/
- Composables: composables/
- State: Pinia
Express/Node
- Routes: routes/
- Controllers: controllers/
- Models: models/
- Middleware: middleware/

✅ Understanding Checklist

  • [ ] Framework and key dependencies identified
  • [ ] File structure understood
  • [ ] Entry points located
  • [ ] State management approach known
  • [ ] API patterns understood
  • [ ] Component relationships mapped
  • [ ] Coding conventions noted

🔗 Related Skills

  • code-search - Find specific code patterns
  • code-explanation - Explain complex code
  • refactoring - Improve codebase structure

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
33
Repository forks
6
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sir-chawakorn/power-ranger-toolkit/codebase-understanding/badge)](https://verified-skill.com/skills/sir-chawakorn/power-ranger-toolkit/codebase-understanding)

Something wrong with this skill or its page? Tell us.