<- all tokdocs

The .claude Folder That Outperforms Your Teammates

Watch on TikTok

View on TikTok ->

Most developers treat Claude Code like a single-file affair -- dump everything into one CLAUDE.md and hope for the best. Poshan Pandey takes a fundamentally different approach, structuring his .claude folder as a full engineering team with specialized roles, domain-specific rules, and automated workflows that catch mistakes before they ship.

Hooks: The Non-Negotiable Safety Net

Before Claude does anything risky, hooks step in. Touch a protected file, force push to main, drop a table, publish a package by accident -- it gets blocked instantly. These are the guardrails that prevent catastrophic mistakes, and Poshan treats them as non-negotiable for any project.

The dotclaude repository README showing the folder structure with agents, hooks, rules, and skills directories

Rules Split by Domain

A lot of people dump everything into one CLAUDE.md until it turns into chaos. Poshan splits his by domain. When he is working on back-end code, Claude loads back-end rules. When working on components, it loads front-end rules. When touching auth, security rules kick in. Claude only sees the context that matters right now, which keeps the output sharper and more focused.

The rules directory expanded showing domain-specific rule files: code-quality.md, database.md, error-handling.md, frontend.md, security.md, and testing.md

Specialist Agents

The agents directory contains purpose-built specialists. One hunts race conditions and null crashes. Another reviews code like an attacker, flagging patterns that look like security vulnerabilities. A docs agent calls out outdated markdown files. Each agent has a narrow focus, which makes it better at its job than a generalist prompt ever could be.

Skills and Slash Commands

This is where it stops feeling like a tool and starts feeling like a real engineering team. /ship takes staged code all the way to a merged PR. /debug reproduces the bug, finds the root cause, fixes it, and writes a regression test. /tdd runs strict red-green refactor. /pr-review sends multiple agents at the code and gives a real merge-or-reject call. /setupdotclaude builds the whole folder for any new project.

The skills directory showing debug-fix, explain, hotfix, pr-review, refactor, setupdotclaude, ship, tdd, and test-writer skill folders

DevSwarm: Parallel Branches

At the center is CLAUDE.md as the project brain -- architecture, conventions, what not to touch, how to build, how to test. And settings.json wires the hooks and permissions so nothing leaks. Poshan runs all of this through DevSwarm, with multiple isolated branches running in parallel, each in its own IDE, so he can build three features at once without them stepping on each other.

Key Takeaways

  • Split your .claude rules by domain rather than stuffing everything into a single file -- Claude loads only what is relevant to the current context
  • Hooks are non-negotiable safety nets that block dangerous operations before they execute
  • Specialist agents with narrow focus outperform generalist prompts at tasks like security review and race condition detection
  • Slash commands like /ship, /debug, and /tdd turn Claude Code into a repeatable engineering workflow
  • The entire dotclaude configuration is open source and can be cloned and set up in minutes

Resources

  • dotclaude on GitHub -- The open-source .claude folder configuration shown in the video
  • DevSwarm -- Tool for running multiple isolated Claude Code branches in parallel

Published May 12, 2026. Writeup generated from a favorited TikTok.