/selune:selunefrom selune
Provides CLI commands and semantic workflow for the Selune MoonBit agentic programming platform. Covers build, test, formal verification, MCP tools, and repository management.
Ships in selune. 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.
None: SKILL.md is the whole skill.
Load this skill whenever operating in Selûne or a repository initialized with scripts/selune-init.sh.
./bin/selune)Use ./bin/selune as the single entry point from any working directory:
./bin/selune doctor # Verify Tier 0/1/2 tools & toolchain.lock digest
./bin/selune hello # Run 60-second starter (check, test, prove, MARS)
./bin/selune test [lib] # Run `moon test --deny-warn` on one or all libs/
./bin/selune prove [pkg] # Discharge Why3/Z3/CVC5 contracts via `moon prove`
./bin/selune formal <probe|dogfood|verify> # Lean 4 bv_decide + LLVM-IR CT bridge CLI
./bin/selune agentic <subcmd> # Semantic graph, context pack, edit replay, commit CLI
./bin/selune mcp --transport stdio # Stateless MCP 2026-07-28 server (21 sorted tools)
./bin/selune mars <subcmd> # Pure MoonBit MARS 1.0 obligation compiler
./bin/selune warden <init|tick|gate|status> # Persistent read-only Warden process watcher
./bin/selune hygiene [--docs|--full] # Unified pre-commit/pre-freeze gate (Warden + MARS + Wiki/SIM)
./bin/selune mbti-refresh [--dry-run] # Run `moon info` only on stale pkg.generated.mbti packages
./bin/selune wiki <subcmd> # Query, lint, inspect SIM, or tail logs in llm-wiki/
./bin/selune cells <subcmd> # Worktree cell lifecycle and Mark-and-Sweep GC
./bin/selune dreamscape <subcmd> # RAM disk & context engine (libs/ramdisk)
./bin/selune adapter <validate-dir|list> # Validate/list/resolve Language, Library & Agent adapters
./bin/selune docs [port] # Serve local documentation site
./bin/selune play [port] # Launch SelûneCraft WebGL2 voxel sandbox
agentic & Stateless MCP 2026-07-28)Always prefer compiler-resolved facts over regex grep:
agentic lock --repo . and agentic publish --repo ..agentic find, agentic deps, agentic dependents, agentic impact, agentic evidence, paired with moon ide (peek-def, find-references, rename, hover, outline, analyze, doc) or the language's LSP configured in .lsp.json.agentic context build --task "<goal>" --revision rev:<sha>, then expand handles lazily via agentic context expand --pack <ctx:sha256:...> --handles <h...>. Inspect pack.flagged and pack.unsupported before planning.EditPlan (Rename, ReplaceBody, ChangeSignature, ExtractFunction, AddDependency, RemoveDependency, ReplaceFileRegion) + read_set (LogicalDefId -> InterfaceDigest/BodyDigest) via agentic propose. (Ensure MCP config passes --principal-role publisher for mutating tools; unauthenticated default is read_only.)agentic validate --candidate <id> and poll agentic status --handle <h> (or MCP tasks/get). Never upgrade timeout, unknown, unsupported, cancelled, or tool-error into a pass — only proved and passed satisfy acceptance gates.agentic commit --candidate <id> or roll back cleanly via agentic revert --revision <rev>.All 21 stateless MCP tools (exposed in deterministic alphabetical order by libs/mcp/bin/agentic-mcp.mjs):
agentic_commit, agentic_context_build, agentic_context_expand, agentic_dependents, agentic_deps, agentic_evidence, agentic_export_ogs, agentic_export_scip, agentic_find, agentic_impact, agentic_lock, agentic_metrics, agentic_propose, agentic_publish, agentic_revert, agentic_status, agentic_validate, agentic_wiki_index, agentic_wiki_lint, agentic_wiki_query, agentic_wiki_sim_show.
./bin/selune mars)MARS 1.0 runs natively in pure MoonBit (libs/mars/):
./bin/selune mars check <obligations.mars> --fresh
./bin/selune mars audit <obligations.mars> --fresh
./bin/selune mars coverage <obligations.mars> --fresh --json
./bin/selune mars emit-lean <obligations.mars> --fresh -o out.lean
./bin/selune mars emit-graph <obligations.mars> --fresh -o graph.json
./bin/selune mars diff <base.mars> <revised.mars> --fresh
./bin/selune mars self-test
./bin/selune mars verify-checklist [checklist.toml]
Never weaken protected obligations, held-out test suites, or specification checksums.
llm-wiki/ & Self-Improvement Memory (SIM.md)llm-wiki/SIM.md for known recurring root causes and query llm-wiki/wiki/index.md via ./bin/selune wiki query "<topic>" or MCP agentic_wiki_query.llm-wiki/wiki/log.md whole: Tail recent entries only with ./bin/selune wiki log 10.llm-wiki/ carries llm_wiki_compiled provenance and stays strictly off the commit critical path. On any disagreement with compiler facts or source code, source wins../bin/selune wiki index --rebuild), and run ./bin/selune wiki lint.Selûne extends cleanly to additional languages and third-party libraries without weakening its trust model:
plugins/language-adapters/*.adapter.json, schema schemas/selune-language-adapter.v1.schema.json):
Declare extensions, trust_tier (tier_a_compiler, tier_b_lsp_scip, tier_c_treesitter), explicit identity_mapping (logical_def_id, interface_digest, body_digest), LSP/SCIP/validator tooling, and non-upgradable Sec 8 evidence_mapping. Built-ins: moonbit, rust, typescript, python, go.plugins/library-adapters/*.adapter.json, schema schemas/selune-library-adapter.v1.schema.json):
Provide version-pinned API references (moon ide doc/.mbti, llms.txt, local stubs, SCIP, Context7 MCP) in pack.knowledge. Built-ins: moonbit-core, moonbitlang-x, threejs-r170, context7-mcp.libs/adapter/):
authoritative_commit_gate: true.prompt_injection_filter (false).untrusted: true, advisory_only: true, and source_wins_on_conflict: true../bin/selune adapter (pure MoonBit libs/adapter/):
./bin/selune adapter validate-dir plugins/language-adapters
./bin/selune adapter validate-dir plugins/library-adapters
./bin/selune adapter validate-dir adapters
./bin/selune adapter list plugins
./bin/selune adapter resolve-ext plugins .rs
scripts/selune-init.sh --target <dir> --lang <moonbit|rust|typescript|python|go> \
[--libs moonbit-core,moonbitlang-x] [--agent all|claude|codex|agy|cursor|opencode] \
[--dry-run] [--check]
Before launching multi-cell waves and before cutting any commit or release freeze:
# 1. Initialize persistent Warden log & print session-start brief
./bin/selune warden init --session "<wave-name>"
# 2. Refresh stale pkg.generated.mbti interfaces automatically (no manual loops)
./bin/selune mbti-refresh --dry-run
./bin/selune mbti-refresh
# 3. Run Warden release gate (0 CRITICAL/HIGH; add --strict to gate MEDIUM too)
./bin/selune warden gate
# 4. Run unified SIM-1 hygiene gate (Warden + MARS fresh pins + Wiki/SIM lint; add --full for Halmos prose lint)
./bin/selune hygiene
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
moonbit, agentic-platform, cli-tools, formal-verification, mcp
npx claudepluginhub charleshoskinson/selune --plugin seluneOther plugins' skills for the same job