/valis:index <folder> (e.g. ./docs or ./specs)from valis
Bulk-import a folder of markdown documentation as decisions (drafts queue for unprefixed files).
Ships in valis. Installing the plugin adds it to Claude Code.
Take an existing tree of markdown files and seed Valis with their content in one shot, instead of typing each decision via /valis:store. Files with a recognized prefix (decision-, pattern-, constraint-, lesson-, postmortem-) are stored as active with the inferred type. Files without a prefix are stored as proposed drafts so you can triage them in the dashboard before they enter the active set.
Resolve the target folder from $ARGUMENTS.
$CLAUDE_PROJECT_DIR if that env var is set; otherwise against the current working directory.Detect whether the local valis CLI is available:
valis --version
0.1.3 or higher, prefer the CLI path (step 3) — it streams progress, uses the same chunking + e5-small embedding pipeline as valis_store, and applies all the heuristic + status logic in one place.valis_store calls — this is slower but produces the same result. Install the CLI for faster bulk imports: npm i -g valis-cli@latest."CLI path — shell out:
valis index <folder> --strategy section --use-git --yes (section-split + git author/date + skip the per-question prompts).$ARGUMENTS already contains flags (e.g. they typed ./specs --strategy file), forward them verbatim instead of using the defaults.Plugin-native path — run when CLI is absent. This path takes longer (one MCP call per file) so confirm with the user first:
Glob to enumerate **/*.md and **/*.markdown under the folder (respect .gitignore — do not descend into node_modules, dist, or dot-prefixed dirs).decision-* → decision, pattern-* → pattern, constraint-* → constraint, lesson-* / postmortem-* → lesson, otherwise decision + flag as draft.# ) as the summary; truncate to 100 chars. If no H1, use the filename without extension.valis_check_duplicate with the first 1000 chars of the body. If a result with similarity ≥ 0.85 already exists, skip the file and add it to a skipped_dupes[] list.valis_store with: text (full body), type (inferred), summary (extracted), affects (empty unless the user passed a tag prefix in $ARGUMENTS), status ('active' if prefix matched, 'proposed' otherwise).After either path completes, if any proposed drafts were created, suggest:
Drafts are awaiting your review. Open the dashboard ({org}.krukit.co/projects/{project}/proposals) or run
/valis:lifecycle promote <id>per draft.
--resume-from, batch rollback, similarity-based pre-import audit. For now if any of those matter, point the user at the CLI.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
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./initStepsConnect this repository to a Valis project. Creates .valis.json./lifecycleStepsChange decision status — promote, deprecate, or supersede team decisions.Other plugins' commands for the same job