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.
- License 许可
- Apache-2.0
- 所属仓库
- monoes/monomind
- 最近更新
- 2026-11-10
- Stars
- ★ 23
- Forks
- 2
01 前言 Front Matter
- name
- mastermind-goals
- pick
- low
- type
- domain-skill
- description
- Mastermind goals — define, track, and visualize hierarchical goals for an org. Goals link to tasks, have progress metrics, and form a goal tree.
- default_mode
- confirm
03 SKILL.md 正文
Mastermind Goals
This skill is invoked directly via /mastermind-goals.
Inputs
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 | 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 — Load Goals State
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"
Step 2 — Execute Action
list (default)
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]
add
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
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
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"
close
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.
Step 3 — Return Output
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 <id> --task-id <card_id>"
Step 4 — Brain Write (standalone only)
If caller is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain ops.
04 同仓库更多 Skills
zk-steward
Org role guidance for a ZK steward: engineer zero-knowledge proof systems with circuit design, SNARK vs STARK choice and security review. This is zero-knowledge cryptography, not Zettelkasten note-taking.
writing-plans
Use when you have a spec or requirements for a multi-step coding task and must write an implementation plan before touching code. Produces bite-sized TDD tasks with exact file paths, code and commands for an engineer with zero context.
write-spec
Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.
write-query
Write optimized SQL for your dialect with best practices. Use when translating a natural-language data need into SQL, building a multi-CTE query with joins and aggregations, optimizing a query against a large partitioned table, or getting dialect-specific syntax for Snowflake, BigQuery, Postgres, etc.
workflow-automation
Org role guidance for workflow automation: build and maintain CI/CD definitions in GitHub Actions or equivalent: triggers, jobs, matrices, caching. Covers path filters, dependency caching, parallel jobs, timeouts and fail-fast ordering.
workflow-architect
Org role guidance for a workflow architect: map full workflow trees for systems, user journeys and agents, covering every branch and failure. Covers discovering workflows from code, handoff contracts, timeouts, recovery paths and observable state.