skills/setup-claude/SKILL.md
Interactive Claude Code repository setup and optimization. Configures the complete ecosystem - skills, commands, subagents, hooks, rules, MCPs, and plugins. Invoke with /setup-claude init or /setup-claude audit.
npx skillsauth add ansarullahanasz360/cc-guide setup-claudeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert at configuring repositories for optimal Claude Code usage. You help users set up new projects from scratch or audit existing projects for improvements.
When invoked, determine which mode to use:
init or audit, use that mode.claude/ directory exists OR CLAUDE.md exists → audit modeFor setting up new or nearly-empty repositories from scratch.
Follow the workflow in: workflows/init-new-repo.md
13 Phases:
For analyzing and improving existing repositories.
Follow the workflow in: workflows/audit-existing-repo.md
8 Phases:
The skill configures all of these:
~/.claude/ # Global config (personal)
├── skills/ # Broader workflow definitions
├── commands/ # Quick executable prompts
├── agents/ # Subagent definitions
├── rules/ # Modular best practice .md files
├── settings.json # Global hooks & permissions
└── CLAUDE.md # Global context
.claude/ # Project-level config
├── skills/ # Project-specific skills
├── commands/ # Project-specific commands
├── agents/ # Project subagents
├── rules/ # Project rules
└── settings.json # Project hooks
CLAUDE.md # Project context file (10 sections)
.mcp.json # MCP configuration
.ralph-tui/ # Ralph TUI config
When executing workflows, reference these components for detailed guidance:
| Component | Purpose |
|-----------|---------|
| components/cli-discovery.md | CLI-first service integration |
| components/mcp-management.md | MCP setup + context window management |
| components/plugin-setup.md | Essential plugins configuration |
| components/subagent-setup.md | Subagent templates and scoping |
| components/rules-configuration.md | Modular rules setup |
| components/documentation-setup.md | Context7 + web research guidance |
| components/tools-installation.md | Global tools setup |
| components/skills-discovery.md | Skill recommendation and installation |
| components/hooks-configuration.md | Hook patterns for automation |
| components/claudemd-writing.md | CLAUDE.md with all 10 sections |
| components/folder-structure.md | Project scaffolding templates |
| Reference | Contents |
|-----------|----------|
| reference/tech-stack-clis.md | CLI tools by technology |
| reference/mcp-servers.md | MCP server configurations |
| reference/essential-plugins.md | Plugin recommendations |
| reference/subagent-templates.md | Common subagent patterns |
| reference/hook-patterns.md | Enhanced hook patterns |
| reference/mandatory-skills.md | Skills always installed (PRD, Agent Browser) |
| reference/tech-stack-skills.md | Skills mapped to frameworks |
| reference/hook-templates.md | Pre-built hook JSON configurations |
| Template | Purpose |
|----------|---------|
| templates/ralph-tui/config.toml | Ralph TUI configuration |
| templates/ralph-tui/prompt.hbs | Ralph prompt template |
| templates/subagents/*.md | Subagent definitions |
| templates/rules/*.md | Rule templates |
| templates/claude-md/complete-template.md | Full CLAUDE.md template |
New project:
User: /setup-claude init
Claude: [Runs 13-phase init workflow]
Existing project:
User: /setup-claude audit
Claude: [Runs 8-phase audit workflow]
Auto-detect:
User: /setup-claude
Claude: [Detects mode based on directory contents]
development
Decide HOW to run a coding task — interactive, goal mode, or a workflow — then author the launch-ready prompt or goal package for Claude Code, Codex, or Antigravity. Use when the user says "launchpad", "start a goal", "set up a goal/sprint", "should this be a goal or interactive", "plan an autonomous run", "I want to brain-dump a task", "help me write a goal prompt", or is about to kick off a long autonomous run and wants it scoped, delegated, and verifiable first.
development
Use when turning founder requirements, research packets, plans, specs, and system designs into one or more independently executable Claude Code, Cloud Code, or Codex implementation sprints with story writing, review, execution, optional verification, and sprint-level commits.
testing
Pre-flight check for Ralph TUI loops. Validates config, templates, prd.json, and environment before starting a loop. Run after /prd to verify everything is ready. Detects global CLAUDE.md conflicts, validates template variables, and provides launch commands.
development
Create self-verifying PRDs for autonomous execution. Interviews users to gather requirements, then generates structured prd.json with phased implementation and appropriate testing strategies. Supports 7 task categories with type-specific workflows. Use when user says "create a prd", "prd for", "plan a feature", "plan this", "write prd", or wants to plan any multi-step implementation work.