Skip to content

ByteTerrace/Puck / .claude/skills/maths-usage

maths-usage

Verified

Picks Puck.Maths primitives and determinism rules: FixedQ4816, FixedVector3, rate accumulators, Pcg32XshRr, AliasTable, Fnv1aHash, rounding, saturation, primes. Law cases: maths-laws.

FileKindSize
SKILL.mdskill md18.8 KB
evals/mu01-velocity-rate-accumulator/graders/fixed-point-vector.mdmarkdown73 B
evals/mu01-velocity-rate-accumulator/graders/list-element-copy-hazard.mdmarkdown826 B
evals/mu01-velocity-rate-accumulator/graders/one-way-presentation-seams.mdmarkdown672 B
evals/mu01-velocity-rate-accumulator/graders/rate-accumulator.mdmarkdown84 B
evals/mu01-velocity-rate-accumulator/graders/remainder-is-snapshot-state.mdmarkdown642 B
evals/mu01-velocity-rate-accumulator/graders/restores-with-from-remainders.mdmarkdown72 B
evals/mu01-velocity-rate-accumulator/graders/skill-fired.mdmarkdown36 B
evals/mu01-velocity-rate-accumulator/graders/snapshot-round-trip-check.mdmarkdown660 B
evals/mu01-velocity-rate-accumulator/prompt.mdmarkdown551 B
evals/mu02-weighted-loot/graders/alias-table.mdmarkdown67 B
evals/mu02-weighted-loot/graders/builds-the-table-at-load.mdmarkdown403 B
evals/mu02-weighted-loot/graders/entry-order-is-identity.mdmarkdown667 B
evals/mu02-weighted-loot/graders/own-stream-from-master-seed.mdmarkdown674 B
evals/mu02-weighted-loot/graders/pcg32-generator.mdmarkdown67 B
evals/mu02-weighted-loot/graders/persists-increment-and-multiplier.mdmarkdown124 B
evals/mu02-weighted-loot/graders/restores-with-from-raw-bits.mdmarkdown157 B
evals/mu02-weighted-loot/graders/skill-fired.mdmarkdown36 B
evals/mu02-weighted-loot/prompt.mdmarkdown421 B
evals/mu03-rounding-change-governance/graders/changed-hashes-are-expected.mdmarkdown749 B
evals/mu03-rounding-change-governance/graders/classifies-the-new-member.mdmarkdown518 B
evals/mu03-rounding-change-governance/graders/no-node-reuse-on-test.mdmarkdown92 B
evals/mu03-rounding-change-governance/graders/no-recorded-register.mdmarkdown605 B
evals/mu03-rounding-change-governance/graders/node-reuse-on-the-build.mdmarkdown95 B
evals/mu03-rounding-change-governance/graders/release-configuration.mdmarkdown100 B
evals/mu03-rounding-change-governance/graders/routes-to-maths-laws.mdmarkdown67 B
evals/mu03-rounding-change-governance/graders/skill-fired.mdmarkdown36 B
evals/mu03-rounding-change-governance/prompt.mdmarkdown322 B
evals/mu04-seek-by-advance/graders/advance-counts-advances.mdmarkdown463 B
evals/mu04-seek-by-advance/graders/alias-sample-reports-advances.mdmarkdown687 B
evals/mu04-seek-by-advance/graders/bounded-and-shuffle-vary.mdmarkdown631 B
evals/mu04-seek-by-advance/graders/persist-state-instead.mdmarkdown157 B
evals/mu04-seek-by-advance/graders/skill-fired.mdmarkdown36 B
evals/mu04-seek-by-advance/prompt.mdmarkdown459 B
evals/mu05-hand-rolled-helpers/graders/bitwise-pair.mdmarkdown68 B
evals/mu05-hand-rolled-helpers/graders/fast-parallel-bits-gate.mdmarkdown76 B
evals/mu05-hand-rolled-helpers/graders/floor-division.mdmarkdown68 B
evals/mu05-hand-rolled-helpers/graders/fnv1a-hash.mdmarkdown66 B
evals/mu05-hand-rolled-helpers/graders/skill-fired.mdmarkdown36 B
evals/mu05-hand-rolled-helpers/graders/why-not-bmi2-is-supported.mdmarkdown658 B
evals/mu05-hand-rolled-helpers/prompt.mdmarkdown522 B
references/complete-reference.mdmarkdown26.7 KB
references/prime-kernels.mdmarkdown1.8 KB

references/prime-kernels.md

View on GitHub
# Prime kernel rules and measured evidence

Read [prime exploration](../../../../docs/reference/prime-exploration.md)
before changing `IsPrime`, `NthPrime(uint)`, `PrimeKernels` or
`ScaledResidueRing64`. That reference owns the retained algorithms and useful
research conclusions. The owner's cleanup removes the wide counting and
interval exploration engine; it does not remove the separate maths research,
algebra or oracle wings.

- Keep the fastest correct single-value decision. It runs on one core;
  threads and GPU work do not belong on this path.
- Tune AVX2 and AVX-512 while preserving correct narrower and scalar
  fallbacks. Gate on instruction-set capability, never vendor.
- Keep shared primitives: the base-prime table also serves narrow nth-prime,
  primality, factorization and quadratic arithmetic. Witness bounds serve
  arbitrary-width primality, and modular reductions serve finite fields.
- Use counted work and generated instructions to judge a change. Warm tiered
  code unpinned before measuring: pinning a harness before warmup can starve
  the tiering thread and measure Tier0. Read timing on a quiet machine beside
  those counts; code layout alone has moved cycles by 1–3%.
- A structural table can accelerate arithmetic, but a table of answers over a
  query range is not a substitute for it. The small hashed-witness certificate
  remains an [owner decision](../../../../docs/plans/open-items.md#owner-decisions), because
  production primality still reaches that range.
- Re-measure on a new .NET major before relying on old tuning. On .NET 11,
  `Math.BigMul` keeps both halves in registers; the retained reductions use
  three multiplies, and the signed base-two path avoids per-step folds.
- Read the reference's measured dead ends before proposing a branching trace
  ladder, an `Int128` signed reduction or a borrowed walk below 2^63 again.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall