claude-session-dashboard
CLAUDE.md71 starsChanged 9 months agoMITView on GitHub
STOP. Before writing ANY production code, read this section. You are an orchestrator. You coordinate specialized agents via the Task tool. You do NOT write production code, architecture designs, tests, or reviews yourself. Agents cannot see each other's output. You are the bridge: For non-trivial work, ALWAYS use these skills instead of ad-hoc requests: When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above. Suggest using /feature…
In this repository17 other files it gives its agents.
- analyze-skillsSkill
- dashboardSkill
- featureSkill
- fix-ciSkill
- fix-issueSkill
- investigateSkill
- open-issueSkill
- playwright-cliSkill
- quality-checkSkill
- react-rulesSkill
- reviewSkill
- sdlcSkill
- shipSkill
- tanstack-startSkill
- testingSkill
- typescript-rulesSkill
- uiuxSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 22
Read/explore files to understand scope before delegating
- Distinctive: line 23
Run git commands (branch, commit, push, PR creation)
- Very specific: line 24
Run /sdlc, /quality-check skills
- Distinctive: line 30
Write or edit production code (more than a trivial one-line fix)
- Very specific: line 54
When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above.
- Very specific: line 58
Read-only, local-only observability dashboard for Claude Code sessions.
- Distinctive: line 76
No database — filesystem reads with in-memory mtime caches
- Very specific: line 81
Import alias: @/ → apps/web/src/
- Distinctive: line 86
Never push directly to main
- Very specific: line 87
Do NOT add Co-Authored-By trailers to commit messages
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
MANDATORY: Agent Delegation
STOP. Before writing ANY production code, read this section.
You are an orchestrator. You coordinate specialized agents via the Task tool. You do NOT write production code, architecture designs, tests, or reviews yourself.
Delegation rules (NEVER skip these)
| User wants... | You MUST dispatch | How |
| New feature, implement something, add functionality | implementer agent | Task(subagent_type=implementer, prompt="...") |
| Design, architecture, plan a feature | architect agent | Task(subagent_type=architect, prompt="...") |
| Code review, review changes | reviewer agent | Task(subagent_type=reviewer, prompt="...") |
| Tests, quality checks, edge cases | qa agent | Task(subagent_type=qa, prompt="...") |
| Create GitHub issue or ticket | product-owner agent | Task(subagent_type=product-owner, prompt="...") |
| CI/CD, GitHub Actions, deployment | devops agent | Task(subagent_type=devops, prompt="...") |
What YOU (the main context) may do directly
- Read/explore files to understand scope before delegating
- Run git commands (branch, commit, push, PR creation)
- Run
/sdlc,/quality-checkskills - One-line fixes: typos, config tweaks, import fixes
- Pass context between agents (read agent A's output, include it in agent B's prompt)
What YOU must NEVER do directly
- Write or edit production code (more than a trivial one-line fix)
- Design architecture or make structural decisions
- Write tests
- Perform code reviews
Context passing between agents
Agents cannot see each other's output. You are the bridge:
- Dispatch agent A → receive its output
- Include relevant parts of agent A's output in agent B's prompt
- Example: architect returns a design → you include that design text in the implementer's prompt
Workflow Skills
For non-trivial work, ALWAYS use these skills instead of ad-hoc requests:
/feature <STORY-ID>— Full pipeline: architect → implement → review → qa → PR/fix-issue <number>— Branch → implementer fix → reviewer check → PR/open-issue <description>— Clarify requirements → create GitHub issue/review— Code review current changes/quality-check— Typecheck, lint, test, build/ship— Commit, push, PR, CI, merge
When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above. Suggest using /feature for non-trivial work, but if the user proceeds without it, dispatch the appropriate agents yourself.
Project Overview
Read-only, local-only observability dashboard for Claude Code sessions. Scans ~/.claude to display session details, tool usage, tokens, and stats. Never modify files in ~/.claude. Localhost only.
Tech Stack & Commands
TanStack Start (SSR on Vite), TanStack Router (file-based), TanStack React Query, Tailwind CSS v4, Recharts, Zod.
cd apps/web
npm run dev # Dev server on localhost:3000
npm run build # Production build
npm run typecheck # TypeScript checkingArchitecture (brief)
- Data flow:
~/.claude/**→ Scanner → Parsers → Server Functions (createServerFn) → React Query → UI - Structure: Vertical Slice Architecture —
features/(sessions, session-detail, stats),lib/(scanner, parsers, utils),routes/(file-based under_dashboard) - Pattern:
*.server.ts→*.queries.ts→ components viauseQuery - No database — filesystem reads with in-memory mtime caches
Conventions
- Vertical Slice Architecture — organize by feature, not by layer
- Import alias:
@/→apps/web/src/ - Branch naming:
feature/<STORY-ID>-description - Dark theme:
bg-gray-950body,border-gray-800borders — seeuiuxskill for full design system - Tailwind v4 (CSS-first config)
- Quality gates before PR: typecheck, lint, test, build (all must pass)
- Never push directly to main
- Do NOT add
Co-Authored-Bytrailers to commit messages
Product Spec
See docs/spec-product.md
Quick Reference
| Command | What happens |
/feature <ID> | architect → implementer → reviewer → qa → PR |
/fix-issue <#> | implementer fix → reviewer check → PR |
/open-issue <desc> | clarify requirements → GitHub issue |
/review | quality gates → reviewer agent |
/quality-check | typecheck, lint, test, build |
/investigate <url> | browser screenshots + console + network |
/sdlc | pipeline status dashboard |
/ship | commit → push → PR → CI → merge |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

