/fullstack-skills:project-sitemapfrom fullstack-skills
Use this skill to generate a structured map of the entire project codebase for rapid AI or developer onboarding. Triggers on requests about project structure, codebase overview, architecture mapping, onboarding context, or "show me the project layout". Produces a machine-readable sitemap with routes, models, modules, dependencies, and relationships.
Ships in fullstack-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
../../../RULES.md and apply it as the behavior, safety, validation, and communication baseline.PROJECT_SITEMAP.md is a file-write operation: when an existing sitemap is present, treat it as confirmation-gated (see Output Format and Update Protocol) so developer-maintained annotations are not lost.Generate a comprehensive, structured sitemap of the entire project so any AI agent or developer can rapidly understand the codebase architecture, modules, data flow, and key systems — enabling effective continuation of work without re-discovery.
Scan and identify:
For each meaningful directory, classify and document:
| Classification | Examples | Capture |
|---|---|---|
| Routes/Pages | pages/, routes/, app/ | Path → Component → Layout hierarchy |
| API Endpoints | api/, controllers/, routes/ | Method + Path + Handler + Middleware |
| Components | components/, ui/, widgets/ | Name + Props/Interface + Used-by |
| Services/Logic | services/, lib/, utils/, helpers/ | Name + Purpose + Dependencies |
| Data Layer | models/, schemas/, migrations/, prisma/ | Entity + Fields + Relations |
| State Management | stores/, context/, redux/ | Store name + State shape + Actions |
| Config | config/, .env.example, settings/ | Key configs + Environment vars |
| Static Assets | public/, static/, assets/ | Types + Organization |
| Tests | tests/, tests/, spec/ | Coverage areas + Test framework |
| Docs | docs/, README, CHANGELOG | Available documentation |
| CI/CD | .github/, Dockerfile, docker-compose | Pipeline + Deploy targets |
| Types/Interfaces | types/, interfaces/, @types/ | Shared type definitions |
Map critical relationships:
Generate the sitemap as PROJECT_SITEMAP.md in the project root.
Overwrite gate: if
PROJECT_SITEMAP.mdalready exists, do not silently overwrite it. Check it for manual developer annotations first; if present, show the user what will change and confirm before writing. Creating it fresh when none exists needs no confirmation.
# Project Sitemap
> Auto-generated: [date] | Stack: [framework] [version] | Last commit: [hash]
## Quick Overview
- **Project**: [name] — [one-line description]
- **Stack**: [frontend] + [backend] + [database] + [key tools]
- **Architecture**: [pattern — MVC, Clean, Modular, etc.]
- **Entry Point**: [main entry file]
## Directory Map
[project-root]/ ├── src/ # Source code │ ├── app/ # App router / pages │ │ ├── (auth)/ # Auth-grouped routes │ │ │ ├── login/ # Login page │ │ │ └── register/ # Registration page │ │ ├── dashboard/ # Dashboard (protected) │ │ └── api/ # API routes │ │ ├── auth/ # Auth endpoints │ │ └── users/ # User CRUD │ ├── components/ # Reusable UI components │ │ ├── ui/ # Base UI primitives │ │ └── features/ # Feature-specific components │ ├── lib/ # Utilities & helpers │ ├── services/ # Business logic │ └── types/ # TypeScript definitions ├── prisma/ # Database schema & migrations ├── public/ # Static assets └── tests/ # Test suites
## Route Map
### Pages/Views
| Route | Component | Layout | Auth | Description |
|-------|-----------|--------|------|-------------|
| `/` | HomePage | MainLayout | No | Landing page |
| `/dashboard` | Dashboard | DashLayout | Yes | User dashboard |
### API Endpoints
| Method | Path | Handler | Auth | Description |
|--------|------|---------|------|-------------|
| POST | `/api/auth/login` | authController.login | No | User login |
| GET | `/api/users` | userController.list | Admin | List users |
## Data Models
| Model | Table | Key Fields | Relations |
|-------|-------|------------|-----------|
| User | users | id, email, name, role | → Posts, → Profile |
| Post | posts | id, title, userId | → User, → Comments |
## Key Systems
### Authentication
- **Type**: [JWT / Session / OAuth]
- **Provider**: [file/service]
- **Guard**: [middleware/file]
- **Protected routes**: [list]
### State Management
- **Tool**: [Redux / Zustand / Pinia / Context]
- **Stores**: [list with purpose]
### External Integrations
| Service | Purpose | Config |
|---------|---------|--------|
| Stripe | Payments | .env STRIPE_KEY |
| SendGrid | Email | .env SENDGRID_KEY |
## Module Dependency Graph
```mermaid
graph TD
A[Pages/Routes] --> B[Components]
A --> C[Services]
C --> D[Data Layer]
B --> E[UI Primitives]
C --> F[External APIs]
D --> G[Database]
| Variable | Purpose | Required |
|---|---|---|
| DATABASE_URL | DB connection | Yes |
| JWT_SECRET | Token signing | Yes |
| API_KEY | External API | Yes |
## Adaptation Rules
Adapt the sitemap to the project's actual stack:
| Stack | Focus Areas |
|-------|-------------|
| **Next.js/Nuxt/SvelteKit** | App router, pages, API routes, middleware, layouts |
| **Laravel/Rails/Django** | Routes, controllers, models, migrations, blade/views |
| **React SPA** | Component tree, routing, state, API calls |
| **Monorepo** | Package map, shared libs, workspace dependencies |
| **API-only** | Endpoints, middleware, validators, serializers |
| **Mobile (RN/Flutter)** | Screens, navigation, native modules, platform-specific |
## Update Protocol
When updating an existing sitemap:
1. Compare current structure against existing sitemap
2. Mark new additions with `[NEW]`
3. Mark removals with `[REMOVED]`
4. Mark moved items with `[MOVED from → to]`
5. Update statistics and date
6. Preserve any manual annotations added by developers — never drop them without showing the user and getting confirmation (per the Overwrite gate above)
## Quality Checklist
- [ ] All directories with source code are mapped?
- [ ] Route map matches actual routing config?
- [ ] API endpoints match actual route definitions?
- [ ] Data models match actual schema/migrations?
- [ ] Auth flow accurately documented?
- [ ] External integrations listed?
- [ ] Environment variables documented?
- [ ] File statistics current?
- [ ] Mermaid diagram renders correctly?
- [ ] No generated/ignored directories included?
- [ ] Sitemap date and stack info current?
## L5 Acceptance Gates
- Every path, route, endpoint, and model in the sitemap reflects the actual codebase, not assumptions; unverifiable items are marked as such.
- Generated/ignored directories are excluded; no fabricated structure.
- An existing `PROJECT_SITEMAP.md` was not overwritten without checking for and preserving manual annotations and confirming with the user.
- The sitemap is machine-readable and internally consistent (diagram renders, stats current).
- Limitations are stated when parts of the codebase could not be scanned.
## Example Trigger Phrases
- "Generate a sitemap for this project"
- "Map the codebase structure"
- "Show me the project layout"
- "Create an architecture overview"
- "I need to understand this project quickly"
- "Update the project sitemap"
- "What modules does this project have?"
## Usage Limitations
- Do not include generated directories (node_modules, vendor, .next, dist, build).
- Do not fabricate route or endpoint information — scan actual routing config.
- Do not assume architecture patterns without inspecting the codebase.
- Do not include sensitive environment values — document variable names only.
- Do not skip verifying that the sitemap matches current project structure.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skills81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.