scientific-impl
БесплатноБез исполняемых скриптовНе проверенUse for tasks that implement a numerical, statistical, or sampling algorithm with formal tests against known truth — "implement a sampler / estimator /…
от RUC-NLPIR★ 472 звезды на GitHubОб этом скилле
Scientific / numerical implementation protocol
Grader-facing requirements (nearly all numerical tasks check these mechanically, not by reading your explanation):
Pin the exact public interface first. Read the spec for the exact function names and signatures (a primary function plus a test entrypoint), and the exact output artifact paths (e.g.
/app/ars.R,/app/normal_samples.txt). Name the primary and test functions EXACTLY as requested (ars,test) — a grader calls them by name.Install the language if missing (e.g.
DEBIAN_FRONTEND=noninteractive apt-get install -y r-basefor R), then write modular code: one function per discrete step (validate, build envelope, sample, check domination), consistent naming, and clear errors for invalid inputs (negative counts, out-of-domain values) and unsupported cases (non-log-concave densities).Accept the specified input shape. If the spec says the density comes as a vectorized function (
dnorm,dexp, …), call it with a vector and vectorize your wrapper — do not require a scalar-only function.Check log-concavity (or the equivalent invariant) DURING sampling, not just once up front — the spec usually demands the rejection step itself catch a violated assumption and raise a clear error.
Test against known truth, not just "it runs". For stochastic output use distributional checks (Kolmogorov–Smirnov against the built-in
r*/dnormtruth, mean/SD vs theory), never exact equality. Make the test entrypoint print one line per test in the required format —NAME: PASSorNAME: FAIL— and include the mean and standard-deviation statistics on the same line (e.g.normal_mean: PASS (mean=-0.004, sd=0.993)), because graders often grep for that exact shape.Produce the required artifacts at the exact paths (sample files with one value per line), and make the test entrypoint runnable both as a script (
Rscript file.R/python file.py) and when sourced/imported, using amainguard so importing does not auto-run the suite.Verify determinism where required (set a seed), confirm the files are written with
ls/wc -l, then stop — do not re-run a passing suite.
Установить scientific-impl в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл scientific-impl?
Use for tasks that implement a numerical, statistical, or sampling algorithm with formal tests against known truth — "implement a sampler / estimator / integrator", "compare results to known distributions", "validate inputs and reject invalid cases". Covers R/Python scientific code with modular functions and PASS/FAIL test output.
Как установить скилл scientific-impl?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scientific-impl запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic