Automated summary
Manages LLM adapters per Mastermind organization: list, enable, disable, install, remove, reload, and set the default adapter through org JSON files.
Strengths
- Covers the full adapter lifecycle: list, enable, disable, install, remove, reload, set-default.
- Bootstraps the adapters file from the org's adapter_config when it does not exist yet.
- Ships a built-in registry of ten adapter types (claude-local, gemini-local, codex-local, cursor, http, acpx-local, etc.).
- Defaults to confirm mode, which limits accidental changes.
Limitations
- The reload, install, and remove sections are cut off in the provided SKILL.md, and the enable branch ends mid-comment.
- Assumes a .monomind/orgs/ directory layout and a working jq.
- Does not check that an adapter's CLI or credentials are actually available.
Use it when you need to change which LLM adapter an org runs on, or to toggle/install adapters for that org.
Don't use it to author a new adapter implementation or to debug the quality of a model's responses.
Security analysis
CautionThe skill executes bash scripts that read and write local JSON configuration files. While the actions are limited to adapter registry management and do not perform destructive or exfiltrating operations, the lack of input sanitization for org_name and package_name introduces potential path traversal or injection risk if invoked with untrusted values. This warrants a caution rating.
- •Uses shell commands and modifies local configuration files under .monomind/orgs.
- •org_name and package_name are interpolated directly into file paths and jq expressions without sanitization, which could allow path traversal or JSON injection if inputs are untrusted.
Examples
/mastermind:adapters list for org acmeSet the default adapter for org acme to gemini-local, then disable the http adapter for that org.Install the adapter package @acme/mm-adapter-openrouter for org acme and reload it so it shows up in the adapter list.name: mastermind-adapters description: Mastermind adapters — install, enable, disable, reload, and remove LLM adapter plugins per org. Supports claude-local, gemini-local, codex-local, cursor, hermes, http, and custom adapters. type: domain-skill default_mode: confirm
Mastermind Adapters
This skill is invoked by mastermind:adapters or directly via /mastermind:adapters.
Inputs
brain_context: BRAIN CONTEXT block (injected by command, or loaded below if standalone)org_name: org to manage adapters for (required)action: list | enable | disable | install | remove | reload | set-defaultadapter_type: adapter slug (e.g.claude-local,gemini-local,http) — required for most actionspackage_name: npm package name or local path (required forinstall)caller: command | master
Step 0 — Brain Load (standalone only)
If caller is not "command", load brain context following mastermind-protocol/SKILL.md Brain Load Procedure with namespace: ops.
Built-in Adapter Registry
| Type | Label | Source | Notes |
|------|-------|--------|-------|
| claude-local | Claude (local CLI) | built-in | Uses claude CLI |
| claude-opus-4-7 | Claude Opus 4.7 | built-in | High capability |
| claude-sonnet-4-6 | Claude Sonnet 4.6 | built-in | Balanced (default) |
| claude-haiku-4-5 | Claude Haiku 4.5 | built-in | Fast, low cost |
| gemini-local | Gemini (local) | built-in | Uses gemini CLI |
| codex-local | Codex (local) | built-in | Uses codex CLI |
| cursor | Cursor | built-in | Uses Cursor agent |
| hermes-local | Hermes (local) | built-in | Local Hermes LLM |
| http | HTTP Adapter | built-in | Generic HTTP endpoint |
| acpx-local | ACPX (local) | built-in | ACPX protocol |
Step 1 — Load Adapter Registry
orgFile=".monomind/orgs/${org_name}.json"
[ ! -f "$orgFile" ] && { echo "ERROR: Org '${org_name}' not found."; exit 1; }
adaptersFile=".monomind/orgs/${org_name}-adapters.json"
if [ ! -f "$adaptersFile" ]; then
# Bootstrap from org config adapter_config if present
defaultModel=$(jq -r '.run_config.ceo_adapter // "claude-sonnet-4-6"' "$orgFile")
cat > "$adaptersFile" <<EOF
{
"org": "${org_name}",
"default_adapter": "${defaultModel}",
"adapters": [
{"type":"claude-local","label":"Claude (local CLI)","source":"built-in","disabled":false,"modelsCount":3},
{"type":"gemini-local","label":"Gemini (local)","source":"built-in","disabled":false,"modelsCount":1},
{"type":"http","label":"HTTP Adapter","source":"built-in","disabled":true,"modelsCount":0}
]
}
EOF
fi
Step 2 — Execute Action
list (default)
echo "ADAPTERS — org: $org_name"
echo "──────────────────────────────────────────────────────"
printf "%-22s %-28s %-10s %-8s %s\n" "TYPE" "LABEL" "SOURCE" "MODELS" "STATUS"
echo "──────────────────────────────────────────────────────"
defaultAdap=$(jq -r '.default_adapter // "claude-sonnet-4-6"' "$adaptersFile")
jq -r --arg def "$defaultAdap" '
(.adapters // [])[] |
[.type, (.label // .type), (.source // "built-in"), (.modelsCount // 0 | tostring),
(if .disabled then "DISABLED" else "ACTIVE" end),
(if .type == $def then " ← default" else "" end)]
| @tsv
' "$adaptersFile" | while IFS=$'\t' read -r type label source models status def; do
printf "%-22s %-28s %-10s %-8s %s%s\n" "$type" "$label" "$source" "$models" "$status" "$def"
done
echo ""
echo "Default adapter: $defaultAdap"
echo "External adapters: $(jq '[(.adapters // [])[] | select(.source == "external")] | length' "$adaptersFile")"
enable / disable
action_status=$([ "$action" = "enable" ] && echo "false" || echo "true")
tmp="${adaptersFile}.tmp"
jq --arg type "$adapter_type" --argjson dis "$action_status" \
'.adapters = [(.adapters // [])[] | if .type == $type then .disabled = $dis else . end]' \
"$adaptersFile" > "$tmp" && mv "$tmp" "$adaptersFile"
# If re-enabling, also check org config adapter_config for matching roles
echo "Adapter '$adapter_type' → $([ "$action" = "enable" ] && echo 'ACTIVE' || echo 'DISABLED')"
install
Add an external adapter (npm package or local path):
[ -z "$package_name" ] && { echo "ERROR: --package-name required."; exit 1; }
[ -z "$adapter_type" ] && adapter_type=$(echo "$package_name" | sed 's/[@/].*$//' | tr '-' '_')
isLocal=false
[[ "$package_name" == /* || "$package_name" == "./"* ]] && isLocal=true
tmp="${adaptersFile}.tmp"
jq --arg type "$adapter_type" \
--arg pkg "$package_name" \
--argjson local "$isLocal" \
'.adapters = [(.adapters // [])[] | select(.type != $type)] +
[{"type":$type,"label":$pkg,"source":"external","packageName":$pkg,"isLocalPath":$local,
"disabled":false,"modelsCount":0,"installedAt":(now|todate)}]' \
"$adaptersFile" > "$tmp" && mv "$tmp" "$adaptersFile"
echo "Installed: $package_name as adapter type '$adapter_type'"
echo "NOTE: Restart the org run to activate the new adapter."
remove
[ -z "$adapter_type" ] && { echo "ERROR: --adapter-type required."; exit 1; }
# Verify it's external
src=$(jq -r --arg t "$adapter_type" '(.adapters // [])[] | select(.type == $t) | .source' "$adaptersFile" 2>/dev/null)
[ "$src" = "built-in" ] && { echo "ERROR: Cannot remove built-in adapters. Use 'disable' instead."; exit 1; }
[ -z "$src" ] && { echo "ERROR: Adapter '$adapter_type' not found."; exit 1; }
tmp="${adaptersFile}.tmp"
jq --arg type "$adapter_type" '.adapters = [(.adapters // [])[] | select(.type != $type)]' \
"$adaptersFile" > "$tmp" && mv "$tmp" "$adaptersFile"
echo "Removed adapter: $adapter_type"
set-default
[ -z "$adapter_type" ] && { echo "ERROR: --adapter-type required."; exit 1; }
tmp="${adaptersFile}.tmp"
jq --arg type "$adapter_type" '.default_adapter = $type' "$adaptersFile" > "$tmp" && mv "$tmp" "$adaptersFile"
# Sync to org run_config as well
orgTmp="${orgFile}.tmp"
jq --arg model "$adapter_type" '.run_config.ceo_adapter = $model' "$orgFile" > "$orgTmp" && mv "$orgTmp" "$orgFile"
echo "Default adapter set to: $adapter_type"
reload
Force a reload hint (marks adapter as needing restart):
tmp="${adaptersFile}.tmp"
jq --arg type "$adapter_type" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
'.adapters = [(.adapters // [])[] | if .type == $type then .last_reload = $ts else . end]' \
"$adaptersFile" > "$tmp" && mv "$tmp" "$adaptersFile"
echo "Marked adapter '$adapter_type' for reload. Restart the org run to apply."
Step 3 — Return Output
domain: ops
status: complete
action: <action>
org: <org_name>
adapter_type: <adapter_type if applicable>
Step 4 — Brain Write (standalone only)
If caller is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain ops.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/mastermind-adapters-management-mtfbwm9p' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mastermind-adapters-management-mtfbwm9p/download' --output '.skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md.part' && mv '.skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md.part' '.skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md' && test -s '.skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/mastermind-adapters' && cp -R '.skill-downloads/mastermind-adapters-management-mtfbwm9p' '.claude/skills/mastermind-adapters'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/mastermind-adapters-management-mtfbwm9p'openskills read 'mastermind-adapters-management-mtfbwm9p'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/mastermind-adapters-management-mtfbwm9p/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.