mlb-decision-logger
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mlb-decision-logger":https://skillpi.com/zh/skills/deepskill-535342f6a6a332870a2a338a96daeda145005aa281538db65a1239fa977b97f4。安装前核对上游来源和版本:https://github.com/lyndonkl/claude。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为 MLB 球队内任意智能体向 yahoo-mlb 的决策日志(tracker/decisions-log.md)追加结构化决策条目。按权威模式验证条目,序列化来自并行智能体的并发写入,并执行周一校准流程以填充结果并更新变体计分板。用于记录决策、追加日志、记录变体结果或运行校准流程时。
介绍来源: third_party · lyndonkl · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: mlb-decision-logger
description: Appends structured decision entries to the yahoo-mlb decision log (tracker/decisions-log.md) on behalf of any agent in the MLB team. Validates entries against the authoritative schema, serializes concurrent writes from parallel agents, and runs the Monday calibration pass to fill in outcomes and update the variant scoreboard. Use when any MLB agent needs to record a decision, when the coach requests "log decision", "append to decision log", "record variant outcome", or runs the "calibration pass".MLB Decision Logger
Table of Contents
Example
Scenario: Three agents fire in a single morning brief on 2026-04-17. Each agent hands a decision payload to this skill. On Monday 2026-04-21, the coach runs the calibration pass over Friday's lineup decision.
Sequence:
mlb-lineup-optimizersubmits a start/sit decision for Junior Caminero.mlb-waiver-analystsubmits a FAAB bid on a two-start streamer.mlb-streaming-strategistsubmits a stream pickup.
Skill behavior:
- Reads the current tail of
tracker/decisions-log.md. - Auto-assigns
decision_idby counting same-day, same-type entries and incrementing (2026-04-17-lineup-01,2026-04-17-waiver-01,2026-04-17-stream-01). - Validates each payload against the schema in
context/frameworks/decision-log-format.md. - Appends entries in timestamp order, one at a time, re-reading the tail between writes.
- Returns the assigned
decision_idto the calling agent.
Monday calibration (2026-04-21):
- Reads all entries where
will_verify_on <= 2026-04-21andoutcome_recorded_onis empty. - For each entry, agent web-searches the outcome and passes result to this skill.
- Skill edits the target entry in place (only the three outcome fields) and increments the matching row in
tracker/variant-scoreboard.md. - Recomputes
tiltper agent using the advocate/critic counts over the most recent 20 verified decisions.
Worked entry appended during step 1:
### 2026-04-17T08:30:00Z | lineup | mlb-lineup-optimizer
- **decision_id:** 2026-04-17-lineup-01
- **recommendation:** START Caminero at 3B
- **signals_in:** caminero.daily_quality=78 (matchup=85, form=72, opportunity=80)
- **variants:**
- advocate -> "Start: strong matchup vs RHP, hitter-friendly park, batting 3rd"
- critic -> "Sit: 0-for-12 last 3 games, BABIP-driven regression due"
- **dialectical_synthesis:** Advocate wins -- matchup+opportunity outweigh slump. Confidence 0.72.
- **red_team_findings:**
- severity: 2, likelihood: 3, score: 6, note: "MIA rain watch", mitigation: "Check 1pm forecast"
- **confidence:** 0.72
- **will_verify_on:** 2026-04-18
- **outcome_recorded_on:**
- **outcome:**
- **variant_that_was_right:**
After Monday calibration the last three fields are filled in; the scoreboard row for mlb-lineup-optimizer increments Total decisions, Advocate correct (if 1-for-4 with an RBI counted as success), and Synthesis correct; Tilt is recomputed.
Workflow
Copy this checklist and track progress for each invocation:
Decision Logger Progress:
- [ ] Step 1: Determine mode (append vs calibrate)
- [ ] Step 2: Read current log tail
- [ ] Step 3: Validate payload against schema
- [ ] Step 4: Serialize write (append or in-place edit)
- [ ] Step 5: Update scoreboard (calibration mode only)
- [ ] Step 6: Return decision_id and confirmation
Step 1: Determine mode
Two supported modes. Exactly one fires per invocation.
- [ ]
append-- calling agent passes a complete decision payload. Skill creates a new entry. - [ ]
calibrate-- calling agent passes an existingdecision_idplus outcome fields. Skill edits that entry in place and updates the scoreboard.
See resources/methodology.md for the full decision tree.
Step 2: Read current log tail
Always re-read the log immediately before any write. This is how concurrent writes from parallel agents are serialized without a real file lock.
- [ ] Read the last ~80 lines of
tracker/decisions-log.md. - [ ] Parse the last entry's timestamp and
decision_id. - [ ] If another agent has written since this invocation started, note new
decision_idnumbers used today.
See resources/methodology.md for the full serialization protocol.
Step 3: Validate payload against schema
Check every required field. Reject (do not write) if any are missing or malformed. The authoritative schema is in context/frameworks/decision-log-format.md; resources/template.md mirrors it verbatim.
- [ ]
timestamp_iso8601is UTC ISO 8601 (YYYY-MM-DDTHH:MM:SSZ). - [ ]
decision_typein enum:lineup | waiver | stream | trade | category-plan | playoff-push | add-drop | ad-hoc. - [ ]
emitted_byis a known agent name. - [ ]
recommendationstarts with an action verb (START,SIT,ADD,DROP,BID $X,ACCEPT,COUNTER,REJECT,STREAM,HOLD). - [ ]
signals_inreferences at least one signal by name. - [ ]
variantshas bothadvocateandcriticentries (or explicitn/afor bootstrap). - [ ]
confidencein[0.00, 1.00]. - [ ]
will_verify_onis a date,end of week N, orend of season. - [ ] For
calibratemode:outcomein{happened, did not happen, partial},variant_that_was_rightin{advocate, critic, both, neither}.
Step 4: Serialize write
- [ ]
append: assigndecision_idusing format{YYYY-MM-DD}-{decision_type}-{NN}where NN islast_same_type_same_day_index + 1, zero-padded to 2 digits. Append the formatted entry plus a trailing separator line. - [ ]
calibrate: locate the target entry bydecision_id, replace only the three outcome fields, preserve everything else byte-for-byte. - [ ] Never overwrite the full file. Never reorder entries. Never edit fields other than the three outcome fields.
Step 5: Update scoreboard (calibration mode only)
- [ ] Read
tracker/variant-scoreboard.md. - [ ] Find the row for the entry's
emitted_byagent. - [ ] Increment
Total decisionsby 1. - [ ] Increment
Advocate correct,Critic correct, or both (forvariant_that_was_right = both). IncrementSynthesis correctwhen the synthesized recommendation matched reality. - [ ] Recompute
Tiltper the rules in resources/methodology.md. - [ ] Write updated table back; leave all other text unchanged.
Step 6: Return decision_id and confirmation
- [ ] Return assigned
decision_id(append) or confirmation of calibrated fields (calibrate). - [ ] If validation failed, return structured error with field name and reason; do not write.
- [ ] Validate the final output using resources/evaluators/rubric_mlb_decision_logger.json. Minimum standard: average score 3.5+, no criterion below 2.
Common Patterns
Pattern 1: Parallel agent append (morning brief)
Coach launches lineup-optimizer, waiver-analyst, and streaming-strategist in one run. Each completes its variant pair, synthesizes, and calls this skill. Skill processes them serially in arrival order, re-reading the log tail between each write, assigning unique decision_ids per type.
Pattern 2: Monday calibration pass
Coach opens the log, filters for entries where will_verify_on <= today and outcome_recorded_on is empty, and for each one: web-searches the outcome, builds the calibration payload, calls this skill in calibrate mode. Each call edits one entry and updates one scoreboard row.
Pattern 3: Trade decision (on-demand, deferred verification)
mlb-trade-analyzer fires when a trade offer arrives. The decision is REJECT, ACCEPT, or COUNTER. will_verify_on is typically end of week N or end of season because trade value plays out over weeks. Skill logs normally; the trade stays "open" on the calibration queue until its verify date.
Pattern 4: Bootstrap / ad-hoc entry
For team initialization or meta-decisions (changing a weighting, amending a framework), decision_type = ad-hoc or bootstrap, variants = n/a, variant_that_was_right = neither. Skill accepts this as a special shape.
Guardrails
-
Append only. Never rewrite the log. Never reorder entries. The only edit allowed is filling in the three outcome fields on an existing entry during calibration. Any other mutation is a bug.
-
Re-read before every write. Parallel agents share one file. Reading the tail immediately before writing is the serialization primitive. Do not cache the tail from earlier in the run.
-
Validate before writing. A malformed entry poisons downstream calibration. Reject with a structured error; do not attempt partial writes or auto-fix missing fields.
-
decision_idis deterministic. Same day, same type, sequential NN. If another agent has already used2026-04-17-lineup-01, this agent gets02. Never reuse an id. -
Outcome-editing is surgical. When filling outcome fields, replace only the three target lines. Preserve timestamps,
decision_id, recommendation, variants, synthesis, red-team, confidence, andwill_verify_onbyte-for-byte. If you have to reformat to write, you are doing it wrong. -
Scoreboard updates are idempotent per decision. Each
decision_idcontributes exactly one row increment. If a calibration call is retried, re-check whether the entry already hasoutcome_recorded_onpopulated; if so, do not double-count. -
Tilt needs sample size. Report
neutralwhenTotal decisions < 10for the agent. Only switch toadvocate+/critic+once both sample size and margin are met. See resources/methodology.md for exact thresholds. -
Agents never write to the log directly. Every MLB agent routes through this skill. If the coach finds a malformed entry not produced here, treat it as a bug and log it under
tracker/calibration-review.md.
Quick Reference
Mode inputs:
appendneeds:timestamp_iso8601,decision_type,emitted_by,recommendation,signals_in,variants (advocate + critic),dialectical_synthesis,red_team_findings,confidence,will_verify_on.calibrateneeds:decision_id,outcome_recorded_on,outcome,variant_that_was_right.
decision_id format:
{YYYY-MM-DD}-{decision_type}-{NN}
e.g., 2026-04-17-lineup-01
Tilt thresholds (per agent, over last 20 verified decisions):
| Condition | Tilt |
|---|---|
| Total < 10 verified | neutral |
| Advocate correct > Critic correct by 10 to 20 pct points | advocate+ |
| Advocate correct > Critic correct by 20+ pct points | advocate++ |
| Critic correct > Advocate correct by 10 to 20 pct points | critic+ |
| Critic correct > Advocate correct by 20+ pct points | critic++ |
| Within 10 pct points | neutral |
Files touched:
yahoo-mlb/tracker/decisions-log.md(append, or surgical edit of outcome fields)yahoo-mlb/tracker/variant-scoreboard.md(row increments, tilt recompute)yahoo-mlb/tracker/calibration-review.md(written only when high-confidence decision was wrong)
Files read:
yahoo-mlb/context/frameworks/decision-log-format.md(schema of record)yahoo-mlb/tracker/decisions-log.md(tail, for serialization and id assignment)yahoo-mlb/tracker/variant-scoreboard.md(for calibration updates)
Key resources:
- resources/template.md: The exact entry format mirroring
decision-log-format.md. - resources/methodology.md: Append protocol, calibration protocol, concurrency handling, tilt recomputation, worked sample log sequence.
- resources/evaluators/rubric_mlb_decision_logger.json: 8-criterion quality rubric.
Inputs required:
- From calling agent (append): complete decision payload as above.
- From calling agent (calibrate):
decision_idand verified outcome fields.
Outputs produced:
- Append mode: assigned
decision_id, confirmation that entry is in the log. - Calibrate mode: confirmation of which entry was updated and the scoreboard row that changed.
- On validation failure: structured error (field name, reason, offending value), no write performed.
版本历史
-
0.1
GitHub ↗
原版更新说明
## What's Changed * Improve writer skill navigation and structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/1 * Consolidate stickiness content and reduce revision to 3 passes by @lyndonkl in https://github.com/lyndonkl/claude/pull/2 * Update README.md to reflect current writer skill structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/3 * Add explicit instructions for AI agents to follow resource file workf… by @lyndonkl in https://github.com/lyndonkl/claude/pull/4 * Change analysis files from /tmp/ to project directory by @lyndonkl in https://github.com/lyndonkl/claude/pull/5 * Add five refined skills to production by @lyndonkl in https://github.com/lyndonkl/claude/pull/6 * Add causal-inference-root-cause skill and fix missing methodology files by @lyndonkl in https://github.com/lyndonkl/claude/pull/7 * Add workflow pattern to 6 completed skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/8 * Add chain-estimation and roleplay-debate skills with optimizations by @lyndonkl in https://github.com/lyndonkl/claude/pull/9 * Add 3 new skills and update writer skill workflow pattern by @lyndonkl in https://github.com/lyndonkl/claude/pull/10 * Add skills #12-13: constraint-based-creativity and data-schema-knowle… by @lyndonkl in https://github.com/lyndonkl/claude/pull/11 * Add skills #14-16: decision-matrix, decomposition-reconstruction, deliberation-debate-red-teaming by @lyndonkl in https://github.com/lyndonkl/claude/pull/12 * Add skills #17-19: design-of-experiments, dialectical-mapping-steelmanning, discovery-interviews-surveys by @lyndonkl in https://github.com/lyndonkl/claude/pull/13 * Add chef-assistant skill and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/14 * Fix README: Remove links to gitignored scratchpad files by @lyndonkl in https://github.com/lyndonkl/claude/pull/15 * Add skills #14-22: 9 new production-ready skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/16 * Add skills #20-24 and workflow pattern updates by @lyndonkl in https://github.com/lyndonkl/claude/pull/17 * Add skill #25: expected-value by @lyndonkl in https://github.com/lyndonkl/claude/pull/18 * Add skills #26-28: facilitation-patterns, financial-unit-economics, focus-timeboxing-8020 by @lyndonkl in https://github.com/lyndonkl/claude/pull/19 * Add skills #29-30: heuristics-and-checklists, hypotheticals-counterfactuals by @lyndonkl in https://github.com/lyndonkl/claude/pull/20 * Add skills #31-33: information-architecture, kill-criteria-exit-ramps, layered-reasoning by @lyndonkl in https://github.com/lyndonkl/claude/pull/21 * Add Claude Code plugin support by @lyndonkl in https://github.com/lyndonkl/claude/pull/22 * Fix plugin marketplace source path by @lyndonkl in https://github.com/lyndonkl/claude/pull/23 * Add skill #34: mapping-visualization-scaffolds by @lyndonkl in https://github.com/lyndonkl/claude/pull/24 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/25 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/26 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/27 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/28 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/29 * Add skill #59: skill-extraction by @lyndonkl in https://github.com/lyndonkl/claude/pull/30 * Add skill-creator: Transform documents into actionable skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/31 * Update skill count from 58 to 61 in README by @lyndonkl in https://github.com/lyndonkl/claude/pull/32 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/33 * Add d3-visualization skill: comprehensive D3.js implementation guide by @lyndonkl in https://github.com/lyndonkl/claude/pull/34 * Add comprehensive Superforecasting Toolkit with 4 skills and orchestr… by @lyndonkl in https://github.com/lyndonkl/claude/pull/35 * Add "Run in Smithery" badge by @gurdasnijor in https://github.com/lyndonkl/claude/pull/36 * Add Scientific Writing Toolkit with 6 skills and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/37 * Improve skill invocation rules and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/38 * Add Geometric Deep Learning skill suite and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/39 * Decompose writer skill into 4 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/40 * Add GraphRAG skill suite with 5 skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/41 * Decompose cognitive-design skill into 3 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/42 ## New Contributors * @lyndonkl made their first contribution in https://github.com/lyndonkl/claude/pull/1 * @gurdasnijor made their first contribution in https://github.com/lyndonkl/claude/pull/36 **Full Changelog**: https://github.com/lyndonkl/claude/commits/0.1
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 为 MLB 球队智能体提供决策记录、验证、并发处理和校准的完整解决方案
- 直接服务于特定领域的核心任务,实用价值高
亮点
- description 清晰完整,覆盖多种触发词变体,边界清晰
亮点
- 结构完整,包含详细的工作流、示例、常见模式和防护措施
- 文档层次清晰,步骤划分明确,信息密度高
亮点
- 详细描述了错误处理、并发处理机制和防护措施
- 参数校验规则详尽,覆盖了主要异常情况,可靠性高
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。