~ / rigs / bartstc / vite-ts-react-template

bartstc/vite-ts-react-template

This project provides a basic dev setup intended for Single Page Application (SPA) development. It contains key tools, settings for seamless DX, and an demo app presenting good practices and used tooling in action.

↗ GitHub ★ 123 MIT updated 4d ago project Claude CodeCodexCopilot
share on X
ARCHETYPE
Skill Collector
Ten-plus skills loaded on demand. A procedural-knowledge library.
CONTEXT TAX · EVERY TURN
up to ~35.9k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 16/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add chakra-ui -- pnpm dlx @chakra-ui/react-mcp
$ claude mcp add github -e GITHUB_PERSONAL_ACCESS_<redacted> -- pnpm dlx @modelcontextprotocol/server-github
$ claude mcp add playwright -- pnpm dlx @playwright/mcp@0.0.70 --browser=chromium
$ claude mcp add Framelink-MCP-for-Figma -e DO_NOT_TRACK=YOUR_DO_NOT_TRACK -e FIGMA_<redacted> -- pnpm dlx figma-developer-mcp
$ npx degit bartstc/vite-ts-react-template/.claude ./rig-vite-ts-react-template  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add chakra-ui -- pnpm dlx @chakra-ui/react-mcp
$ claude mcp add github -e GITHUB_PERSONAL_ACCESS_<redacted> -- pnpm dlx @modelcontextprotocol/server-github
$ claude mcp add playwright -- pnpm dlx @playwright/mcp@0.0.70 --browser=chromium
$ claude mcp add Framelink-MCP-for-Figma -e DO_NOT_TRACK=YOUR_DO_NOT_TRACK -e FIGMA_<redacted> -- pnpm dlx figma-developer-mcp
$ npx degit bartstc/vite-ts-react-template/.agents/skills/agent-md-refactor .claude/skills/agent-md-refactor
$ npx degit bartstc/vite-ts-react-template/.agents/skills/brainstorming .claude/skills/brainstorming
$ npx degit bartstc/vite-ts-react-template/.agents/skills/building-blocks .claude/skills/building-blocks
$ npx degit bartstc/vite-ts-react-template/.agents/skills/commit-work .claude/skills/commit-work
$ npx degit bartstc/vite-ts-react-template/.agents/skills/dependency-updater .claude/skills/dependency-updater
$ npx degit bartstc/vite-ts-react-template/.agents/skills/e2e-testing .claude/skills/e2e-testing
$ npx degit bartstc/vite-ts-react-template/.agents/skills/explaining-code .claude/skills/explaining-code
$ npx degit bartstc/vite-ts-react-template/.agents/skills/frontend-design .claude/skills/frontend-design
$ npx degit bartstc/vite-ts-react-template/.agents/skills/github-actions-templates .claude/skills/github-actions-templates
$ npx degit bartstc/vite-ts-react-template/.agents/skills/qa-test-planner .claude/skills/qa-test-planner
$ npx degit bartstc/vite-ts-react-template/.agents/skills/react-useeffect .claude/skills/react-useeffect
$ npx degit bartstc/vite-ts-react-template/.agents/skills/test-building-blocks .claude/skills/test-building-blocks
$ npx degit bartstc/vite-ts-react-template/.agents/skills/test-driven-development .claude/skills/test-driven-development
$ npx degit bartstc/vite-ts-react-template/.agents/skills/typescript-advanced-types .claude/skills/typescript-advanced-types
$ npx degit bartstc/vite-ts-react-template/.agents/skills/vercel-react-best-practices .claude/skills/vercel-react-best-practices
$ npx degit bartstc/vite-ts-react-template/.agents/skills/writing-spec .claude/skills/writing-spec
$ curl -fsSL --create-dirs -o .claude/agents/claude-md-compliance-checker.md https://raw.githubusercontent.com/bartstc/vite-ts-react-template/core/.claude/agents/claude-md-compliance-checker.md
$ curl -fsSL --create-dirs -o .claude/agents/code-quality-pragmatist.md https://raw.githubusercontent.com/bartstc/vite-ts-react-template/core/.claude/agents/code-quality-pragmatist.md
$ curl -fsSL --create-dirs -o .claude/agents/ultrathink-debugger.md https://raw.githubusercontent.com/bartstc/vite-ts-react-template/core/.claude/agents/ultrathink-debugger.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(rm -rf /)",
      "Bash(dd if=/dev/random of=/dev/sda)",
      "Bash(chmod -R 777 /)",
      "Bash(wget -O- | bash)",
      "Bash(sudo rm -rf /)",
      "Bash(mv ~ /dev/null)",
      "Bash(> ~/.bash_history)",
      "Bash(curl | bash)",
      "Bash(mkfs.)",
      "Bash(echo > /etc*)",
      "Bash(kill -9 1)",
      "Bash(killall5)",
      "Bash(shutdown)",
      "Bash(reboot)",
      "Bash(git clean -fdx)",
      "Bash(git clean)",
      "Bash(git push origin main --force)",
      "Bash(git reset --hard)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Agent",
        "hooks": [
          {
            "type": "command",
            "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/explore-agent.sh"
          }
        ]
      }
    ]
  }
}

MCP servers (5)

serversourceest. tokens
@chakra-ui/react-mcp · "chakra-ui" npm 2.5k
storybook local / custom · remote 2.5k
GitHub MCP · "github"
env: GITHUB_PERSONAL_ACCESS_TOKEN
npm 18.0k
Playwright MCP · "playwright" npm 7.5k
Figma · "Framelink MCP for Figma"
env: DO_NOT_TRACK, FIGMA_API_KEY
npm 3.0k

Skills (16)

Subagents (3)

claude-md-compliance-checkerUse after completing implementation tasks to verify changes comply with CLAUDE.md project rules — file boundaries (src/, e2e/ only), path alias usage (@/*), feature-slice architecture, AIDEV-NOTE comm
code-quality-pragmatistUse after writing or modifying code to review for over-engineering, unnecessary complexity, anti-patterns, and feature-slice architecture compliance. Checks that code stays simple, pragmatic, and alig
ultrathink-debugger
model: opus
Use when encountering bugs, errors, unexpected behavior, or system failures that require deep investigation and root cause analysis. Excels at diagnosing complex issues, tracing execution paths, ident

Hooks (1)

eventmatcherruns
PreToolUseAgent${CLAUDE_PROJECT_DIR}/.claude/hooks/explore-agent.sh

Slash commands (2)

/create-PR/push-changes

Permissions

deny (18)
Bash(rm -rf /)
Bash(dd if=/dev/random of=/dev/sda)
Bash(chmod -R 777 /)
Bash(wget -O- | bash)
Bash(sudo rm -rf /)
Bash(mv ~ /dev/null)
Bash(> ~/.bash_history)
Bash(curl | bash)
Bash(mkfs.)
Bash(echo > /etc*)
Bash(kill -9 1)
Bash(killall5)
Bash(shutdown)
Bash(reboot)
Bash(git clean -fdx)
Bash(git clean)
Bash(git push origin main --force)
Bash(git reset --hard)
ask (0)
—
allow (25)
Bash(find:*)
Bash(ls:*)
Bash(mkdir:*)
Bash(rm:*)
Bash(rg:*)
Bash(git status)
Bash(git add:*)
Bash(git commit:*)
Bash(git pull:*)
Bash(git push:*)
Bash(git checkout:*)
Bash(pnpm dev)
Bash(pnpm lint)
Bash(pnpm lint:*)
Bash(pnpm storybook)
Bash(pnpm test)
Bash(pnpm test:coverage)
Bash(pnpm test:unit)
Bash(pnpm test:storybook)
Bash(pnpm exec prettier:*)
Bash(gh pr view:*)
Bash(gh pr diff:*)
WebFetch(domain:docs.anthropic.com)
WebFetch(domain:chakra-ui.com/docs)
WebFetch(domain:github.com)

Similar rigs

copied ✓