ct-status-diff
Weekly clinical-trial status diff — the 11-category change report over the stored weekly snapshots (spec 055 FR-B03). Surfaces exactly what changed on the trial registry for your coverage: New / Suspended / Withdrawn / Terminated / Recruiting / Recruitment-Complete / Completed / Ahead / Delayed / Upsized / Downsized, every row carrying previous and new values, with risk flags on Terminated and Downsized and re-timing flags on Ahead and Delayed. The stored-previous-value discipline makes each week's diff reproducible.
agentii-ai · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add agentii-ai/agentii-investment-intelligence --skill ct-status-diff技能说明
name: ct-status-diff description: "Weekly clinical-trial status diff — the 11-category change report over the stored weekly snapshots (spec 055 FR-B03). Surfaces exactly what changed on the trial registry for your coverage: New / Suspended / Withdrawn / Terminated / Recruiting / Recruitment-Complete / Completed / Ahead / Delayed / Upsized / Downsized, every row carrying previous and new values, with risk flags on Terminated and Downsized and re-timing flags on Ahead and Delayed. The stored-previous-value discipline makes each week's diff reproducible." sectors: [med.medicines_biotech, med.medical_devices] multi_ticker_semantics: basket_v1_1 temporal_scope: default_quarters: 4 max_quarters: 8 description: "Weekly diff over the latest two snapshots by default; up to 8 quarters of diff history on request." allowed_tools:
- get_ct_status_changes
- search_clinical_trials
- get_clinical_trial
- search_companies
- get_company_profile
- search_investment_cases
- search_by_analogue
- search_knowledge_entries
- get_knowledge_entry retrieval_scope: structured_only min_tool_diversity: 3 parameter_free: false
Methodology inspired by publicly taught clinical-trial monitoring frameworks; all text is an original paraphrase.
Defaults
| Parameter | Default Value | Rationale |
|---|---|---|
| window | latest two snapshots | The diff is always between consecutive stored states |
| categories | all 11 | Complete change report; filter on request |
| risk_flags | on | Terminated / Downsized are surfaced first |
| gap_statement | on | Missing snapshot weeks are stated, never inferred |
Preflight
Run canonical pre-flight per contracts/preflight.md. Include the X-Agentii-Trace header on every tool call per contracts/x-agentii-trace-header.md — carry the _run_id from your first tool result and name yourself (and your parent, if you were spawned). Confirm the snapshot coverage via get_ct_status_changes before framing any readout.
Triggers
- "What changed on clinicaltrials.gov for my coverage this week?"
- "Which of [ticker]'s trials moved this week?"
- "Any trial delays or accelerations in my watchlist?"
- "Flag every terminated or downsized trial since last week."
- "Did any recruitment complete for [ticker]?"
- "Show the previous and new primary-completion dates for [drug]'s program."
- "Which trials were upsized this week?"
- "Is [trial]'s enrollment collapsing?"
- "Summarize the week's trial-registry changes for the sector."
- "What should I re-check ahead of [readout] based on registry moves?"
- "Compare this week's diff to the month-ago diff."
Production Grounding
- The diff is a stored-state comparison: every row pairs a NEW value with the PREVIOUS value from the prior snapshot — the previous-value column is the discipline; a row without both is a defect.
- The 11-category taxonomy: New / Suspended / Withdrawn / Terminated / Recruiting / Recruitment-Complete / Completed / Ahead / Delayed / Upsized / Downsized.
- Risk signals: Terminated and Downsized (enrollment collapse is the earliest visible distress). Re-timing alerts: Ahead / Delayed primary-completion moves.
- Recruitment-Complete means the readout clock has started — treat it as a catalyst-date confirmation.
- Gap windows: if snapshots are not consecutive archive writes, the gap is stated on the rows — a change is never attributed across a missing week.
- Determinism: identical snapshots yield byte-identical diffs; never invent an intermediate state.
- Badge discipline:
[FACT]registry rows,[DEDUCTED]interpretations,[VIEW]positioning, with the summary table.
Data Source Priority
get_ct_status_changes— the stored-weekly-snapshot diff (pipeline.ct_status_snapshot).- Trial context:
search_clinical_trials/get_clinical_trialfor design and endpoints. - Company context:
search_companies/get_company_profile. - Historical grounding:
search_investment_cases(event_type=termination/delay/safety) +search_by_analogue. - Knowledge:
search_knowledge_entriesfor trial-judgment patterns.
Methodology
Retrieval Scope
structured_only
Retrieval Strategy
- Pull the weekly diff via
get_ct_status_changes(ticker-filtered for single names, sector-wide for watchlists). - Rank rows: risk signals first, then re-timing, then recruiting/completed, then new.
- For each risk-signal row, pull the trial's design via
get_clinical_trialand state what changed and what it implies. - Ground termination/delay reads in
search_investment_cases/search_by_analogue(sectors=med); cite /v/ records. - Attach the gap-window statement verbatim wherever the tool reports one.
Temporal Scope
See frontmatter temporal_scope block. Historical diff series (month-over-month) available on request.
Tool Allowlist
See frontmatter allowed_tools.
Protocol
- Snapshot-diff pull
- Risk/re-timing triage
- Per-signal trial context
- Historical grounding
- Weekly change report + watch flags
Modes
- Watchlist (default): one diff report across the basket, sorted risk-first.
- Single ticker: per-trial change ledger with trial context.
- Signal scan: restrict to risk signals (Terminated/Downsized) or re-timing (Ahead/Delayed).
Tool Fallbacks
| Failure | Fallback |
|---|---|
| get_ct_status_changes empty (<2 snapshots) | State the coverage gap: the diff needs two consecutive snapshot cycles; use search_clinical_trials metadata as a degraded view |
| Trial not in snapshots | Flag as registry-coverage gap; do not fabricate a previous value |
| Knowledge tools empty | Proceed with structured diff only; annotate knowledge coverage_gap |
Output File
{ticker}/{YYYY-MM-DD_HHMM}_ct-status-diff_{affix}.md (watchlist: watchlist/{YYYY-MM-DD_HHMM}_ct-status-diff_{affix}.md)
Output Structure
- Executive Summary — the week in trial-registry changes, 2-3 sentences
- Risk Signals — Terminated /