Interactive installer for clarc — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
From clarcnpx claudepluginhub marvinrichter/clarc --plugin clarcThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
An interactive, step-by-step installation wizard for the clarc project. Uses AskUserQuestion to guide users through selective installation of skills and rules, then verifies correctness and offers optimization.
This skill must be accessible to Claude Code before activation. Two ways to bootstrap:
npx github:marvinrichter/clarc — the wizard installs this skill automatically~/.claude/skills/configure-clarc/SKILL.md, then activate by saying "configure clarc"Before any installation, clone the latest clarc source to /tmp:
rm -rf /tmp/clarc
git clone https://github.com/marvinrichter/clarc.git /tmp/clarc
Set CLARC_ROOT=/tmp/clarc as the source for all subsequent copy operations.
If the clone fails (network issues, etc.), use AskUserQuestion to ask the user to provide a local path to an existing clarc clone.
Use AskUserQuestion to ask the user where to install:
Question: "Where should clarc components be installed?"
Options:
- "User-level (~/.claude/)" — "Applies to all your Claude Code projects"
- "Project-level (.claude/)" — "Applies only to the current project"
- "Both" — "Common/shared items user-level, project-specific items project-level"
Store the choice as INSTALL_LEVEL. Set the target directory:
TARGET=~/.claudeTARGET=.claude (relative to current project root)TARGET_USER=~/.claude, TARGET_PROJECT=.claudeCreate the target directories if they don't exist:
mkdir -p $TARGET/skills $TARGET/rules
Default to Core (recommended for new users) — copy .agents/skills/* plus skills/search-first/ for research-first workflows. This bundle covers engineering, evals, verification, security, strategic compaction, frontend design, and Anthropic cross-functional skills (article-writing, content-engine, market-research, html-slides).
Use AskUserQuestion (single select):
Question: "Install core skills only, or include niche/framework packs?"
Options:
- "Core only (recommended)" — "tdd, e2e, evals, verification, research-first, security, frontend patterns, compacting, cross-functional Anthropic skills"
- "Core + selected niche" — "Add framework/domain-specific skills after core"
- "Niche only" — "Skip core, install specific framework/domain skills"
Default: Core only
If the user chooses niche or core + niche, continue to category selection below and only include those niche skills they pick.
There are 27 skills organized into 4 categories. Use AskUserQuestion with multiSelect: true:
Question: "Which skill categories do you want to install?"
Options:
- "Framework & Language" — "Django, Spring Boot, Go, Python, Java, Frontend, Backend patterns"
- "Database" — "PostgreSQL, DuckDB, JPA/Hibernate patterns"
- "Workflow & Quality" — "TDD, verification, learning, security review, compaction"
- "All skills" — "Install every available skill"
For each selected category, print the full list of skills below and ask the user to confirm or deselect specific ones. If the list exceeds 4 items, print the list as text and use AskUserQuestion with an "Install all listed" option plus "Other" for the user to paste specific names.
Category: Framework & Language (17 skills)
| Skill | Description |
|---|---|
nodejs-backend-patterns | Node.js backend patterns — Express, Fastify, Next.js API routes, TypeScript services |
typescript-coding-standards | TypeScript, JavaScript, React, and Node.js coding standards — naming, immutability, async, component structure |
django-patterns | Django architecture, REST API with DRF, ORM, caching, signals, middleware |
django-security | Django security: auth, CSRF, SQL injection, XSS prevention |
django-tdd | Django testing with pytest-django, factory_boy, mocking, coverage |
django-verification | Django verification loop: migrations, linting, tests, security scans |
frontend-patterns | React, Next.js, state management, performance, UI patterns |
html-slides | Zero-dependency HTML presentations, style previews, and PPTX-to-web conversion |
go-patterns | Idiomatic Go patterns, conventions for robust Go applications |
go-testing | Go testing: table-driven tests, subtests, benchmarks, fuzzing |
java-coding-standards | Java coding standards for Spring Boot: naming, immutability, Optional, streams |
python-patterns | Pythonic idioms, PEP 8, type hints, best practices |
python-testing | Python testing with pytest, TDD, fixtures, mocking, parametrization |
springboot-patterns | Spring Boot architecture, REST API, layered services, caching, async |
springboot-security | Spring Security: authn/authz, validation, CSRF, secrets, rate limiting |
springboot-tdd | Spring Boot TDD with JUnit 5, Mockito, MockMvc, Testcontainers |
springboot-verification | Spring Boot verification: build, static analysis, tests, security scans |
Category: Database (3 skills)
| Skill | Description |
|---|---|
duckdb-patterns | Embedded OLAP, Parquet/CSV querying, dbt-duckdb, analytical SQL without infrastructure |
jpa-patterns | JPA/Hibernate entity design, relationships, query optimization, transactions |
postgres-patterns | PostgreSQL query optimization, schema design, indexing, security |
Category: Workflow & Quality (8 skills)
| Skill | Description |
|---|---|
continuous-learning-v2 | Instinct-based learning with confidence scoring, evolves into skills/commands/agents |
eval-harness | Formal evaluation framework for eval-driven development (EDD) |
iterative-retrieval | Progressive context refinement for subagent context problem |
security-review | Security checklist: auth, input, secrets, API, payment features |
strategic-compact | Suggests manual context compaction at logical intervals |
tdd-workflow | Enforces TDD with 80%+ coverage: unit, integration, E2E |
verification-loop | Verification and quality loop patterns |
Category: Business & Content (5 skills)
| Skill | Description |
|---|---|
article-writing | Long-form writing in a supplied voice using notes, examples, or source docs |
content-engine | Multi-platform social content, scripts, and repurposing workflows |
market-research | Source-attributed market, competitor, fund, and technology research |
investor-materials | Pitch decks, one-pagers, investor memos, and financial models |
investor-outreach | Personalized investor cold emails, warm intros, and follow-ups |
Standalone
| Skill | Description |
|---|---|
project-guidelines-example | Template for creating project-specific skills |
For each selected skill, copy the entire skill directory:
cp -r $CLARC_ROOT/skills/<skill-name> $TARGET/skills/
Note: continuous-learning-v2 has extra files (config.json, hooks, scripts) — ensure the entire directory is copied, not just SKILL.md.
Use AskUserQuestion with multiSelect: true:
Question: "Which rule sets do you want to install?"
Options:
- "Common rules (Recommended)" — "Language-agnostic principles: coding style, git workflow, testing, security, etc. (8 files)"
- "TypeScript/JavaScript" — "TS/JS patterns, hooks, testing with Playwright (5 files)"
- "Python" — "Python patterns, pytest, black/ruff formatting (5 files)"
- "Go" — "Go patterns, table-driven tests, gofmt/staticcheck (5 files)"
Execute installation:
# Common rules (flat copy into rules/)
cp -r $CLARC_ROOT/rules/common/* $TARGET/rules/
# Language-specific rules (flat copy into rules/)
cp -r $CLARC_ROOT/rules/typescript/* $TARGET/rules/ # if selected
cp -r $CLARC_ROOT/rules/python/* $TARGET/rules/ # if selected
cp -r $CLARC_ROOT/rules/go/* $TARGET/rules/ # if selected
Important: If the user selects any language-specific rules but NOT common rules, warn them:
"Language-specific rules extend the common rules. Installing without common rules may result in incomplete coverage. Install common rules too?"
After installation, perform these automated checks:
List all installed files and confirm they exist at the target location:
ls -la $TARGET/skills/
ls -la $TARGET/rules/
Scan all installed .md files for path references:
grep -rn "~/.claude/" $TARGET/skills/ $TARGET/rules/
grep -rn "../common/" $TARGET/rules/
grep -rn "skills/" $TARGET/skills/
For project-level installs, flag any references to ~/.claude/ paths:
~/.claude/settings.json — this is usually fine (settings are always user-level)~/.claude/skills/ or ~/.claude/rules/ — this may be broken if installed only at project levelSome skills reference others. Verify these dependencies:
django-tdd may reference django-patternsspringboot-tdd may reference springboot-patternscontinuous-learning-v2 references ~/.claude/homunculus/ directorypython-testing may reference python-patternsgo-testing may reference go-patternscommon/ counterpartsFor each issue found, report:
Use AskUserQuestion:
Question: "Would you like to optimize the installed files for your project?"
Options:
- "Optimize skills" — "Remove irrelevant sections, adjust paths, tailor to your tech stack"
- "Optimize rules" — "Adjust coverage targets, add project-specific patterns, customize tool configs"
- "Optimize both" — "Full optimization of all installed files"
- "Skip" — "Keep everything as-is"
Critical: Only modify files in the installation target ($TARGET/), NEVER modify files in the source clarc repository ($CLARC_ROOT/).
Clean up the cloned repository from /tmp:
rm -rf /tmp/clarc
Then print a summary report:
## clarc Installation Complete
### Installation Target
- Level: [user-level / project-level / both]
- Path: [target path]
### Skills Installed ([count])
- skill-1, skill-2, skill-3, ...
### Rules Installed ([count])
- common (8 files)
- typescript (5 files)
- ...
### Verification Results
- [count] issues found, [count] fixed
- [list any remaining issues]
### Optimizations Applied
- [list changes made, or "None"]
SKILL.md file (not just loose .md files)~/.claude/skills/<skill-name>/SKILL.md exists.claude/skills/<skill-name>/SKILL.md exists$TARGET/rules/coding-style.md (correct) vs $TARGET/rules/common/coding-style.md (incorrect for flat install)~/.claude/ paths. Run Step 4 verification to find and fix these.continuous-learning-v2, the ~/.claude/homunculus/ directory is always user-level — this is expected and not an error.