No slash command · from sema
Mints new content-addressed sema patterns with validation, dependency wiring, DAG checks, and Merkle hashing. For crystallizing stable concepts into the vocabulary.
Ships in sema. 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.
Minting creates a new content-addressed pattern in the sema vocabulary. The definition IS the identity — hash the content, get the name. Change one invariant, get a different hash.
1. Check that minting is enabled. sema_mint is exposed by default. If it's missing from your available MCP tools, the server has been explicitly configured to hide it. Tell the user:
"Minting isn't available on this server — it's disabled via
SEMA_DISABLE_MINT=true. Unset that env var and restart to re-enable."
2. Make sure the active DB is writable. The bundled vocabulary is read-only — minting into it will be blocked with an error. If the user wants to mint, they need a project DB:
sema build my-project.db --preset full
sema use my-project.db
Or use sema_use(db_path="...") via MCP.
3. Offer the UI. Ask: "Want to open the Sema UI to watch the patterns appear as they get minted?" If yes, invoke the sema-ui skill. The UI refreshes every 5 seconds locally, so each new pattern appears within a few seconds of being minted.
Minting is rare. Before minting, search at least three different glosses. Only mint when:
sema_mint(pattern_json) runs a full validation + hash + store pipeline:
{{placeholder}} in text must be declared in dependencies; every declared dependency must be usedsema_id, sema_ref, sema_stubIf any step fails, the pattern is rejected with an error message. No partial writes.
{
"handle": "MyPattern",
"mechanism": "How it works, referencing {{dependency_key}} placeholders",
"gloss": "One-line summary",
"_meta": {
"path": ["Mind", "Reasoning"],
"ring": 1,
"tier": 2
}
}
| Field | Rules |
|---|---|
handle | PascalCase, alphanumeric, 1-50 chars. Must be unique in the vocabulary |
mechanism | How the pattern works. Must reference all dependencies via {{snake_case_key}} |
gloss | One-line summary of what the pattern IS |
_meta.path | Taxonomy path from layer to category, e.g. ["Mind", "Reasoning"] |
_meta.ring | 0 (core), 1 (extended), 2 (experimental) |
_meta.tier | 0 (primitive), 1 (ironclad), 2 (honesty-dependent), 3 (experimental) |
_meta.caution | Optional. One-sentence warning about elevated risk. Add only if the risk isn't already obvious from the pattern's invariants or failure_modes, and adding it promotes safer use. |
caution flagAdd _meta.caution if:
Skip the flag if:
A pattern that only describes a process still enables evasion, manipulation or targeting when its description doubles as a recipe for doing so; one that only describes a judgment error counts as purely cognitive.
The caution sits in _meta (unhashed), so it can be revised without changing the pattern's identity.
| Layer | Valid second segment |
|---|---|
| Infrastructure | Primitives, Data Structures, Safety, Verification |
| Physics | Dynamics, Primitives, Time |
| Mind | Inference, Memory, Reasoning, Strategy |
| Society | Coordination, Economics, Governance, Protocols, Roles |
| Field | What | Format |
|---|---|---|
invariants | Conditions that must always hold | List of strings |
preconditions | What must be true before applying | List of strings |
postconditions | What is guaranteed after applying | List of strings |
failure_modes | Known ways the pattern can fail | List of strings |
signature | Type signature | List in Verb(Noun) format |
parameters | Configurable knobs | List of {name, type, range, description} |
Never use empty lists [] or empty objects {}. Omit the field instead.
Dependencies are the structural wiring between patterns. Four categories:
| Category | Meaning |
|---|---|
references | Pattern mentions or builds on another |
composes_with | Pattern combines with another at runtime |
accepts | Input types the pattern consumes |
yields | Output types the pattern produces |
Each key must be snake_case and used as a {{placeholder}} in mechanism, invariants, preconditions, postconditions, or failure_modes.
"dependencies": {
"references": {
"think": "sema:Think#mh:SHA-256:e1bd..."
},
"composes_with": {
"reflexion": "sema:Reflexion#mh:SHA-256:51b9..."
},
"accepts": {
"context": "sema:Context#mh:SHA-256:510a..."
},
"yields": {
"datum": "sema:Datum#mh:SHA-256:31cf..."
}
}
{{key}} used in text fields MUST be declared in dependenciesBefore minting, resolve the full sema_id of each dependency:
sema_resolve("Think") → sema_id: "sema:Think#mh:SHA-256:e1bd..."
Use the full sema_id as the dependency value. sema_validate and sema_mint both enforce the full-hash dependency format.
Only semantic fields are hashed — metadata and computed fields are excluded:
Hashed: mechanism, gloss, invariants, preconditions, postconditions, failure_modes, dependencies, signature, parameters, data_schema, extends
NOT hashed: handle, _meta, sema_id, sema_ref, sema_stub
This means: rename a pattern (change handle) and the hash stays the same. Change one invariant and you get a different hash. Same semantic content = same identity, guaranteed.
extends pins one exact parent Sema ID. Do not replace it merely because a
newer card has the same parent handle; retargeting is a reviewed semantic edit.
The current workspace keeps one active version per handle and therefore rejects
a parent edit that would strand a child. Stage reviewed children and use
sema apply --retarget-extends; the option changes staged cards only.
Pre-0.4 cards using derived_from remain readable and hash-verifiable, but the
legacy field is not reinterpreted as IS_A. Migrating it to extends is an
explicit semantic edit; new specialization claims must use extends.
The hash uses a Merkle tree: strings are NFC-normalized, dicts are sorted by key, lists preserve order. The result is a SHA-256 digest truncated to a 4-char stub for human readability.
sema_search with different phrasings. If >80% similar exists, don't mint.sema_resolve each pattern you'll reference. Get full sema_id values.sema_validate with your draft JSON. Fix all errors before minting.{{key}} in text has a dependency; every dependency appears in text.[] or {}.// 1. Search first
sema_search({ query: "pre-mortem risk analysis" })
// Nothing close enough — proceed
// 2. Resolve dependencies
sema_resolve({ handle: "Strategy" }) // → sema_id: "sema:Strategy#mh:SHA-256:47a4..."
sema_resolve({ handle: "Risk" }) // → sema_id: "sema:Risk#mh:SHA-256:8b2c..."
// 3. Validate draft
sema_validate({ pattern_json: JSON.stringify({
"handle": "PreMortem",
"mechanism": "Before committing to a {{strategy}}, assume it has already failed. Work backward to identify the most likely {{risk}} factors that caused the failure. Each identified risk becomes an input to mitigation planning.",
"gloss": "Assume failure, then find what caused it",
"invariants": [
"Must be applied BEFORE commitment, not after",
"Every identified {{risk}} must have a corresponding mitigation"
],
"failure_modes": [
"Anchoring: team fixates on one failure mode and misses others",
"Premature closure: stopping after 2-3 obvious {{risk}} factors"
],
"_meta": {
"path": ["Mind", "Strategy"],
"ring": 1,
"tier": 2
},
"dependencies": {
"references": {
"strategy": "sema:Strategy#mh:SHA-256:47a4...",
"risk": "sema:Risk#mh:SHA-256:8b2c..."
}
}
}) })
// 4. Mint
sema_mint({ pattern_json: "..." })
// → { success: true, handle: "PreMortem", sema_ref: "PreMortem#e4c2", sema_id: "sema:PreMortem#mh:SHA-256:e4c2..." }
| Error | Cause | Fix |
|---|---|---|
| Missing required field | handle or mechanism absent | Add both |
Unknown placeholder {{key}} | Used in text but not in dependencies | Add to dependencies |
Unused dependency key | In dependencies but not used in text | Remove from dependencies or use it |
| Cycle detected | A→B→C→A | Restructure to break cycle |
| Invalid handle | Not PascalCase or has special chars | Rename to PascalCase |
Empty list [] | Field present but empty | Omit the field entirely |
| Layer violation | Physics depends on Society | Reverse direction or reclassify |
| Dangling reference | Dependency target not in vocabulary | Mint the target first |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sema, vocabulary-minting, content-addressed, pattern-creation
Generated from the plugin's indexed repository (emergent-wisdom/sema) — no native marketplace selected
npx claudepluginhub p/emergent-wisdom-sema4 skills in this plugin
/sema-seedSeed the sema vocabulary by exploring random words. Pull a word from the
system dictionary, think about it through the sema lens without forcing
it into a pattern, then mint only if a genuinely useful and distinct
pattern emerges. Use when the user asks to "seed", "expand", "grow",
or "explore new patterns for" the vocabulary.
/sema-uiLaunch the Sema local view at localhost:3030 — pattern browser and a 3D
graph that grows while you mint. Use when the user asks to "open the UI",
"show the graph", or wants to watch a vocabulary being built.
/sema-usageContent-addressed vocabulary protocol via the sema MCP server.
Use when reasoning through a problem that a named pattern could structure,
such as a decision, design, diagnosis, forecast or disagreement, and when
working with shared vocabulary: searching, resolving, minting, and
verifying meaning across agents and conversations.
Other plugins' skills for the same job