ワンクリックで
blahpack-scaffold
Generate the stdlib-js module scaffold for a BLAS/LAPACK routine
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate the stdlib-js module scaffold for a BLAS/LAPACK routine
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Rigorously validate a BLAS/LAPACK routine's correctness using the property-based harness. Repeatable process — classify the routine, pick generator/scheme/property from fixed tables, sweep sizes and flags, fuzz layouts, record the level. The argument is the routine name (e.g. `dpotrf`).
Run ESLint with stdlib rules, fork rules for customization, or create new fixable rules
Review a module (or the full codebase) for convention violations, scaffolding remnants, and quality issues. The argument is the module path (e.g. `lib/blas/base/zhpmv`) or empty for full audit.
Run the full translation checklist for a BLAS/LAPACK routine. The argument is the routine name (e.g. `dpotf2`).
Run test coverage analysis
Show the dependency tree for a BLAS/LAPACK routine
| name | blahpack-scaffold |
| description | Generate the stdlib-js module scaffold for a BLAS/LAPACK routine |
| argument-hint | <routine> |
Generate the stdlib-js module scaffold for a BLAS/LAPACK routine. Run:
python bin/scaffold.py $ARGUMENTS
The first argument is the package (blas or lapack), the second is the routine name. Add -d "description" for the one-line description.
If the user provides just a routine name, determine the package by checking whether the source exists in data/BLAS-3.12.0/ (blas) or data/lapack-3.12.0/SRC/ (lapack).
The scaffold generates 16 files:
lib/base.js — stub with correct signature (implement this)lib/ndarray.js — validation wrapper for stdlib string params (uplo, trans, diag, side)lib/<routine>.js — layout wrapper with isLayout, string, dimension, and LD validationlib/main.js, lib/index.js — entry pointstest/test.js — export/arity checkstest/test.<routine>.js — layout wrapper validation teststest/test.ndarray.js — scaffold for ndarray computation testsbenchmark/benchmark.js, benchmark/benchmark.ndarray.jsdocs/types/index.d.ts — dual signatures with @stdlib/types importsdocs/types/test.ts — TypeScript compile-time testsdocs/repl.txt, README.md, examples/index.js, package.json (with keywords)LEARNINGS.md — templateAfter scaffolding, the translator only needs to:
lib/base.jstest/test.ndarray.jsndarray.js for nonstandard string params (job, norm, etc.)