Skip to content

ha-query-response

Draft a health authority query response that restates each question, answers with cited data and guidance, flags insufficient data, and lists commitments separately; checks citations with a tool. Never fabricates data. Draft for qualified review.

Stage Regulatory
Tier 2 (template and rubric)
Standards ICH E3 section 12, ICH M3(R2), agency guidance as cited by the user
Minimum pharmaskills 0.4.0
Inputs agency question, study reports or summaries, data tables, guidance references
Outputs response docx, response md, citations check json
Verified by docs check-citations, docs build

Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.

Install only this skill: pharmaskills skills install --agent claude-code --skill ha-query-response (see Install).

Purpose

Help a regulatory writer answer an agency question in a structure a reviewer can trace: the question restated, an answer backed by data files and guidance with a visible citation on every assertion, insufficient data flagged in place, and commitments in their own list. The output is a draft for the sponsor's regulatory lead and subject experts. It does not replace their review, the sponsor's decision on what to commit to, or the submission procedure.

When to use / when not to use

Use for information requests, deficiency letters and clarification questions where the sponsor can supply source data and the guidance to cite.

Do not use to decide the sponsor's regulatory strategy, to negotiate commitments, to invent a position when data are missing, or to answer clinical questions about a patient. Do not draft a response to a question that is not in the supplied text.

Inputs

Required: the agency question text (each numbered question kept as written) and the data that answer it (study report summaries, tables, listings). Optional: the guidance documents the sponsor wants cited, previous correspondence, program facts.

Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders. Never invent data, numbers, study ids or citations.

State the region and agency assumed (default: US FDA at IND stage with ICH guidance) and the date of the question.

If the pharmaskills package is not installed, say uv tool install pharmaskills, draft with the template and mark the citation check as not run.

Workflow

  1. Restate the question. Copy each question under ## Restated question without reinterpreting it. Number them.
  2. Map data to questions. For each question list the supporting source files and the guidance section, using references/citation-conventions.md.
  3. Answer each question under its own heading. One assertion per paragraph; every paragraph carries a marker: [Study report <id>], [ICH E3 12.3] or [Source: <file>]. Quote numbers exactly with denominators.
  4. Flag insufficient data in place. If a question cannot be answered from the sources, say what is missing and add [DATA NEEDED: ...]. Never estimate, extrapolate or round up.
  5. List commitments separately under ## Commitments. Commitment wording ("we will provide") appears only there, each with a date placeholder.
  6. Add ## Bibliography: one entry per marker id. List the open data gaps under ## Data gaps and insufficient data.
  7. Build and check: pharmaskills docs build response_src.md --out response.docx --skill ha-query-response, then pharmaskills docs check-citations response.md --source <each data file> --require-commitments --out citations_check.json.

Output contract

File Content
response.docx and response.md Restated question, answers, data gaps, commitments, bibliography; draft banner first, provenance last
citations_check.json Output of the citation check: cited and uncited counts, markers, commitments

Section order: restated question, response (one subsection per question), data gaps, commitments, bibliography. Every number traces to a supplied file.

Verification

Run and report: docs check-citations exit code (0 expected), the counts of assertion paragraphs cited and unresolved markers, that commitments sit in their own section, and the draft banner present. If an exit code is 2, fix each listed paragraph (add the citation or remove the claim) and rerun. If the tool is unavailable, check by eye that each paragraph has a marker and say the check was manual.

Guardrails

  • Insert the draft banner in every generated document (pharmaskills docs banner --apply).
  • Never fabricate data, numbers, citations, PMIDs, NCT ids, precedents or agency statements.
  • Never state that data exist when they were not supplied; use [DATA NEEDED: ...].
  • Do not add commitments the sponsor has not agreed to; propose them as drafts with dates marked as placeholders.
  • Cite guidance by identifier and section; when unsure of a section number, say so.
  • State the region and agency assumed.

References

  • references/citation-conventions.md - marker forms, bibliography entries, what counts as an assertion paragraph
  • references/response-structure.md - structure of a response and wording for gaps
  • Public sources: ICH E3 (structure and content of clinical study reports), ICH M3(R2), and the relevant agency procedural guidance for the question at hand.

Template: templates/response.md. Script: scripts/check_response.sh.

Examples

Worked example with synthetic data: examples/regulatory/ha-query-response/. Fixtures: skills/ha-query-response/evals/fixtures/.

Worked example

Committed example with inputs and outputs: examples/regulatory/ha-query-response/.

Skill: skills/ha-query-response. Stage: regulatory.

Inputs: a synthetic information request (agency_question.md) and the synthetic study summaries and PSK-001 tables under skills/ha-query-response/evals/fixtures/. No real agency text.

Outputs in out/:

  • response.docx, response.md: restated questions, cited answers, data gaps, commitments, bibliography (built with pharmaskills docs build).
  • citations_check.json: real output of pharmaskills docs check-citations (9 of 9 assertion paragraphs cited, 0 unresolved markers, commitments in their own section).
  • refusal_fabricate_data.md, refusal_no_citations.md: responses to the adversarial prompts.

Hand check: serious adverse events 6/59 = 10.2 percent and 3/61 = 4.9 percent. The guidance section numbers ICH E3 12.3 and 12.4 should be confirmed against the published guideline; the ICH M3(R2) section number is deliberately left out and marked for the author.

Reproduce: pharmaskills eval run --skill ha-query-response.

Skill source: skills/ha-query-response/SKILL.md