/rsturla-skills:scaffold-repofrom rsturla-skills
Bootstrap new repositories with standard tooling — CI pipelines, linting, Renovate, gitleaks, CLAUDE.md, and language-specific project structure for Go, Rust, and Python. Supports GitHub Actions and GitLab CI. Use when the user wants to set up a new project, scaffold a repo, bootstrap a codebase, or initialize a repository — even if they just say "start a new project", "set up a Go service", or "init a Rust crate."
Ships in rsturla-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bootstrap a new repo with CI, linting, dependency management, secret scanning, and language-specific project structure.
User: /scaffold-repo
Agent: asks project name, language, repo type, forge
Agent: generates all files, presents list for review
User: approves or requests changes
Before scaffolding, check if the directory is a git repository:
if [[ ! -d .git ]]; then
# Ask user: "No git repo found. Run git init?"
git init
fi
If the repo already has files (non-empty beyond .git/), ask user whether this is:
Ask these questions in order (later answers depend on earlier ones):
Python package directories cannot contain hyphens. Convert <project_name> to <package_name> by replacing
hyphens with underscores (e.g., my-service becomes my_service). Use <package_name> for all Python directory
and import paths.
REMOTE_URL=$(git remote get-url origin 2>/dev/null || echo "")
if [[ "$REMOTE_URL" == *github.com* ]]; then
FORGE="github"
elif [[ "$REMOTE_URL" == *gitlab* ]]; then
FORGE="gitlab"
fi
Always confirm detected forge with user. If no remote, ask directly.
Read templates from REFERENCE.md, substitute placeholders, write files.
| Category | Files | Varies By |
|---|---|---|
| Project | CLAUDE.md, AGENTS.md (symlink), .gitignore, .editorconfig, CODEOWNERS | Language |
| License | LICENSE | User choice |
| CI | Workflow/pipeline files | Forge + Language |
| Dependencies | Renovate config | Forge |
| Security | .gitleaks.toml, .pre-commit-config.yaml | — |
| Language | Module config, linter config, project layout | Language + Type |
| Placeholder | Source | Example |
|---|---|---|
<project_name> | User input (kebab-case) | my-service |
<package_name> | <project_name> with hyphens → underscores (Python only) | my_service |
<module_path> | Git remote or user input | github.com/rsturla/my-service |
<description> | User input | REST API for widget management |
<year> | Current year | 2026 |
Write tool for each fileln -s CLAUDE.md AGENTS.md| File | GitHub | GitLab |
|---|---|---|
| CI pipeline | .github/workflows/ci.yml | .gitlab-ci.yml |
| Dependency review | .github/workflows/dependency-review.yml | — |
| Renovate | .github/renovate.json | .gitlab/renovate.json |
After generating all files:
find . -type f -not -path './.git/*' | sortAfter user approves scaffold, suggest:
/write-docs — generate a proper README.md/dependency-audit — initial dependency vulnerability check/commit-message — write the initial commit message| Type | Entry Point | Build Step | Notes |
|---|---|---|---|
| Service | Go: cmd/<name>/main.go, Rust: src/main.rs, Python: src/<name>/__main__.py | Yes | Includes internal/ (Go) |
| CLI | Same as Service | Yes | Go: consider cobra for subcommands |
| Library | Go: root package, Rust: src/lib.rs, Python: src/<name>/ | No | CI: test + lint only |
uv.lock, Cargo.lock) for reproducible buildsuv.lock, Cargo.lock) — consumers manage their ownFor Go, infer module path from git remote:
REMOTE_URL=$(git remote get-url origin 2>/dev/null || echo "")
if [[ -n "$REMOTE_URL" ]]; then
MODULE_PATH=$(echo "$REMOTE_URL" | sed -E 's|.*[:/](.+)(\.git)?$|\1|')
fi
If no remote or ambiguous, ask user directly. Note: GitLab nested groups produce paths with more than three
components (e.g., gitlab.com/org/group/subgroup/repo) — the regex handles this correctly.
When adding components to an existing repo, ask user which categories to generate:
Skip the full interactive flow. Only ask questions relevant to selected categories.
AGENTS.md is a symlink pointing to CLAUDE.md — CLAUDE.md is the real file.json extension — Renovate parses JSONC from .json files natively.
Always use best-practices preset<sha> placeholders. Always resolve to
current SHAs at generation time using gh api. See REFERENCE.md "Resolving Action SHAs" section. Never copy
stale SHAs from templates without verifyingedition = "2024" and resolver = "3".gitignore must be language-specific — a Go .gitignore is very different from Python. Lockfile handling
differs by repo type (commit for services, ignore for libraries)@org/team) and personal repos (@username) — ask userSee REFERENCE.md for all templates.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (rsturla/skills) — no native marketplace selected
npx claudepluginhub p/rsturla-rsturla-skills13 skills in this plugin
/build-agentBuild TypeScript AI agents with eval framework, provider abstraction, and production guardrails. Uses Vercel AI SDK for model-agnostic tool-use loops, Zod for structured outputs, Vitest for evals, and OpenTelemetry for observability. Covers prompt caching, extended thinking, RAG pipelines, structured output enforcement, tool annotations, seed tool calls, toolcall regression evals, and duplicate call detection. Use when the user wants to build an agent, create an AI assistant, implement tool-use, or scaffold an agentic system — even if they just say "build a bot", "add AI to this", or "make it agentic."
/code-reviewComprehensive code review using multiple specialized agents. Checks architecture, error handling, naming, testing, and style against project conventions. Use when the user asks for a code review, says "review this", "check my code", or wants feedback on changes — even if they just say "what do you think?" about a diff.
/commit-messageOther plugins' skills for the same job