Repository Scaffolding Command
Scaffolds development scripts into a repository and adapts them to the project's technology stack.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Action Steps: After scaffolding is complete, the LLM should guide the user through:
This command scaffolds essential development scripts from the claude-commands repository into any target repository and provides intelligent adaptation instructions to the LLM.
Copy Core Scripts: Copy the following scripts from claude-commands to the target repository:
create_worktree.sh → Copy to project rootintegrate.sh → Copy to project rootschedule_branch_work.sh → Copy to project rootclaude_mcp.sh → Copy to scripts/claude_start.sh → Copy to scripts/codebase_loc.sh → Copy to scripts/coverage.sh → Copy to scripts/create_snapshot.sh → Copy to scripts/loc.sh → Copy to scripts/loc_simple.sh → Copy to scripts/push.sh → Copy to scripts/resolve_conflicts.sh → Copy to scripts/run_lint.sh → Copy to scripts/run_tests_with_coverage.sh → Copy to scripts/setup-github-runner.sh → Copy to scripts/setup_email.sh → Copy to scripts/sync_branch.sh → Copy to scripts/The source scripts live in the jleechanorg/claude-commands repository.
Clone that repository locally and set CLAUDE_COMMANDS_PATH to the absolute path of the clone (for example,
~/workspace/claude-commands). The slash command assumes that location unless you override the variable.
When this command is run:
# 1. Create scripts directory if it doesn't exist
mkdir -p scripts
# 2. Copy all specified scripts from claude-commands repository
# Note: CLAUDE_COMMANDS_PATH must point at your local claude-commands clone
cp "$CLAUDE_COMMANDS_PATH/create_worktree.sh" ./
cp "$CLAUDE_COMMANDS_PATH/integrate.sh" ./
cp "$CLAUDE_COMMANDS_PATH/schedule_branch_work.sh" ./
cp "$CLAUDE_COMMANDS_PATH/scripts/claude_mcp.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/claude_start.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/codebase_loc.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/coverage.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/create_snapshot.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/loc.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/loc_simple.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/push.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/resolve_conflicts.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/run_lint.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/run_tests_with_coverage.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/setup-github-runner.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/setup_email.sh" ./scripts/
cp "$CLAUDE_COMMANDS_PATH/scripts/sync_branch.sh" ./scripts/
# 3. Make all scripts executable
chmod +x *.sh scripts/*.sh
After copying the scripts, the LLM should analyze the target repository and adapt the scripts according to these guidelines:
package.json, Cargo.toml, requirements.txt, go.mod, etc.run_lint.sh adaptations:npm run lint or npx eslintflake8, black, ruff, or pylintgolangci-lint runcargo clippycheckstyle or spotbugsrun_tests_with_coverage.sh adaptations:npm test with jest --coverage or nycpytest --cov=. or coverage run -m pytestgo test -coverprofile=coverage.out ./...cargo test with cargo tarpaulincoverage.sh adaptations:.github/workflows/ exists, suggest integrating scripts into GitHub Actions.gitlab-ci.yml exists, suggest GitLab CI integrationsetup-github-runner.sh as a templateREADME.md exists, suggest adding a "Development Scripts" sectionpackage.json scripts sectionpyproject.toml or setup.pyCargo.tomlpackage.json additions:{
"scripts": {
"scaffold:lint": "./scripts/run_lint.sh",
"scaffold:test": "./scripts/run_tests_with_coverage.sh",
"scaffold:coverage": "./scripts/coverage.sh",
"scaffold:loc": "./scripts/loc.sh"
}
}
# User runs the scaffold command
/scaffold
# The LLM will:
# 1. Copy all specified scripts to the current repository
# 2. Analyze the project structure (package.json, requirements.txt, etc.)
# 3. Provide specific adaptation instructions for the detected stack
# 4. Suggest integration points and next steps
# 5. Update relevant configuration files if requested