~ / rigs / wal615 / pharma-stats-skill

wal615/pharma-stats-skill

Claude Code skill and project template for pharma biostatistics: human-in-the-loop SDTM to ADaM to TLF workflows in SAS/R, with re-read-before-edit, user-runs-code, decision logs, and QC commands and agents.

↗ GitHub ★ 0 no license updated 23d ago project Claude Code
field: Healthcare
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~459 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · No YOLO mode · Sandbox or ask-first rules · details
Quality 31/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit wal615/pharma-stats-skill/templates/.claude ./rig-pharma-stats-skill  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ curl -fsSL --create-dirs -o .claude/agents/study-explorer.md https://raw.githubusercontent.com/wal615/pharma-stats-skill/main/templates/.claude/agents/study-explorer.md
$ curl -fsSL --create-dirs -o .claude/agents/tlf-reviewer.md https://raw.githubusercontent.com/wal615/pharma-stats-skill/main/templates/.claude/agents/tlf-reviewer.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(sudo *)",
      "Bash(curl *)",
      "Bash(wget *)"
    ],
    "ask": [
      "Edit",
      "Write",
      "Bash(rm *)",
      "Bash(mv *)",
      "Bash(sas *)",
      "Bash(Rscript *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "echo 'REMINDER: 先重读要改的文件再动手——用户可能在 RStudio 里手动改过,绝不凭记忆改代码。'"
          }
        ]
      }
    ]
  }
}

Subagents (2)

study-explorer新 study 接手时扫描目录结构,生成或更新 docs/STUDY_MAP.md 的索引
tlf-reviewer独立复核 TLF 输出与 shell/SAP 的一致性,输出复核报告

Hooks (2)

eventmatcherruns
PreToolUseEdit|Writeecho 'REMINDER: 先重读要改的文件再动手——用户可能在 RStudio 里手动改过,绝不凭记忆改代码。'
PostToolUseBashecho '提醒:程序已执行,请跑 /check-log 检查日志后再继续'

Slash commands (3)

/check-log/new-adam/qc-tlf

Permissions

deny (3)
Bash(sudo *)
Bash(curl *)
Bash(wget *)
ask (6)
Edit
Write
Bash(rm *)
Bash(mv *)
Bash(sas *)
Bash(Rscript *)
allow (6)
Bash(ls *)
Bash(head *)
Bash(wc *)
Bash(find *)
Bash(grep *)
Read

Similar rigs

copied ✓