Command Palette

Search for a command to run...

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

Clinical Trial Sample Size / 临床试验样本量专家

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

Sample size and power calculation tool for clinical trial practitioners, covering 67 test types and returning publication-grade SVG figures. Natural-language…

medstatstarот medstatstar2 642 установки в других каталогах

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

Data Egress Guardrail (CT family standard · F33)

This skill may call external endpoints (Coze services, shared third-party search endpoints, public APIs or LLMs). Internal confidential data must not leave the local domain. Mandatory rules:

  • Never outbound: patient-level records, unpublished protocols / CSRs / internal documents, personal identifiers or sponsor-confidential content — as query terms, attachments or prompt payload.
  • Allowed minimum: public search terms and non-content metadata only (machine hash, skill version, entry point, language, request id). Results from public registries (ct.gov / CDE / FAERS / OpenAlex / PubMed, etc.) are processed locally.
  • Local first: computation, de-identification, aggregation and reporting stay on this machine; confirm the payload carries no confidential field before any cloud call.
  • Visible disclosure: workbench search forms must state the outbound endpoint and this boundary in visible text, not only in a hover tooltip.
  • Fail loud: stop and tell the user if any rule cannot be guaranteed; never degrade silently.

Machine-checked by ct-base/scripts/spec_lint.py rule F33.

Clinical Trial Sample Size

Published Application

Item Value
Share link https://ct-samplesize.app.workbuddy.host/
appId wbapp_9K1dei1PydVQ66YmawCD3C
domainPrefix ct-samplesize
Deploy metadata workbench/app.config.json
Deployed as Static site (python -m http.server $PORT --bind 0.0.0.0)
Payload WorkBuddy/2026-09-14-14-39-40/deploy_ctss/static/index.html

Re-publish rule: always overwrite with the existing appId — the link must stay https://ct-samplesize.app.workbuddy.host/. Never createNewApp. After deploy, assert the returned shareLink equals the expected URL (see ct-base references/workbench_ui.md §13.0 dirty-binding red line). Last republished 2026-09-26 (feedback two-stage fix).

Language

  • English guide → README.md · 中文指南 → README_zh-CN.md
  • Bilingual auto-switch: the answer language follows the user's question language (English question → English answer, Chinese question → Chinese answer).

Purpose

This skill provides clinical trial researchers with an easy-to-use, comprehensive sample size & power calculation tool. The default authoritative engine is a remote coze R compute service (rpact / TrialSize / PowerTOST and 20+ other packages — running server-side, so your machine needs no local R), covering all 67 test types. Results come in Chinese or English per the OS language setting (prompt can force-switch). Reproducible R code is returned by default (coze returns it on every analysis).


Features

Capability Description Typical Scenario
① Sample size ⇄ Power (bidirectional) Solve n given target power, AND solve achievable power given fixed n. --power (forward) and --nobs (reverse) are mutually exclusive; covers all 67 types. Sample size fixed, evaluate if power meets target
② Power curve Given a sample-size sequence, batch-compute and plot the Power curve (x=sample size, y=power), with a target-power reference line. Sample-size sensitivity analysis, protocol reporting
③ Sample-size curve Given a power-target sequence, batch-compute and plot the sample-size curve (x=target power, y=required n). Resource planning, feasibility assessment
④ Deterministic NL pre-route (zero-LLM) --nl "<natural language>" runs a local zero-LLM deterministic detector that identifies --test and extracts params (power 80%→0.8, rate 70%→0.7, "enroll 30"→reverse-solve power, etc.), emitting a strong signal for the coze request; when confidence is low / params incomplete it prints a structured prompt and never silently mis-params — the local agent then asks the user for the missing test/params (≤2 rounds, then defaults); raw NL text is never sent to coze (the workbench is deterministic-first — classify_test + param_aliases, identical to conversation mode; the LLM fallback in workbench/nl_llm.py defaults to the family backend model resolved dynamically from the Feishu configtbl per ct-base §12 (packaged snapshot fallback LongCat-2.5;key via load_llm_key(): LONGCAT_API_KEY env > obfuscated config/llm_key.py; CTSS_NL_ENDPOINT overrides to any OpenAI-compatible model) and may only propose a test when rules fail — never override a rule-identified test; the coze compute endpoint has no NL/LLM path). Logic in scripts/classify_test.py + scripts/param_aliases.py; per-test contract baselines in tests/coze_cases/ (fixture data), 67-test enumeration in adapters/coze/coze_contract.md. User phrases it colloquially, e.g. "non-inferiority survival trial, NI margin 1.25…"
  • ②③ curve mode: list "20,40,200" or auto-seq `"2
Полный SKILL.md на ClawHub

Установить Clinical Trial Sample Size / 临床试验样本量专家 в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Clinical Trial Sample Size / 临床试验样本量专家?

Sample size and power calculation tool for clinical trial practitioners, covering 67 test types and returning publication-grade SVG figures. Natural-language driven; full reproducible R code is returned by default. / 为临床试验从业者提供的样本量与检验效能计算工具,覆盖 67 种检验,并提供 SVG 出版级别图形。自然语言驱动,默认回传完整 R 代码。

Как установить скилл Clinical Trial Sample Size / 临床试验样本量专家?

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

Скилл Clinical Trial Sample Size / 临床试验样本量专家 запускает скрипты?

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

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

Сравнить Clinical Trial Sample Size / 临床试验样本量专家 с