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.
field: Healthcare
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
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)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Edit|Write | echo 'REMINDER: 先重读要改的文件再动手——用户可能在 RStudio 里手动改过,绝不凭记忆改代码。' |
| PostToolUse | Bash | echo '提醒:程序已执行,请跑 /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
anomalyco/opencode
The open source coding agent.
Pragmatist 14.3k tok · · Q8
DietrichGebert/ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Pragmatist 1.6k tok · · Q0
Shubhamsaboo/awesome-llm-apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
Pragmatist 4.2k tok · · Q18
nextlevelbuilder/ui-ux-pro-max-skill
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Pragmatist 21.5k tok · · Q18