Help us improve
Share bugs, ideas, or general feedback.
From forgebee
Detects project type (WordPress plugin/theme, Next.js, PHP, Node.js), tooling, styling systems, database setup. Routes to conventions and guardrails at session start, project switch, or triage requests.
npx claudepluginhub forbee-dev/forgebee --plugin forgebeeHow this skill is triggered — by the user, by Claude, or both
Slash command
/forgebee:project-routerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
Discovers git state, project structure, language/framework, and dev tooling in unfamiliar codebases. Provides structured summary with risk flags and recommendations for onboarding.
Analyzes codebase structure, tech stack, patterns, and conventions for project onboarding and exploration.
Scans codebase to auto-generate CLAUDE.md project config and .rune/ state files for full context in AI coding sessions. Use on new repos or missing/stale context.
Share bugs, ideas, or general feedback.
Detect the project type, stack, and conventions so all subsequent agents use the right guardrails. Fast and accurate — should complete in under 10 seconds.
Classify the current project and load the right conventions, guardrails, and domain knowledge before any work begins. This is the first skill that should run in any development session.
/plan, /workflow, /team, or any implementation commandExecute the triage script to produce a machine-readable project profile:
node ${CLAUDE_PLUGIN_ROOT}/skills/project-router/scripts/detect_project.js "$PROJECT_DIR"
Store the JSON output. This is the single source of truth for all routing decisions.
Use the decision tree in references/decision-tree.md to map the triage output to:
Based on the classification, read the appropriate convention reference(s):
| Project Type | Reference File |
|---|---|
| WordPress plugin | references/conventions-wordpress.md |
| WordPress theme (classic) | references/conventions-wordpress.md |
| WordPress block theme | references/conventions-wordpress.md |
| Next.js (App Router) | references/conventions-nextjs.md |
| Next.js (Pages Router) | references/conventions-nextjs.md |
| SCSS/Tailwind styling | references/conventions-styling.md |
| Generic PHP | references/conventions-wordpress.md (PHP section) |
| Generic Node.js | references/conventions-nextjs.md (Node section) |
Always load references/conventions-styling.md if the triage detects any styling system
(SCSS, Tailwind, CSS Modules, etc.) — styling conventions apply across all project types.
Show the user a compact summary of what was detected:
## Project Triage
**Type:** [WordPress Plugin / Next.js App Router / etc.]
**Stack:** PHP 8.2, Node 20, TypeScript
**Styling:** SCSS + Tailwind CSS
**Database:** MySQL (WordPress) / PostgreSQL (Prisma)
**Testing:** PHPUnit, Jest, Playwright
**CI/CD:** GitHub Actions, Docker
**Conventions loaded:** ✅ WordPress · ✅ Next.js · ✅ Styling
### Guardrails Active
- [List of key rules from conventions, e.g. "Use WordPress Coding Standards", "App Router patterns only"]
### Recommendations
- [Any suggestions, e.g. "No CLAUDE.md found — consider running /forgebee-setup"]
If the triage is being consumed by another command (e.g., /workflow, /team, /plan),
provide the triage JSON and loaded conventions as context for downstream agents.
Every agent dispatched should receive:
project_type field| Symptom | Likely Cause | Fix |
|---|---|---|
project_type: "unknown" | No recognizable framework files at root | Ask user to confirm project type manually; check if they're in a subdirectory |
WordPress detected but no theme.json or plugin header | Might be a mu-plugin or custom structure | Check for mu-plugins/ or ask user |
| Both WordPress and Next.js detected | Monorepo or headless WP + Next.js frontend | Load BOTH convention sets; ask user which is primary |
| SCSS detected but no Tailwind config | Project uses SCSS only | Load styling conventions, skip Tailwind sections |
Empty node.tools despite package.json | Dependencies not installed yet | Note this in summary; suggest npm install first |