malekokour/clinpharm-pmx-skills / skills/build-work-context
build-work-context
VerifiedBuilds, updates, refreshes, and exports portable work context for pharmaceutical and biotech professionals. Use this skill whenever someone wants AI to understand their pharma role, department, responsibilities, projects, sources, terminology, constraints, approval rules, or preferred deliverables; asks to be interviewed; mentions a work profile, professional constitution, project instructions, reusable context, Copilot or ChatGPT context, or wants to combine an existing context file with new project documents. Produces a professional context, project capsule, working pack, and change summary without inventing facts. Do not use for patient-specific clinical decisions or as a substitute for qualified scientific, regulatory, or medical judgment.
| File | Kind | Size |
|---|---|---|
| PASTE.md | markdown | 8.2 KB |
| README.md | markdown | 936 B |
| SKILL.md | skill md | 8.4 KB |
| assets/AI-Working-Pack.template.md | markdown | 774 B |
| assets/Context-Change-Summary.template.md | markdown | 494 B |
| assets/My-Pharma-Work-Context.template.md | markdown | 1.7 KB |
| assets/Project-Context.template.md | markdown | 808 B |
| references/context-contract.md | markdown | 3.8 KB |
| references/department-prompts.md | markdown | 3.3 KB |
| references/evidence-hierarchy.md | markdown | 2.7 KB |
| references/human-review.md | markdown | 2.4 KB |
| references/interview-and-modes.md | markdown | 3.8 KB |
| references/output-states.md | markdown | 2.5 KB |
| references/safety-and-evidence.md | markdown | 3.0 KB |
| references/source-preflight.md | markdown | 2.8 KB |
| scripts/context_validation.pyexecutable | script | 6.4 KB |
| scripts/findings.py | script | 4.7 KB |
| scripts/validate_context.pyexecutable | script | 1.7 KB |
scripts/validate_context.py
View on GitHub#!/usr/bin/env python3
"""Validate a work-context document's schema, classification, sources and conflicts.
Usage:
python3 validate_context.py --context My-Work-Context.md [--json]
Emits mechanical findings only. It never resolves a conflict it finds — that is
the behaviour it exists to protect.
Author: ClinPharm PMx Skills contributors
Date: 2026-08-06
Dependencies: Python standard library only
"""
from __future__ import annotations
import argparse
import json
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
import context_validation as engine
def main() -> int:
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument("--context", required=True)
ap.add_argument("--locator", default="work context")
ap.add_argument("--json", action="store_true")
a = ap.parse_args()
path = Path(a.context)
if not path.is_file():
print(f"CANNOT_ASSESS: input not found: {a.context}", file=sys.stderr)
return 2
report = engine.check(path.read_text(encoding="utf-8", errors="replace"), a.locator)
if a.json:
print(json.dumps({"summary": report.summary(), "counts": report.counts,
"findings": [f.as_dict() for f in report.findings],
"not_assessable": report.unassessable}, indent=2))
else:
print(report.summary())
for f in report.findings:
print(f"- [{f.severity}] {f.rule}: {f.item} — {f.observed}; expected {f.expected}")
for u in report.unassessable:
print(f"- NOT ASSESSABLE: {u['item']} — {u['why']}; resolved by {u['resolved_by']}")
return 1 if report.findings else 0
if __name__ == "__main__":
raise SystemExit(main())
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: 471k | 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: 322k | 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: 322k | 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: 322k | Updated | Claude CodeCodex | Verified | Install |