workflow-platform-differential-discovery-deepdive

workflow-platform-differential-discovery-deepdive is a skill for Claude Code from sisibeloved/cpython-optimize-skill. It costs 77 tokens per session (1,153 once invoked), scanned A, original, MIT.

A workflow for improving a known CPython or CinderX feature or implementation path and checking whether it improves performance. It requires behavior and integration tests before benchmark validation; TDD means writing or checking tests before changing code.

In plain words
What is it for?
Use it to modify or integrate a feature, assess missing tests, run Python unittest-based coverage, inspect JIT paths, run pyperformance benchmarks, compare results, and produce an optimization report.
Why use it?
It prevents a benchmark gain from being treated as proof that a feature is correct. It also separates functional failures from performance results.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cpython-optimize-skill plugin — 35 skills, 9 agents, 2 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sisibeloved/cpython-optimize-skill/workflow-platform-differential-discovery-deepdive
Any agent
npx skills add sisibeloved/cpython-optimize-skill --skill workflow-platform-differential-discovery-deepdive
Clone the repo
git clone --depth 1 https://github.com/sisibeloved/cpython-optimize-skill

Made for: Claude Code.

Or install cpython-optimize-skill, the plugin that ships this one along with the rest of its 35 skills, 9 agents, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workflow-platform-differential-discovery-deepdive

README.md
[![agentmods](https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/workflow-platform-differential-discovery-deepdive.svg)](https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/workflow-platform-differential-discovery-deepdive)
Your own site
<a href="https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/workflow-platform-differential-discovery-deepdive"><img src="https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/workflow-platform-differential-discovery-deepdive.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01153
Opus 5 $0.00039 $0.00576
Sonnet 5 $0.00015 $0.00231
Haiku 4.5 $0.00008 $0.00115

Measured 5d ago against content hash fddacc57433c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

workflow-platform-differential-discovery-deepdive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cpython-optimize-skill/skills/workflow-platform-differential-discovery-deepdive/SKILL.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Platform Differential Discovery Deepdive Workflow

定位

按用例深钻的端到端剧本。输入是单个用例(来自粗筛 workflow-platform-differential-discovery 的候选用例清单,或用户直指),产物是单用例证据表 + 备选优化项。与粗筛 workflow 是流水线关系但相互独立——用户也可跳过粗筛直接指一个用例深钻。

Agent 分派

阶段 对应用户流程步骤 Agent 技能 Gate
0 选例 ① 先钻哪个用例 cinderx-orchestrator 读粗筛清单或用户直指 用例已锁定,实验轴齐全
1 环境确认 cinderx-environment-verifier cinderx-env-validate 双平台环境可复用
E1 性能基线 ② 总性能数据 pyperformance-benchmark-analyst pyperformance-result-compare 差距 > 噪声带,置信区间不含 0
E2 用例画像 ③ 用例内容 + autojit 函数形状 cinderx-jit-analyst cinderx-hir-lir-analyze 函数形状与 perf 热点吻合
E3 HIR 分布 ④ HIR 分布 cinderx-jit-analyst cinderx-hir-dumpcinderx-hir-lir-analyze 差异点定位到节点级
E4 LIR + wall clock ⑤ LIR 分析,含调用数与 wall clock cinderx-jit-analyst cinderx-hir-lir-analyze wall clock 拆解与 LIR 段对齐
E5 差异点 ⑥ 差异点(bb 级或单条机器码级) cinderx-jit-analyst cinderx-hir-lir-analyze 双平台指令逐条对齐,差异序列可枚举
E6 根因下钻 ⑦ 拆解根因到 ISA/指令集/微架构/硬件 cinderx-evidence-analyst cinderx-evidence-tablecinderx-isa-microarch-compare 根因落到 ISA/微架构/硬件,证据闭环(含采样可用性探测)
E7 优化方向 ⑧ 优化方向 cinderx-evidence-analyst cinderx-evidence-table 策略 ↔ 根因一一对应
E8 穿刺(跑) ⑨ 穿刺 cinderx-orchestratorpyperformance-candidate-runner cinderx-ab-run-slotpyperformance-worker-run 隔离满足、可重复
E8 穿刺(判读) ⑨ 穿刺数据可信度 cinderx-evidence-analyst cinderx-evidence-table 收益落噪声带外,证据表签发可信度
E9 优化价值 ⑩ 备选优化项 cinderx-evidence-analyst cinderx-evidence-tablecinderx-optimization-report 收益/成本均有数据支撑

Gate

E1–E5 是证据采集(贴事实),E6–E9 是收口判读(下判断),分界线在 E6。任一阶段 Gate 不满足,停在该阶段补证据,不往后走:

  • evidence-analyst 在 E6 接手时拿到 E1–E5 证据,填入证据表前 5 段(或标记 evidence_gap 要求补),再推进 E6–E9。
  • evidence-analyst 在 E6 有权回退要求 E3–E5 补证据(如指令没对齐回到 E5)。
  • E8 拆两半:穿刺跑分(orchestrator + candidate-runner)与穿刺判读(evidence-analyst)分离,判读权归 evidence-analyst。

有了足够深层的根因(E6),才不被表面原因迷惑;有了优化方向(E7),才进入穿刺(E8);穿刺数据可信,才判定优化价值(E9),产出最终备选优化项。

Read the full file on GitHub · 38 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 38 lines · 77 tokens per session scan A fddacc57433c

Subscribe to this mod's changes

workflow-platform-differential-discovery-deepdive is a skill published in the GitHub repository sisibeloved/cpython-optimize-skill (2 stars, last pushed 7d ago), licensed MIT. It adds 77 tokens to every session and 1,153 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.