/valis:init [project-name]from valis
Connect this repository to a Valis project. Creates .valis.json.
Ships in valis. Installing the plugin adds it to Claude Code.
Connect this repository to a Valis project by creating .valis.json.
Read .valis.json from the repo root. If it exists, show the current project and ask whether to switch. Stop if the user declines.
Call the valis_list_projects MCP tool to fetch projects the authenticated member can access.
Do not use WebFetch, Fetch, or Bash curl to hit /api/list-projects directly — those tools do not carry the MCP OAuth token and will return 401.
Present a numbered list with names, roles, and decision counts. Always include one additional option at the end: N+1. Create a new project (where N is the number of existing projects).
If $ARGUMENTS matches an existing project name, select it automatically. Otherwise ask the user to pick by number or name.
If user picks "Create a new project" (or equivalent):
Ask for the project name. Suggest the current repo directory basename as a default.
Show the baseline picker — present these four options as a numbered menu and ask the user to pick one:
1. Blank — start empty (0 decisions)
2. ts-saas v0.1 — TypeScript SaaS conventions (18 decisions, free plan)
3. fintech v0.1 — Fintech compliance + auditability (22 decisions, requires 'pro' plan or higher)
4. ai-agent v0.1 — AI agent / LLM app conventions (15 decisions, free plan)
The version labels (v0.1) come from the registry — keep them visible so the user knows which snapshot will be seeded if they audit the project later.
Call valis_create_project:
project_name only.project_name AND template_id (one of ts-saas | fintech | ai-agent).On success the response includes { project_id, project_name, role, template_source, decisions_seeded }. Surface decisions_seeded to the user so they know how much was preloaded.
Plan-locked errors: if the response has error: 'plan_too_low', surface the human-readable message to the user and offer to retry with a different template (Blank or another free-tier option). Do not retry blindly.
Quota errors: if the response has error: 'plan_quota_exceeded', surface the message and offer Blank as a fallback (no decisions seeded).
Treat the successful response as the selected project for step 6.
Write .valis.json to the repo root:
{ "project_id": "<id>", "project_name": "<name>" }
Print: "Connected to {project_name}. {decision_count} decisions available." Substitute decisions_seeded for templated projects, or 0 for blank ones.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Other plugins' commands for the same job
npx claudepluginhub todmy/valis-plugin --plugin valis10 commands in this plugin
/add-commandStepsCreate a KB-backed persona command from a Valis project./before-taskStepsLoad relevant team context before starting a task./checkStepsRun the team's enforcement check against your working-tree diff before committing./extractStepsExtract team decisions from a folder of documents. Estimates token cost first./indexStepsBulk-import a folder of markdown documentation as decisions (drafts queue for unprefixed files)./lifecycleStepsChange decision status — promote, deprecate, or supersede team decisions.