Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

idea-mining-loop

БесплатноЗапускает вложенные скриптыНе проверен

Run the 8-step idea-mining loop (probe, free a fixed parameter, exact/SAT synthesis, spot an anomaly, algebraic root cause, control experiment, real-system…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

idea-mining-loop

Reverse-engineered from how real results were found: an idea is not chosen, it is what survives. The loop turns "numbers look odd" into "theorem + bound", and it is designed to let most candidates die cheaply.

Worked, runnable example (public textbook fact, Gold exponents): python3 skills/idea-mining-loop/scripts/toy_mining_demo.py. It shows an honest Gate-B failure (even n), an anomaly, a naive hypothesis killed by a control experiment, a real-cost metric, and a matching lower bound.

When to use / not use

Use: a performance/complexity bottleneck you can compute in a few lines; 1–2 intuitive attempts already stalled; you suspect a design constant (modulus, base, radix, ordering, round count, chunk size, hash count, folding factor) was fixed by habit rather than proven optimal. Do not use when you already have a precise theorem target — just prove it.

Pre-gate 0 — security-bearing object or computational substrate? (5 min)

Write one sentence: "The object I want to compress/restructure is ___; it is / is not part of the scheme's security definition, because ___."

  • Security-bearing (public key map, trapdoor/sampler output distribution, anything the adversary sees and must look random): exclude structurally. Any exploitable structure you find there is a cryptanalytic result (an attack), not a free optimisation. History: extra algebraic structure on public maps / trapdoors is the usual source of breaks.
  • Substrate (field arithmetic, key-switching bookkeeping, packing/transform scheduling, NTT layout, OT/OKVS plumbing): allowed — but passing this gate is necessary, not sufficient. Step 6 is still mandatory. If you cannot write the sentence, the target is not specific enough: go back to Step 0.

The steps (every step writes a dated note notes/<slug>_<YYYY-MM-DD>.md; never overwrite old notes)

step do time box output
0 Probe target State the bottleneck as a number computable in a few lines + baseline value + success criterion. Bad: "bootstrapping is slow". Good: "number of non-linear multiplications to evaluate map M on domain D; baseline 40". 5 min probe_target note
1 Cheap probes One ≤50-line offline script per candidate direction; answers only "is there any hope in principle?". Kill if the small-scale probe cannot approach the target, or the gain is dwarfed by overhead. Keep negative results. ≤30 min/direction <direction>_probe note (also for dead ones)
2 Representation tricks Read neighbouring work asking "what did they turn from FIXED into a FREE variable?" — one line per paper. 1–2 h representation_tricks note
Gate A Name the parameter that is fixed by history/engineering default, not by proof. Cannot name one → back to 2, or the direction has no minable freedom. line in IDEAS.md
3 Parametrise + sweep Make it a CLI parameter; sweep a range deliberately wider than intuition; cheap proxy metric first; structured output (JSON/CSV), not logs. ≤1 h <param>_planner.py + results/<param>_sweep/
4 Exact synthesis On survivors, let a solver (SAT/SMT/ILP/exhaustive search) find the true optimum (min terms, min depth, min mults, min rounds). Per-call timeout ≤5 min. Re-verify every solver model with independent code. ≤2 h table: candidate → optimum → re-verified?
Gate B Look for an outlier — "better out of proportion, not explained by the other candidates" — not the best value. Smooth monotone curve → record "no anomaly", return to Step 2. IDEAS.md verdict
5 Algebraic root cause Test which algebraic relation the outlier satisfies (order, characteristic polynomial, divisibility, subgroup/coset, self-map of the support, fixed points). Target: one provable/refutable sentence "anomaly ⟺ property P". Keep the Sage/Wolfram code. ≤1 h algebraic_root_cause note + code
6 Control experiment (never skip) Build a candidate that shares the naive explanation's surface feature but lacks property P (and vice versa). Anomaly must vanish/appear accordingly. If not → P is wrong/incomplete, back to 5. ≤30 min ## Control experiment section of the Step-5 note
7 Real-system validation Wall-clock in the real library/protocol, baseline vs candidate vs a control candidate, same flags/threads/machine, interleaved runs, ≥3 repeats (median + spread). Report component and end-to-end (Amdahl), absolute and relative. ½ day results/<slug>_real/ + EVIDENCE rows
8 Generalise + lower bound (a) Replace the specific value by a family (one exponent → all k; one prime → all primes; one ring → all rings of the class) and re-run 4–7. (b) Prove how close the result is to a lower bound (counting, information-theoretic, degree, rank). "X% faster" becomes "within Y of optimal". 1–2 d THEORY.md + CLAIMS.md entries

Mini-examples across areas (toy, for orientation)

| area | fixed-by-habit parameter (Gate A) | cheap prob

Полный SKILL.md на GitHub

Установить idea-mining-loop в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamlscripts/toy_mining_demo.py

FAQ

Что делает скилл idea-mining-loop?

Run the 8-step idea-mining loop (probe, free a fixed parameter, exact/SAT synthesis, spot an anomaly, algebraic root cause, control experiment, real-system validation, generalise + lower bound) with a pre-gate and two gates. Use when a direction has a measurable bottleneck and intuition-driven attempts have stalled.

Как установить скилл idea-mining-loop?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл idea-mining-loop запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить idea-mining-loop с