malekokour/clinpharm-pmx-skills / skills/check-investigators-brochure-pk-section
check-investigators-brochure-pk-section
VerifiedCheck a supplied Investigator's Brochure for declared human pharmacokinetics/product-metabolism and related effects-in-humans content, then compare its version/date with a supplied DSUR citation register. Use this skill when a clinical pharmacologist and medical or regulatory reviewer need a source-located IB PK-section completeness and version reconciliation. Example: "Please a clinical pharmacologist and medical or regulatory reviewer need a source-located IB PK-section completeness and version reconciliation." Do not use it to approve medical content, decide live-study conduct, recommend a dose, or determine a filing obligation.
| File | Kind | Size |
|---|---|---|
| PASTE.md | markdown | 8.7 KB |
| README.md | markdown | 744 B |
| SKILL.md | skill md | 8.6 KB |
| assets/IB-PK-Section-Check.template.md | markdown | 1.5 KB |
| references/review-contract.md | markdown | 1.8 KB |
| references/source-boundaries.md | markdown | 1.3 KB |
| scripts/check_ib_pk_section.pyexecutable | script | 8.0 KB |
| scripts/test_check_ib_pk_section.pyexecutable | script | 2.0 KB |
scripts/test_check_ib_pk_section.py
View on GitHub#!/usr/bin/env python3
"""Unit tests for the package-local IB content and version checker."""
from __future__ import annotations
import argparse
import unittest
import check_ib_pk_section as target
COMPLETE = """IB version: IB-v3
IB date: 2026-07-01
Absorption; plasma protein binding; distribution; metabolism; elimination;
bioavailability; pharmacodynamics; safety and efficacy; dose-response.
"""
REGISTER = {
"current_ib": {"version": "IB-v3", "date": "2026-07-01", "locator": "register row 1"},
"dsur_citation": {"version": "IB-v3", "date": "2026-07-01", "locator": "DSUR section 2.6"},
}
class IBCheckTests(unittest.TestCase):
def test_complete_matching_ib_is_green(self) -> None:
result = target.inspect(COMPLETE, REGISTER)
self.assertEqual(result["counts"]["content_items_checked"], 9)
self.assertEqual(result["findings"], [])
def test_missing_content_is_red(self) -> None:
result = target.inspect(COMPLETE.replace("plasma protein binding; ", ""), REGISTER)
self.assertTrue(any(row.get("classification") == "plasma-protein-binding-absent" for row in result["findings"]))
def test_stale_dsur_version_is_red(self) -> None:
register = {
**REGISTER,
"dsur_citation": {"version": "IB-v2", "date": "2026-01-15", "locator": "DSUR section 2.6"},
}
result = target.inspect(COMPLETE, register)
stale = [row for row in result["findings"] if row.get("classification") == "stale-version"]
self.assertEqual(len(stale), 2)
def test_missing_register_is_needs_input_not_match(self) -> None:
result = target.inspect(COMPLETE, None)
self.assertEqual(result["version_state"], "NEEDS_INPUT")
self.assertEqual(result["counts"]["version_comparisons_checked"], 0)
if __name__ == "__main__":
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument("--help", action="store_true")
known, remaining = parser.parse_known_args()
if known.help:
print(__doc__)
else:
unittest.main(argv=[__file__, *remaining])
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |