Clinical Tempo

Clinical Tempo / HealthTech Protocol — full repo context via public/llm-full.txt (or /llm-full.txt), tribal debugging via CLAWHUB.md, Tempo + MPP/x402 patter...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 45 · 0 current installs · 0 all-time installs
byArun Nadarasa@arunnadarasa
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Clinical Tempo / ClawHub) match the bundled files and runtime instructions: SKILL.md, references, scripts, and optional OpenClaw hook all exist to provide repo context, boot reminders, and troubleshooting guidance. Nothing in the package asks for unrelated cloud credentials or capabilities that don't belong to a repo-context helper.
Instruction Scope
Runtime instructions and scripts focus on locating/regenerating the repo LLM bundle, running local smoke tests (GET http://localhost:8787/…), adding short reminders to CLAWHUB.md, and optionally installing a bootstrap hook. They do not instruct the agent to read secrets or exfiltrate data. The activator and error-detector scripts rely on local CLI output (and an optional CLAUDE_TOOL_OUTPUT env var) which is appropriate for their stated purpose.
Install Mechanism
There is no install spec; this is effectively an instruction-only skill with optional helper scripts and hook handlers. The included hook code and shell scripts are plain and reference local operations only; no remote download/install URLs or archive extraction are present.
Credentials
The skill declares no required env vars or credentials. Scripts reference non-secret env names from .env.example and the error-detector reads CLAUDE_TOOL_OUTPUT when present (a hook-provided variable). These are proportional to local debugging hooks, but you should be aware that the hook runtime may expose tool output to the scripts—no secrets are requested by the package itself.
Persistence & Privilege
always:false and user-invocable:true. The only persistent behavior comes from optional OpenClaw hooks (copying hooks/openclaw into ~/.openclaw/hooks and enabling them) which, if enabled, will inject a virtual reminder file at agent bootstrap. That is expected for a context-reminder skill, but enabling hooks grants the package a persistent presence in your OpenClaw workspace, so install consciously.
Assessment
This is a repository-orientation skill: it points agents at the repo bundle (public/llm-full.txt), a tribal debugging file (CLAWHUB.md), and local smoke tests on localhost:8787. The package does not ask for secrets or install remote code. Before installing or enabling the OpenClaw hook: (1) inspect the hook handler (hooks/openclaw/handler.{js,ts}) and the scripts (activator.sh, error-detector.sh) to confirm you accept their behavior; (2) do not paste real .env secrets into agent prompts—the skill explicitly warns against it; (3) if you don't want persistent bootstrap reminders, do not copy/enable the hook in ~/.openclaw/hooks; (4) when asked to install the optional @anyway-sh/anyway-openclaw plugin, verify that third-party plugin independently. If you want extra assurance, test the skill in an isolated workspace before adding hooks to your main environment.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97av4k4511zva222eff25yye583gvbb

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Clinical Tempo · ClawHub context skill

Clinical Tempo is the reference HealthTech Protocol superapp: React hub + dedicated routes, Node/Express API, Tempo settlement, MPP / x402 machine payments. This skill tells agents where context lives and how to avoid known traps (see CLAWHUB.md).


Quick reference

SituationAction
Need one file with README + use cases + protocol + ClawHubLoad public/llm-full.txt or /llm-full.txt (running app).
402 / MPP / wallet confusionCLAWHUB.md + relevant route in server/index.js.
UI works but API 404 / HTMLBackend not running or stale process — restart npm run server (8787).
Verify live MPP handler existsGET http://localhost:8787/api/dance-extras/live → JSON with flowKeys.
Which screens existsrc/hubRoutes.ts; hub /.
Changed markdown included in bundlenpm run build:llm (runs before npm run build).
EVVM (deploy, CLI, Tempo testnet)docs/EVVM_TEMPO.md, /evvm; deep: https://www.evvm.info/llms-full.txt.
MPPScan / OpenAPIGET /openapi.json; npm run discovery · docs/MPPSCAN_DISCOVERY.md
OpenClaw + extra capabilitiesOptional plugin: openclaw plugins install @anyway-sh/anyway-openclaw — then restart gateway if needed; see references/openclaw-clinical-tempo.md
Promotion of a fix for future agentsShort entry under Successes or Failures in CLAWHUB.md (no secrets).
TIP-20 mint (/nhs/tip20) — issuer role + envelope 0x76CLAWHUB.md Success §10 / Failure §10; code src/tempoTip20Launch.ts. Mint needs ISSUER_ROLE; use writeContractSync(grantRole), not grantRolesSync (batched tx type 0x76 breaks viem + browser wallets).

When to activate (triggers)

Use this skill automatically when:

  1. The user @-mentions llm-full.txt, CLAWHUB, Clinical Tempo, MPP, dance-extras, or Tempo testnet/mainnet.
  2. The task touches server/index.js, server/payments.js, or src/danceExtras*.ts.
  3. Docs are edited that appear in scripts/build-llm-full.mjs (bundle sources).
  4. The user uploads ClawHub / OpenClaw / Copilot context questions.

Recommended: Cursor / IDE

  1. @ public/llm-full.txt for broad changes; @ CLAWHUB.md when debugging past incidents.
  2. Project rules: repo root AGENTS.md or .cursor/rules if present — align with README.md.

See references/openclaw-clinical-tempo.md for OpenClaw workspace file hints.


Installation

From this repository (authoritative):

# Skill lives at:
.cursor/skills/clawhub/

Manual copy to OpenClaw skills dir (optional):

cp -r .cursor/skills/clawhub ~/.openclaw/skills/clinicaltempo-clawhub

ClawHub (publish): Zip clawhub/ (this folder) so the listing includes SKILL.md, references/, assets/, hooks/, scripts/. See README.md in this folder for a file manifest.

OpenClaw: optional Anyway plugin

This skill is context-only; @anyway-sh/anyway-openclaw extends the OpenClaw runtime with additional capabilities (separate from Clinical Tempo). Install when you want both:

openclaw plugins install @anyway-sh/anyway-openclaw
# If your setup requires it:
openclaw gateway restart

Pair with: this skill (or ClawHub listing) + optional clinicaltempo-clawhub hook. Details: references/openclaw-clinical-tempo.md.


Repository map (where to look)

clinicaltempo/
├── public/llm-full.txt          # Generated — do not hand-edit; run npm run build:llm
├── CLAWHUB.md                   # Tribal knowledge: successes, failures, checklists
├── README.md                    # Routes, stack, quick start
├── HEALTHTECH_USE_CASES.md       # Flow-by-flow API contract
├── server/index.js              # Express routes, integrations, MPP proxies
├── server/openapi.mjs           # OpenAPI 3.1 for GET /openapi.json (MPPScan)
├── server/payments.js           # Chain IDs, charge helpers
├── src/hubRoutes.ts             # Hub directory of all /routes
├── src/danceExtrasLiveMpp.ts    # Browser MPP helpers (live flows)
├── src/danceExtrasJudgeWire.ts  # Judge-score wire snippets
├── .github/copilot-instructions.md
└── scripts/build-llm-full.mjs   # Source list for llm-full.txt

First load (full orientation)

  1. Prefer public/llm-full.txt (or /llm-full.txt from a running build) — includes CLAWHUB.md in the bundle.
  2. Regenerate after doc edits: npm run build:llm.

Bundle sources

Exact list: assets/LLM-BUNDLE-SOURCES.md (mirrors build-llm-full.mjs).

EVVM: llm-full.txt vs llms-full.txt

ArtifactRole
public/llm-full.txt (singular)Clinical Tempo-generated; committed; use first.
https://www.evvm.info/llms-full.txt (plural)Upstream EVVM protocol dump — attach for EVVM-only depth; do not duplicate into public/ unless you intend to maintain a fork.

Debugging (tribal knowledge)

Read CLAWHUB.md for:

  • What succeeded / failed (purl, AgentMail, 402 loops, stale Express on 8787, etc.)
  • Repeatable checks (e.g. GET /api/dance-extras/live)

Deeper: references/troubleshooting.md.


Key implementation pointers

TopicLocation
Live MPP dance flowsPOST /api/dance-extras/live/:flowKey/:networkGET /api/dance-extras/live
Hub routessrc/hubRoutes.ts
Browser MPPsrc/danceExtrasLiveMpp.ts, src/danceExtrasJudgeWire.ts
Serverserver/index.js

Concrete snippets: references/examples.md.


Copilot Chat integration

GitHub Copilot does not load this folder automatically. Options:

  1. Commit /.github/copilot-instructions.md (already in Clinical Tempo repo).
  2. Paste from references/copilot-and-agents.md into chat or org instructions.

Quick prompts:

  • “Use llm-full.txt as context for this PR.”
  • “Scan CLAWHUB.md for 8787 / MPP / purl before changing the server.”
  • “After this task, suggest one CLAWHUB Success or Failure line (no secrets).”
  • “Regenerate public/llm-full.txt — which files are inputs?” → assets/LLM-BUNDLE-SOURCES.md

Promotion: CLAWHUB vs llm-full

ContentWhere
Stable facts (routes, env names, ports)README.md, HEALTHTECH_USE_CASES.md, or relevant docs/*.md — then npm run build:llm.
Incident / debugging narrativeCLAWHUB.md Successes / Failures.
EVVM upstream protocolLink https://www.evvm.info/llms-full.txt; keep docs/EVVM_TEMPO.md for Tempo-specific steps.

Verification script

From repo root (optional):

./.cursor/skills/clawhub/scripts/verify-clinical-tempo-context.sh

Checks that public/llm-full.txt exists and reminds you of the live MPP GET check.


OpenClaw hook (optional)

Parity with self-improving-agent: injects a virtual CLINICAL_TEMPO_CONTEXT_REMINDER.md on agent:bootstrap (skips sub-agents). No network I/O.

# From this skill folder (or repo: .cursor/skills/clawhub/)
cp -r hooks/openclaw ~/.openclaw/hooks/clinicaltempo-clawhub

openclaw hooks enable clinicaltempo-clawhub
  • hooks/openclaw/HOOK.md — metadata + enable/disable.
  • hooks/openclaw/handler.js — CommonJS handler (primary).
  • hooks/openclaw/handler.ts — TypeScript handler for OpenClaw (types from openclaw/hooks at runtime).

Full notes: references/openclaw-clinical-tempo.md.


Best practices

  1. Never paste real .env secrets into prompts — use .env.example names only.
  2. After editing any file listed in build-llm-full.mjs, run npm run build:llm before claiming “docs are updated in the bundle.”
  3. Prefer GET /api/dance-extras/live over guessing whether the server is new.
  4. For EVVM, answer no to optional Sepolia registry registration until policy allows (see docs/EVVM_TEMPO.md).

Operations manual (same rigor as self-improving-agent)

This skill mirrors that package’s shape: quick reference, OpenClaw integration, optional hooks/scripts, templates, and promotion — but maps “project memory” to CLAWHUB.md + README.md instead of only .learnings/.

Promotion targets (where tribal knowledge goes)

FindingPromote to
Incident / workaround / “what broke”CLAWHUB.md Successes or Failures
Stable routes, ports, env names, stack factsREADME.md, HEALTHTECH_USE_CASES.md, or docs/*.md, then npm run build:llm
IDE default context.github/copilot-instructions.md
OpenClaw workspace behaviorWorkspace AGENTS.md / TOOLS.md (see references/openclaw-integration.md)

Entry templates: assets/templates/CLAWHUB-ENTRY.md.

Optional: .learnings/ format (LRN / ERR / FEAT)

If you maintain a parallel log (e.g. in OpenClaw workspace), use the same ID patterns as self-improving-agent (LRN-YYYYMMDD-XXX, etc.). Starters ship under assets/learnings/. Authoritative for this repo remains CLAWHUB.md.

Periodic review (before a large change)

# Grep CLAWHUB for an area
rg -n "MPP|402|8787|TIP-20|purl" CLAWHUB.md

# Confirm bundle is fresh after doc edits
npm run build:llm

# Smoke API (server must run on 8787)
curl -sS http://127.0.0.1:8787/api/dance-extras/live | head -c 400

Detection triggers (load this skill when)

  • User mentions llm-full.txt, CLAWHUB, Clinical Tempo, HealthTech, Tempo, MPP, 402, NHS, TIP-20, 8787, ClawHub, or OpenClaw.
  • Editing server/index.js, scripts/build-llm-full.mjs, or src/hubRoutes.ts.
  • Preparing a zip for clawhub.ai or debugging a published install.

Claude Code / Codex hooks (optional)

ScriptRole
scripts/activator.shSmall XML-tagged reminder after each prompt (UserPromptSubmit)
scripts/error-detector.shOptional hint after Bash failures (PostToolUse)

Configure .claude/settings.json or .codex/settings.json — full paths in references/hooks-setup.md.

Multi-agent matrix

AgentHow this skill applies
Cursor@ public/llm-full.txt + CLAWHUB.md; rules in .cursor/rules if present
GitHub Copilot.github/copilot-instructions.md + references/copilot-and-agents.md
OpenClawCopy skill + optional hooks/openclaw; see references/openclaw-integration.md
Claude CodeOptional activator.sh hook

Skill extraction (new package from a fix)

When a CLAWHUB entry is reusable across repos, consider a standalone skill:

./.cursor/skills/clawhub/scripts/extract-skill.sh my-org-skill --dry-run
./.cursor/skills/clawhub/scripts/extract-skill.sh my-org-skill

Then replace the scaffold under .cursor/skills/my-org-skill/ using assets/SKILL-TEMPLATE.md.


Files in this package

PathPurpose
SKILL.mdThis file — primary skill entry
README.mdPackage manifest + upload notes for ClawHub
_meta.sample.jsonRename to _meta.json after ClawHub assigns IDs (optional)
references/copilot-and-agents.mdPaste blocks for Copilot / chat
references/openclaw-clinical-tempo.mdOpenClaw workspace + Anyway plugin
references/openclaw-integration.mdFull OpenClaw + ClawHub install guide
references/hooks-setup.mdClaude Code / Codex hook paths for activator.sh
references/examples.mdConcrete @-mentions, curls, patterns
references/troubleshooting.mdCommon failures & fixes
assets/LLM-BUNDLE-SOURCES.mdWhat feeds llm-full.txt
assets/SKILL-TEMPLATE.mdTemplates for new skills / forks
assets/templates/CLAWHUB-ENTRY.mdSuccess / Failure append shapes
assets/learnings/*.mdOptional LRN-style stubs (repo uses CLAWHUB.md)
scripts/verify-clinical-tempo-context.shQuick repo checks
scripts/activator.shOptional UserPromptSubmit reminder
scripts/error-detector.shOptional PostToolUse (Bash) hint
scripts/extract-skill.shScaffold .cursor/skills/<slug>/
hooks/openclaw/HOOK.mdOpenClaw hook manifest
hooks/openclaw/handler.jsBootstrap injector (CommonJS)
hooks/openclaw/handler.tsBootstrap injector (TypeScript)
hooks/README.mdHook folder index

See also

  • Published skill: clawhub.ai/arunnadarasa/clinicaltempo — browse ClawHub for versioned skills
  • Ecosystem synergy (mpp-nanogpt-modal, nanochat, OpenClaw): docs/ECOSYSTEM_SYNERGY.md
  • Structural inspiration: self-improving-agent (references, assets, scripts, hooks, .learnings patterns)
  • Clinical Tempo repo: README.md, CLAWHUB.md

Files

23 total
Select a file
Select a file to preview.

Comments

Loading comments…