clare-env-setup

clare-env-setup is a command for Claude Code from jketreno/clare. It costs 0 tokens per session (606 once invoked), scanned A, original, MIT.

A project environment scanner that detects programming languages, configuration files, required tools, and possible build, test, or deployment areas. It can also recommend VS Code extensions and create a Dockerfile for isolated verification runs.

In plain words
What is it for?
Use it to inspect a repository, produce a human-readable or JSON report, update VS Code extension recommendations, or prepare a container for repeatable checks.
Why use it?
It shows contributors what their project needs before running verification and helps identify parts of the project that are not covered yet.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is ./scripts/clare-installer.sh --target /path/to/project --install-skill "1".

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clare-env-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/jketreno/clare/clare-env-setup.svg)](https://agentmods.dev/commands/jketreno/clare/clare-env-setup)
Your own site
<a href="https://agentmods.dev/commands/jketreno/clare/clare-env-setup"><img src="https://agentmods.dev/badge/commands/jketreno/clare/clare-env-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00606
Opus 5 $0.00000 $0.00303
Sonnet 5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00061

Measured 6d ago against content hash f290c20a1ba9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clare-env-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/clare-env-setup.md · 50 lines

What it actually says

CLARE Skill: clare-env-setup

description: Detect project file types, recommend tools and VS Code extensions, and optionally generate Dockerfile.clare for reproducible verification runs.


This skill provides an env-scan helper that inspects a repository, reports which languages and common config files are present, extracts tooling requirements from clare/verify-ci.sh and clare/verify-local.sh, recommends VS Code extensions, and identifies likely deployment/build/test surfaces that still need CLARE coverage.

Purpose

  • Help contributors quickly configure their environment for CLARE verification.
  • Provide a small Dockerfile.clare to run verification in an isolated container.

Usage

Installing this skill also installs the scanner into your project at clare/scripts/clare-env-scan.sh. Run it from the project root:

  • Run the scanner (human-readable report):

    bash clare/scripts/clare-env-scan.sh --report

  • Machine-readable JSON output:

    bash clare/scripts/clare-env-scan.sh --json > /tmp/clare-scan.json

  • Attempt to update .vscode/extensions.json in the repository (use with care):

    bash clare/scripts/clare-env-scan.sh --apply-extensions --vscode-dir .vscode

Notes

  • The scanner is intentionally conservative and will only auto-apply VS Code recommendations when explicitly requested.
  • The CLARE source repo also ships a Dockerfile.clare (under install/): a suggested, minimal image to run ./clare/verify-ci.sh --fast without polluting the host. Copy it into your project and edit it to add or remove language runtimes as needed.

Dockerfile details

  • The CLARE source repo's install/Dockerfile.clare installs the Go toolchain from the official tarball by default (build-arg GO_VERSION=1.22.9). This enables language checks that require go and binaries installed via go install (for example shfmt) to be available inside the container. To override the Go version or skip installation, use --build-arg GO_VERSION=... or an empty value to skip.

Installer usage

  • The installer supports non-interactive skill installation with the --install-skill flag. You can pass a quoted list of numeric indices (as shown during the setup prompt) or all. Example:
./scripts/clare-installer.sh --target /path/to/project --install-skill "1"
./scripts/clare-installer.sh --target /path/to/project --install-skill "all"

Outputs

  • Plain text report (default --report).
  • JSON (--json) with fileCounts, configsFound, verifyTools, recommendedExtensions, detectedSurfaces, verifiedSurfaces, coverageGaps, and agentPrompts sections.

See install/clare/README.md for additional details and examples.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 50 lines · 0 tokens per session scan A f290c20a1ba9

Subscribe to this mod's changes

clare-env-setup is a command published in the GitHub repository jketreno/clare (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 606 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.