bdistill-extract
Domain Knowledge and Rules Extraction
Extract structured domain knowledge or IF-THEN decision rules from an AI model's training knowledge. Each extraction session appends to a persistent, deduplicated JSONL file scoped by domain name. Adversarial validation is on by default — every answer gets challenged for evidence before it earns a high confidence score.
When to use
- Build a reference knowledge base for your niche domain (one session or many)
- Extract IF-THEN decision rules with specific numeric thresholds
- Stop re-asking the same domain questions every session — persist answers to disk
- Generate adversarially validated entries where each claim is challenged for evidence
- Build training data for fine-tuning downstream models (feeds bdistill-export)
Choosing mode: knowledge vs rules
Use mode: rules when the user needs IF-THEN logic for decision systems, monitoring, or automation. Signal words: "thresholds", "triggers", "rules", "criteria", "limits", "when should I", "at what point", "decision logic", "classification rules".
Use mode: knowledge when the user needs reference material, explanations, or training data. Signal words: "explain", "how does X work", "what is", "knowledge base", "reference", "training data", "Q&A".
When ambiguous, ask: "Do you need structured IF-THEN rules with numeric thresholds (for a decision system or monitoring), or Q&A reference knowledge (for a searchable KB or training data)?"
More from francyjglisboa/bdistill-skills
bdistill-export
Export a bdistill knowledge base into any format — system prompt for Claude Projects/Cursor/Copilot/ChatGPT, Python harness module with build_prompt(), JSON for agent consumption, Excel with quality color-coding, audit checklist CSV, or fine-tuning JSONL. Triggers on "export", "system prompt", "harness", "training data", "Excel export", "export for Claude Project". Outputs file on disk.
1bdistill-xray
Probe any AI model's behavioral patterns across 6 dimensions — tool use, refusal boundaries, formatting defaults, reasoning style, persona stability, and grounding/hallucination resistance. The model probes itself, no API key needed. Generates a visual report. Triggers on "x-ray", "probe behavior", "behavioral analysis", "model evaluation", "how does this model behave". Outputs behavioral profile with scores.
1bdistill-predict
Assemble structured predictions with decomposed evidence, adversarial self-challenge, and calibrated probability. Supports binary YES/NO mode (prediction markets, any yes/no question) and directional mode. Optionally recalls from your KB and searches the web for current data. Triggers on "predict", "forecast", "what happens if", "probability of", "will X happen". Outputs prediction card with evidence chain.
1bdistill-operationalize
Connect exported rules to live data for automated monitoring. Loads a bdistill rules export, fetches current data from free APIs or local feeds, contrasts each rule's conditions against reality, and reports which rules triggered with current values and impact estimates. Works with any domain — weather, market, compliance, clinical. Triggers on "operationalize", "monitor", "check against live data", "contrast rules", "what's triggered". Outputs decision report.
1bdistill-validate
Detect confabulated claims by re-asking entries with rephrased questions and measuring variance — both numeric stability (do the numbers stay the same?) and structural stability (do the conditions, scope, and reasoning stay the same?). Use after bdistill-extract to filter your KB before export. Triggers on "validate KB", "consistency check", "are these numbers real", "verify thresholds", "detect hallucination", "stability check". Outputs stability scores per entry.
1bdistill-abstract
Extract structural rules from one domain, abstract to bare skeletons at three granularity levels, then re-instantiate in other domains to discover non-obvious cross-domain correspondences. Filters with mandatory web-grounded novelty check AND adversarial validity challenge AND reverse round-trip validation. Triggers on "abstract rules", "cross-domain", "structural analogy", "what pattern in X applies to Y", "transfer rules between domains". Outputs validated cross-domain rule correspondences with structured testable predictions.
1