Skip to content

malekokour/clinpharm-pmx-skills / skills/build-work-context

build-work-context

Verified

Builds, 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.

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())
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall