一键导入
mastermind-goals
Mastermind goals — define, track, and visualize hierarchical goals for an org. Goals link to tasks, have progress metrics, and form a goal tree.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mastermind goals — define, track, and visualize hierarchical goals for an org. Goals link to tasks, have progress metrics, and form a goal tree.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | mastermind-goals |
| description | Mastermind goals — define, track, and visualize hierarchical goals for an org. Goals link to tasks, have progress metrics, and form a goal tree. |
| type | domain-skill |
| default_mode | confirm |
This skill is invoked by mastermind:goals or directly via /mastermind:goals.
brain_context: BRAIN CONTEXT blockorg_name: org whose goals to manageaction: list | add | update | link | closegoal_title: title for addgoal_id: slug for update/link/closeparent_goal: parent goal slug (for hierarchy)status: active | achieved | paused | cancelledmetric: success metric description (e.g. "100 blog posts published")caller: command | masterIf caller is not "command", load brain context following mastermind-protocol/SKILL.md Brain Load Procedure with namespace: ops.
Goals are stored in .monomind/orgs/<org_name>-goals.json. Create if missing:
goalsFile=".monomind/orgs/${org_name}-goals.json"
[ ! -f "$goalsFile" ] && echo '{"goals":[]}' > "$goalsFile"
Render goal tree with progress metrics. Goals without a parent are root goals; child goals are indented:
jq -r '
def tree(gs; pid):
gs | map(select(.parent == pid)) | .[] |
(" " * (.depth // 0)) + "[\(.id)] \(.title) [\(.status // "active")] \(.metric // "")" ,
tree(gs; .id);
.goals | tree(.; null)
' "$goalsFile" 2>/dev/null || jq -r '(.goals // [])[] | "[\(.id)] \(.title) [\(.status // "active")]"' "$goalsFile"
Render as:
GOALS — org: <org_name>
──────────────────────────────────────
[grow-audience] Grow audience to 10k followers [active]
[content-output] Publish 3 posts/week [active] metric: 3 posts/week
[blog-drafts] 5 draft articles in pipeline [active]
[improve-seo] Rank top 10 for target keywords [active]
goal_slug=$(echo "$goal_title" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | tr -s '-')
tmp="${goalsFile}.tmp"
jq --arg id "$goal_slug" \
--arg title "$goal_title" \
--arg parent "${parent_goal:-}" \
--arg status "active" \
--arg metric "${metric:-}" \
--arg created_at "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
'.goals += [{"id":$id,"title":$title,"parent":($parent|if .=="" then null else . end),"status":$status,"metric":$metric,"created_at":$created_at,"tasks":[]}]' \
"$goalsFile" > "$tmp" && mv "$tmp" "$goalsFile"
echo "Goal added: $goal_slug"
Emit org:goal:created event to dashboard.
Update goal status or metric:
tmp="${goalsFile}.tmp"
jq --arg id "$goal_id" \
--arg status "${status:-}" \
--arg metric "${metric:-}" \
'.goals = [(.goals // [])[] | if .id == $id then
(if $status != "" then .status = $status else . end) |
(if $metric != "" then .metric = $metric else . end) |
(.updated_at = (now|todate))
else . end]' \
"$goalsFile" > "$tmp" && mv "$tmp" "$goalsFile"
Link a task id to a goal (append to goal's tasks array):
tmp="${goalsFile}.tmp"
jq --arg id "$goal_id" --arg task "$task_id" \
'.goals = [(.goals // [])[] | if .id == $id then .tasks += [$task] else . end]' \
"$goalsFile" > "$tmp" && mv "$tmp" "$goalsFile"
Mark goal as achieved and timestamp:
tmp="${goalsFile}.tmp"
jq --arg id "$goal_id" \
'.goals = [(.goals // [])[] | if .id == $id then .status = "achieved" | .achieved_at = (now|todate) else . end]' \
"$goalsFile" > "$tmp" && mv "$tmp" "$goalsFile"
Emit org:goal:achieved event.
domain: ops
status: complete
action: <action>
org: <org_name>
goal_id: <goal_id if applicable>
goals_file: .monomind/orgs/<org_name>-goals.json
Suggest next: "Link tasks to this goal with /mastermind:tasks link or /mastermind:goals link --goal-id --task-id <card_id>"
If caller is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain ops.
Tech Port — deep-analyzes a foreign project, reviews the current monomind target to avoid conflicts and duplication, produces a scored port plan with mono-branded naming, and executes approved ports with full brand normalization.
Mastermind skills — list, sync, and map skills available to org agents. Scans .claude/skills/ directory and shows which roles have access to which skill domains.
Mastermind access — manage org membership roles (owner/admin/operator/viewer), granular permission grants, invite tokens, and pending join requests. Controls who can do what inside an org.
Mastermind activity — full activity feed for an org with event-type filtering, actor lookups, and entity name resolution. Fetches up to 200 recent events across issue, project, goal, agent, and routine entity types. Mirrors Activity.tsx.
Mastermind adapter-manager — global instance-level adapter catalog. Lists all built-in and npm-installed adapters, enables/disables them in menus, reinstalls from npm to pick up updates, adds custom HTTP adapters, and removes custom ones. Complements mastermind:adapters (per-org) with the global registry. Mirrors AdapterManager.tsx.
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.