一键导入
source-command-toranot-update-skill
Auto-update SKILL.md (toranot-dev) with current ground truth. Run after every deploy or when skill feels stale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Auto-update SKILL.md (toranot-dev) with current ground truth. Run after every deploy or when skill feels stale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Add a clinical rule to Toranot's src/engine/rules.ts with the Golden Rule invariant, unique group check, comfort-care suppression audit, and automatic test scaffolding. Use when user says "add a rule", "new rule", "add clinical rule", "new trigger in rules.ts", or when proposing a new auto-generated task pattern for the rules engine. DO NOT use for drug interactions (those live in drugSafety.ts).
Full audit → fix → test → build → deploy → verify cycle for this repo. Auto-detects repo; captain-mode with verify-first + merge carve-outs.
Generate professional SZMC (Shaare Zedek Medical Center) ward clinical notes in exact institutional format. PRIMARY USE: geriatric and internal medicine ward admission notes (קבלה רפואית) and ward discharge summaries (סיכום שחרור / סיכום אשפוז זמני). Also supports ED discharge (סיכום שחרור מיון) as secondary use. Trigger on: "כתוב לי קבלה", "כתוב סיכום שחרור", "סיכום אשפוז", "draft a note", "format this admission", or when user uploads תיק אשפוז / EMR data / patient data. For geriatric ward notes, auto-runs Beers/STOPP-START/drug interaction analysis. Always generates HTML export for RTL copy-paste into EMR. Do not attempt ad-hoc formatting — always use this skill.
End-to-end Toranot ship pipeline. Runs the mandatory 7-step workflow (tsc, vitest, vite build, README update, git push with PAT rotation, Netlify deploy verification, auditor sweep). Use when user says "push", "push Toranot", "deploy", "ship Toranot", "ship it", "release", or any variant asking to ship Toranot to production. DO NOT use for watch-advisor2 or Shlav A Mega — this is Toranot-specific.
End-to-end Toranot ship pipeline. Runs the mandatory 7-step workflow (tsc, vitest, vite build, README update, git push with PAT rotation, Netlify deploy verification, auditor sweep). Use when user says "push", "push Toranot", "deploy", "ship Toranot", "ship it", "release", or any variant asking to ship Toranot to production. DO NOT use for watch-advisor2 or Shlav A Mega — this is Toranot-specific.
Canonical format for Toranot `.cowork/<slug>.md` handoff files. Load whenever writing or reading a handoff. Enforces the five required sections and what belongs in each.
基于 SOC 职业分类
| name | source-command-toranot-update-skill |
| description | Auto-update SKILL.md (toranot-dev) with current ground truth. Run after every deploy or when skill feels stale. |
Use this skill when the user asks to run the migrated source command toranot-update-skill.
You are updating the toranot-dev SKILL.md file to reflect current ground truth. Do NOT make any code changes. Only update the skill file.
GET https://toranot.netlify.app/api/skill-snapshot
# Direct path equivalent: /.netlify/functions/skill-snapshot
Extract: patientCount, lastStateUpdate, backupCount, errorCount, health status. If endpoint is down, proceed with manual checks.
# Test count
npx vitest run 2>&1 | grep -E "passed|failed"
# Test file count
ls src/__tests__/*.test.ts | wc -l
# Bundle size
npx vite build 2>&1 | grep "dist/index" | grep -oP '\d+\.\d+ kB'
# Rules count
grep -c "group:" src/engine/rules.ts
# Component count
ls src/components/*.tsx | wc -l
# Current package version
cat package.json | grep '"version"'
# TypeScript clean
npx tsc --noEmit && echo "TS: clean" || echo "TS: ERRORS"
Patch exactly these fields (leave everything else untouched):
| Field | Location in skill | Source |
|---|---|---|
| Test count | §1 Overview table + §9 Gotchas | vitest run output |
| Test file count | §1 Overview table | ls count |
| Bundle size | §1 Overview table | vite build output |
| Rules count | §4 engine section | grep count |
| Component count | §1 repo structure | ls count |
| Last audited date | Top of relevant section | today's date |
git add SKILL.md 2>/dev/null || true
# If skill file is in project knowledge, note the updates needed manually
if ! git diff --cached --quiet; then
# Branch name uses full date+time AND short HEAD sha. The HHMMSS
# component guarantees uniqueness on reruns (the prior date-only +
# short_sha pattern still collided when HEAD had not moved between
# the failed run and its retry — Codex P1 on PR #99). Two runs would
# have to fire in the same wall-clock second to collide.
short_sha=$(git rev-parse --short HEAD)
git checkout -b "Codex/skill-currency-$(date +%Y%m%d-%H%M%S)-${short_sha}"
git commit -m "docs: auto-update toranot skill $(date +%Y-%m-%d) [skip ci]"
git push -u origin HEAD
gh pr create --base main \
--title "docs: refresh skill currency $(date +%Y-%m-%d)" \
--body "Auto-opened by /toranot-update-skill. Docs-only, no source changes."
fi
Per audit-fix-deploy SKILL § D.5, this docs-only PR is eligible for self-merge after Codex green (or after a meaningful Codex absence with override rationale).
If nothing changed, say "Skill file already up to date — no commit needed."