mastermind-agents
Mastermind agents — list, inspect, hire, and remove agents in an org, and pause or resume the org. Shows each role, its adapter config, and the org's live runtime status.
- License 许可
- Apache-2.0
- 所属仓库
- monoes/monomind
- 最近更新
- 2026-11-14
- Stars
- ★ 23
- Forks
- 2
01 前言 Front Matter
- name
- mastermind-agents
- pick
- low
- type
- domain-skill
- description
- Mastermind agents — list, inspect, hire, and remove agents in an org, and pause or resume the org. Shows each role, its adapter config, and the org's live runtime status.
- default_mode
- confirm
03 SKILL.md 正文
Mastermind Agents
This skill is invoked directly via /mastermind-agents.
Inputs
brain_context: BRAIN CONTEXT block (injected by command, or loaded below if standalone)org_name: org to inspect (optional — lists all orgs if omitted)action: list | hire | pause | resume | remove | inspectagent_id: role id or agent slug (required for inspect/pause/resume/remove)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.
Step 1 — Resolve Org
If org_name is provided, load .monomind/orgs/<org_name>.json. Otherwise list all orgs:
ls .monomind/orgs/*.json 2>/dev/null | grep -vE -- '-approvals|-state|-activity|-goals|-routines|-projects|-members|-issues|-workspaces|-worktrees|-environments|-plugins|-adapters|-bootstrap|-threads|-budgets|-project-workspaces|-approval-comments' | xargs -I{} basename {} .json
If no orgs exist, print: "No orgs found. Run /mastermind:createorg to define one."
Step 2 — Execute Action
list (default)
Display all agents in the org, then the org's live runtime status:
orgFile=".monomind/orgs/${org_name}.json"
jq -r '(.roles // [])[] | "• [\(.id)] \(.title) type=\(.type // "specialist") reports_to=\(.reports_to // "none")"' "$orgFile"
# Live runtime status (running/stopped/crashed, current run) — per-role
# activity for a run is in `monomind org report <org>`.
echo ""
echo "RUNTIME STATUS:"
npx -y monomind@latest org status "$org_name" 2>/dev/null || echo " (not available — is monomind installed?)"
Render as table:
AGENTS — org: <org_name>
──────────────────────────────────────────────────────
ID TITLE TYPE REPORTS TO
boss CEO / Boss boss none
content-writer Content Writer specialist boss
reviewer Content Reviewer reviewer boss
...
inspect
Show the full role config (responsibilities, adapter config) and who it reports to / who reports to it:
jq --arg id "$agent_id" '(.roles // [])[] | select(.id == $id)' "$orgFile"
jq -r --arg id "$agent_id" '(.roles // [])[] | select(.reports_to == $id) | " direct report: \(.id)"' "$orgFile"
hire
Add a new role to the org. Prompt the user for:
id(slug, e.g.seo-lead),title(display name),role_type→ the role'stype(specialist, or a domain synonym such asreviewer/researcher— free text; onlybossis special, and an org has exactly one root),responsibilities(comma-separated),reports_to(an existing role id — a hired role is never the root)
Write the Org Runtime role shape (RoleSchema in packages/@monomind/cli/src/orgrt/types.ts): type, never the legacy agent_type key — a role carrying agent_type makes the whole config read as the retired v1 format.
Adapter/model selection — present this picker:
ADAPTER / MODEL
───────────────
Available Claude models:
1. newest Sonnet (default) → balanced capability + speed (Recommended; not pinned, resolved when the org runs: claude-sonnet-5-5 today)
2. claude-opus-5-5 → high capability, slower
3. claude-haiku-5-5 → fastest, lowest cost
Enter choice [1]:
Set adapter_config.model only when the user picks 2 or 3 (a pin goes stale, and org validate warns when it is older than the newest in its family); choice 1 writes no model, so the role runs the newest Sonnet whenever the org runs. monomind agent models claude lists the current ids.
Append to .monomind/orgs/<org_name>.json roles array using jq:
# model from adapter picker (choice 1 / empty = unpinned: the newest Sonnet, resolved when the org runs)
adapter_model="${selected_model:-}"
tmp="${orgFile}.tmp"
jq --arg id "$agent_id" \
--arg title "$title" \
--arg type "${role_type:-specialist}" \
--arg reports_to "$reports_to" \
--arg model "$adapter_model" \
--argjson resp "$(echo "$responsibilities" | jq -R 'split(",") | map(ltrimstr(" "))')" \
'.roles += [{"id":$id,"title":$title,"type":$type,
"responsibilities":$resp,
"reports_to":$reports_to,
"adapter_config":({"max_tokens":8192} + (if $model != "" then {"model":$model} else {} end))}]' \
"$orgFile" > "$tmp" && mv "$tmp" "$orgFile"
echo "Hired: $title (${role_type:-specialist}) → adapter: ${adapter_model:-newest Sonnet (resolved when the org runs)}"
npx -y monomind@latest org validate "$org_name"
pause / resume
The Org Runtime pauses and resumes a whole org, not a single role — message delivery is suspended while it is paused:
npx -y monomind@latest org pause "$org_name" # or: org resume "$org_name"
To take one role out of the org, use remove.
remove
Confirm with user, then remove role from org config:
tmp="${orgFile}.tmp"
jq --arg id "$agent_id" '.roles = [(.roles // [])[] | select(.id != $id)]' \
"$orgFile" > "$tmp" && mv "$tmp" "$orgFile"
Step 3 — Return Output
domain: ops
status: complete
action: <action>
org: <org_name>
agents_count: <N>
Print summary and any suggested next actions (e.g. "Check live status with monomind org status <org_name>").
Step 4 — Brain Write (standalone only)
If caller is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain ops.
04 同仓库更多 Skills
isms-audit-expert
Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.
experiment-designer
Use when planning a product A/B or multivariate test: If/Then/Because hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.
digest
Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.
design-critique
Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.
deployment-pipeline-design
Use when architecting a multi-stage CI/CD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.