← ClaudeAtlas

setup-projectlisted

Configure Claude Code for this project - detects languages and sets up rules, skills, and validators
peteski22/agent-pragma · ★ 22 · AI & Automation · score 75
Install: claude install-skill peteski22/agent-pragma
# Project Setup Automatically configure Claude Code for the current project. Supports monorepos with multiple languages in subdirectories. ## Step 0: Resolve plugin root The skill loader provides the base directory in the header: `Base directory for this skill: <path>`. Derive the plugin root from that: ```text PLUGIN_ROOT = <base directory>/../../ ``` For example, if the skill base directory is `~/.claude/plugins/cache/pragma/skills/setup-project`, then `PLUGIN_ROOT` is `~/.claude/plugins/cache/pragma`. Verify the plugin root is valid by checking for the plugin manifest: ```bash PLUGIN_ROOT="<base directory>/../.." [[ -f "$PLUGIN_ROOT/.claude-plugin/plugin.json" ]] && echo "OK" || echo "ERROR: Plugin root invalid - .claude-plugin/plugin.json not found at $PLUGIN_ROOT" true ``` **Note:** Replace `<base directory>` with the actual path from the skill loader header above. For example, if the header says `Base directory for this skill: /home/user/.claude/plugins/cache/pragma/skills/setup-project`, then `PLUGIN_ROOT="/home/user/.claude/plugins/cache/pragma/skills/setup-project/../.."`. **If the check fails**, stop and show: ```text Plugin root could not be resolved. The pragma plugin may not be installed correctly. Reinstall: /plugin marketplace add peteski22/agent-pragma /plugin install pragma@agent-pragma ``` **STOP if check fails. Do not proceed.** ## Step 1: Detect project metadata Get org and repo name from git remote: ```bash git remote get-url origin 2>/d