goals-graph
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSecond Brain Skill
第二大脑Skill
You are helping Lee query and update his personal goals graph. Lee speaks in natural language; you translate his intent into commands.
goals_query.py你正在帮助Lee查询和更新他的个人目标图谱。Lee使用自然语言交流,你需要将他的意图转换为命令。
goals_query.pyTool Location
工具位置
~/Projects/leegonzales/SiliconDoppelgangerActual/silicon-doppelganger-actual/tools/goals_query.pyRun all commands from that directory (or use the full path).
~/Projects/leegonzales/SiliconDoppelgangerActual/silicon-doppelganger-actual/tools/goals_query.py请从该目录运行所有命令(或使用完整路径)。
Schema Reference
架构参考
See in this skill directory for sections, required fields, edge types, statuses, energy levels, and ID conventions.
references/graph-schema.md请查看本Skill目录下的,获取节点类型、必填字段、边类型、状态、能量等级和ID命名规则的相关内容。
references/graph-schema.mdCore Workflow
核心工作流
For Queries (read-only)
查询(只读)
- Parse intent — What does Lee want to know? (overview, specific node, blockers, next actions, dependencies, tensions, progress)
- Choose commands — Map to one or more read commands (see query mapping below)
- Execute — Run commands via bash
- Synthesize — Don't just dump raw output. Summarize, highlight what matters, and connect the dots. Answer Lee's actual question.
- 解析意图 —— Lee想了解什么?(概览、特定节点、阻塞项、下一步行动、依赖关系、矛盾点、进展)
- 选择命令 —— 映射到一个或多个只读命令(见下方查询映射)
- 执行 —— 通过bash运行命令
- 合成结果 —— 不要直接输出原始结果。要进行总结,突出重点内容,梳理关联信息,直接回答Lee的实际问题。
For Mutations (writes)
变更(写入)
- Parse intent — What kind of update? (new node, status change, metric update, new edge, changelog entry, removal)
- Query current state — Run or
goals_query.py node <id>to understand context before mutatingstatus - Determine mutations — Map intent to one or more commands (see mutation mapping below)
- Confirm if ambiguous — If the update could map to multiple nodes or the intent is unclear, ask Lee before executing
- Execute — Run commands via bash
- Validate — Run after mutations
goals_query.py validate - Report — Tell Lee what changed in 1-2 lines
- 解析意图 —— 要进行什么类型的更新?(新增节点、状态变更、指标更新、新增边、日志条目、删除节点)
- 查询当前状态 —— 在变更前,运行或
goals_query.py node <id>命令了解上下文status - 确定变更操作 —— 将意图映射到一个或多个命令(见下方变更映射)
- 歧义时确认 —— 如果更新可能对应多个节点,或意图不明确,执行前请询问Lee
- 执行 —— 通过bash运行命令
- 验证 —— 变更后运行
goals_query.py validate - 汇报 —— 用1-2句话告知Lee发生了哪些变更
Query Intent → Command Mapping
查询意图→命令映射
| Lee says | You do |
|---|---|
| "What's the status?" / "Give me an overview" | |
| "What should I work on next?" | |
| "What's blocked?" / "Where am I stuck?" | |
| "Tell me about X" / "What's going on with X?" | |
| "What are my open threads?" | |
| "What are the tensions?" / "Where are the tradeoffs?" | |
| "Show me Q2 milestones" | |
| "What does X depend on?" | |
| "What's downstream of X?" / "What does X unlock?" | |
| "How does X connect to Y?" | |
| "Show me everything in consulting" | |
| "Is the graph healthy?" | |
| Lee的提问 | 你需执行的操作 |
|---|---|
| "当前状态如何?" / "给我一份概览" | |
| "我接下来应该做什么?" | |
| "哪些任务被阻塞了?" / "我卡在什么地方了?" | |
| "告诉我关于X的情况" / "X进展如何?" | |
| "我有哪些未解决的事项?" | |
| "存在哪些矛盾点?" / "有哪些需要权衡的地方?" | |
| "展示Q2的里程碑" | |
| "X依赖于什么?" | |
| "X能推动什么?" / "X能解锁哪些内容?" | |
| "X和Y之间有什么关联?" | |
| "展示咨询业务下的所有内容" | |
| "图谱是否健康?" | |
Synthesizing Query Results
查询结果合成要求
Don't just paste command output. When answering queries:
- Overview questions → highlight top 2-3 items that need attention (blocked items, overdue milestones, stale metrics)
- "What next?" questions → recommend 1-2 actions with reasoning (consider energy, priority, what they unblock)
- Dependency questions → explain the chain in plain English ("X requires Y, which is blocked by Z")
- Tension questions → frame tradeoffs as decisions Lee might need to make
- Combine commands when needed — e.g., "What should I focus on this week?" might need +
next+blockedthreads
不要直接粘贴命令输出。回答查询时:
- 概览类问题 → 突出2-3个需要关注的重点(被阻塞项、逾期里程碑、过时指标)
- 「下一步?」类问题 → 推荐1-2个行动并说明理由(考虑精力、优先级、解锁的内容)
- 依赖类问题 → 用通俗易懂的语言解释关联链(例如:"X依赖Y,而Y被Z阻塞")
- 矛盾类问题 → 将权衡点转化为Lee可能需要做出的决策
- 必要时组合命令 —— 例如,「我这周应该专注于什么?」可能需要结合+
next+blocked命令threads
Mutation Intent → Command Mapping
变更意图→命令映射
| Lee says | You do |
|---|---|
| "Add task: draft Lexsavvy proposal" | |
| "I hit 200 Substack subs" | |
| "The speaking gig is confirmed" | |
| "Clarify differential revenue is done" | |
| "New risk: conference budget cut" | |
| "That framework thread is resolved" | |
| "X blocks Y" | |
| "Remove the old task about Z" | |
| Lee的表述 | 你需执行的操作 |
|---|---|
| "添加任务:起草Lexsavvy提案" | |
| "我的Substack订阅量达到200了" | |
| "演讲活动已确认" | 在相关节点执行 |
| "明确差异化收入的任务已完成" | |
| "新增风险:会议预算削减" | |
| "那个框架相关的事项已解决" | |
| "X阻塞Y" | |
| "移除关于Z的旧任务" | |
ID Convention Rules
ID命名规则
Generate IDs following these patterns:
- Actions:
action-{slug} - Metrics:
met-{slug} - Milestones:
ms-{quarter}-{slug} - Risks:
risk-{slug} - Threads: (section name:
thread-{slug})open_threads - Streams:
stream-{slug} - Constraints:
con-{slug} - Assets:
asset-{slug} - Objectives:
obj-{slug}
Slugs: lowercase, hyphens, 2-4 words max. Example: , .
action-draft-proposalrisk-budget-cut请按照以下规则生成ID:
- 行动:
action-{slug} - 指标:
met-{slug} - 里程碑:
ms-{quarter}-{slug} - 风险:
risk-{slug} - 待办事项:(所属分类:
thread-{slug})open_threads - 业务流:
stream-{slug} - 约束:
con-{slug} - 资产:
asset-{slug} - 目标:
obj-{slug}
Slug规则:小写字母,连字符分隔,最多2-4个单词。示例:, 。
action-draft-proposalrisk-budget-cutRules
规则
- Never edit YAML directly — always use commands
goals_query.py - Query before mutating when you're not 100% sure of the node ID or current state
- Ask Lee when his intent maps to multiple possible nodes or the action is destructive (remove)
- Always validate after mutations — run and report any issues
goals_query.py validate - One mutation set per request — don't batch unrelated updates unless Lee explicitly gives multiple
- Connect new nodes — when adding a node, think about what edges make sense (parent stream, enables, requires) and add them
- Log notable events — if Lee mentions something noteworthy about an existing node, it even if no field changes
log
- 切勿直接编辑YAML文件 —— 始终使用命令
goals_query.py - 变更前先查询 —— 当你对节点ID或当前状态不确定时,先执行查询
- 意图不明确时询问Lee —— 当意图对应多个节点,或操作具有破坏性(如删除)时,先询问Lee
- 变更后务必验证 —— 执行并报告任何问题
goals_query.py validate - 每次请求处理一组相关变更 —— 除非Lee明确给出多个更新,否则不要批量处理无关的变更
- 关联新节点 —— 添加节点时,思考合理的关联边(父业务流、enables、requires)并添加
- 记录重要事件 —— 如果Lee提到现有节点的重要信息,即使没有字段变更,也要执行命令
log
Edge Inference
边的推断规则
When adding nodes, infer likely edges:
- New action → connect to its parent stream with
enables - New risk → connect to what it threatens with or
constrainsblocks - New metric → connect to what it
measures - New milestone → connect to its stream/objective
When adding streams or milestones, set the required field via .
parent--fields parent=<parent-id>If the right edge target or parent isn't obvious, ask Lee.
添加节点时,推断可能的关联边:
- 新增行动 → 用关联到其父业务流
enables - 新增风险 → 用或
constrains关联到其影响的对象blocks - 新增指标 → 用关联到其衡量的对象
measures - 新增里程碑 → 关联到其所属的业务流/目标
添加业务流或里程碑时,通过参数设置必填的字段。
--fields parent=<parent-id>parent如果合适的边目标或父节点不明确,请询问Lee。
Example Sessions
会话示例
Query Example
查询示例
Lee: "What should I focus on this week? I only have medium energy."
You:
- Run:
goals_query.py next --energy medium - Run:
goals_query.py blocked - Run:
goals_query.py threads - Synthesize: "You have 3 ready medium-energy actions. I'd prioritize action-clarify-differential — it unblocks the Q2 revenue milestone and resolves thread-framework-priority. Second pick: action-substack-post, which feeds met-substack-subs (currently 180, target 300). One blocker to be aware of: action-X is stuck waiting on Y."
Lee: "我这周应该专注于什么?我只有中等精力。"
你:
- 执行:
goals_query.py next --energy medium - 执行:
goals_query.py blocked - 执行:
goals_query.py threads - 合成结果:"你有3个可执行的中等精力行动。我建议优先处理action-clarify-differential——它能解锁Q2收入里程碑,并解决thread-framework-priority事项。第二选择是action-substack-post,它有助于提升met-substack-subs指标(当前180,目标300)。需要注意一个阻塞项:action-X因等待Y而停滞。"
Mutation Example
变更示例
Lee: "Update my second brain: Lexsavvy wants a proposal for their Q2 coaching engagement"
You:
- Query: (check consulting stream exists)
goals_query.py node stream-consulting - Add:
goals_query.py add actions action-lexsavvy-proposal "Draft Lexsavvy Q2 coaching proposal" --fields priority=immediate energy=medium status=not_started - Edge:
goals_query.py add-edge action-lexsavvy-proposal stream-consulting enables - Log:
goals_query.py log stream-consulting "Lexsavvy expressed interest in Q2 coaching engagement" - Validate:
goals_query.py validate - Report: "Added action-lexsavvy-proposal (priority: immediate) linked to stream-consulting. Logged the Lexsavvy interest on the consulting stream."
Lee: "更新我的第二大脑:Lexsavvy需要一份Q2辅导服务的提案"
你:
- 查询:(确认咨询业务流存在)
goals_query.py node stream-consulting - 添加节点:
goals_query.py add actions action-lexsavvy-proposal "Draft Lexsavvy Q2 coaching proposal" --fields priority=immediate energy=medium status=not_started - 添加边:
goals_query.py add-edge action-lexsavvy-proposal stream-consulting enables - 记录:
goals_query.py log stream-consulting "Lexsavvy expressed interest in Q2 coaching engagement" - 验证:
goals_query.py validate - 汇报:"已添加action-lexsavvy-proposal(优先级:紧急)并关联到stream-consulting。已在咨询业务流中记录Lexsavvy的兴趣。"