Sandbox
@limingrui679-design/high-stakes-analytics-decision-lab

Agent Skill for evidence-gated analytics reports

This repository packages a skill that profiles data, checks readiness, routes a question to the right kind of analysis, and generates a source-backed report. It keeps the original source, contract, and provenance visible, and only adds a decision brief when the evidence supports one.

576 stars58 forksPythonUpdated 10d ago
Who it's for

Builders who want their agent to handle high-stakes analysis with explicit data gates, provenance, and bounded outputs.

What it delivers

You can move from an ambiguous question to a reproducible evidence report without turning weak data into a stronger claim.

What it does

Data readiness gate

Preserves the original source, checks grain, keys, schema, quality, and privacy, and stops when a transformation needs approval.

Adaptive route selection

Chooses descriptive, diagnostic, predictive, or prescriptive work only when the evidence supports that route.

Source-backed reporting

Produces an Evidence Intelligence Report with linked figures, JSON results, hashes, and rerunnable code.

Conditional decision layer

Adds a Decision Intelligence Brief only when a separate action decision is justified.

Reproducible verification

Includes tests, rebuild scripts, and verification guides so the portfolio can be reproduced from the repo.

How to get it

  1. 1Run
    npx skills add limingrui679-design/high-stakes-analytics-decision-lab -g

README

High-Stakes Analytics & Decision Lab routes a question to an Evidence Intelligence Report and adds a Decision Intelligence Brief only when justified

High-Stakes Analytics & Decision Lab

Evidence-gated analytics for consequential questions.
Move from an ambiguous decision to reproducible evidence—and only then, when justified, to bounded action.

Release v1.1.2 Verification status CodeQL status MIT License

Quick start · Architecture · Live explorer · Portfolio · Documentation · Contributing

Why this exists

High-stakes analysis often fails before the model: the question is underspecified, the data contract is implicit, cleaning choices are hidden, uncertainty is treated as independent, or a recommendation is written because the template expects one.

This repository is a platform-neutral Agent Skill and reproducible research portfolio built around a stricter sequence:

PrincipleSystem behavior
Evidence before methodDeclare the question, population, grain, target quantity, horizon, lineage, and claim boundary first
Readiness before analysisPreserve the source, profile quality and privacy, and pause on material transformations
Adaptive routesAdd descriptive, diagnostic, predictive, or prescriptive work only when justified
Honest endpointsAccept an evidence request, negative validation, do_not_deploy, or no recommendation
Dependent uncertaintyRetain shared time, market, participant, campaign, operational, and spatial shocks
Traceable communicationLink claims and accessible figures to JSON, CSV, hashes, and rerunnable code

The result is not a fixed report generator. It is an evidence-gated orchestration system that can stop, ask for a named decision, or produce a bounded analytical product without upgrading weak evidence into a stronger claim.

Start in three steps

1. Install the Skill

npx skills add limingrui679-design/high-stakes-analytics-decision-lab -g

The Agent Skills installer discovers the compact package under skills/high-stakes-analytics-decision-lab/: 39 files and about 472 KiB, rather than the full research portfolio. Its machine-readable file and hash contract is in bundle-manifest.json.

Use docs/getting-started.md for Codex-specific, no-install, and direct repository options.

2. Ask for the evidence outcome

$high-stakes-analytics-decision-lab
Run the data-readiness gate on this source, preserve the original file, and
select only the analytical routes the evidence supports. Produce an Evidence
Intelligence Report. Add a Decision Intelligence Brief only if the evidence
and decision context justify one.

Start with the decision or evidence question—not a preferred model. A valid result may be a bounded action, a pilot requirement, targeted diligence, an evidence request, negative validation, or do_not_deploy.

3. Review the evidence package

Every complete project keeps the narrative, machine result, visual evidence, and source lineage together:

report.md                    # primary Evidence Intelligence Report
results.json                 # machine-readable analytical result
chart-map.json               # figure-to-question and source contract
figures/*.svg                # accessible analytical visuals

A justified decision layer adds decision-report.md, decision-results.json, and its own figure contract. It never replaces the primary evidence product.

Direct repository entry points

Starting pointCommand or guideOutcome
Environment auditpython3 scripts/hsadl.py doctorPython, runtime, template, write-access, and Skill-footprint checks
Safe 60-second walkthroughpython3 scripts/hsadl.py demo --output-dir build/demoSynthetic source preservation, contract, quality gate, route, and accessible SVGs; no model or recommendation
Question onlypython3 scripts/hsadl.py route "<question>" --scope full --output-dir <path>Evidence and method blueprint; no invented result
Question plus datapython3 scripts/hsadl.py start <data.csv> --question "<question>" --output-dir <path>Preserved source, draft contract, readiness profile, and unresolved decisions
Existing decision casepython3 scripts/hsadl.py validate <case.json> then python3 scripts/hsadl.py run <case.json> --output-dir <path>Validated expected, tail, sensitivity, provenance, and group-impact outputs
Worked precedentsFifteen-project portfolioComplete source-to-report evidence paths

How it works

Adaptive reporting routes the case before choosing fields, methods, figures, and terminal status

The fixed evidence spine remains stable while the case-specific analytical layer changes.

Fixed evidence spineAdaptive case layer
Question, population, unit, target quantity, and horizonRoute, fields, methods, and validation
Source lineage, quality status, and reproducibilityFigures, report sections, and decision criteria
Uncertainty, limitations, and claim boundaryBounded action, evidence request, or stopping status

The data gate can stop the workflow

Uploaded row-level data do not go directly into a model. The system preserves the original, establishes a contract, checks grain and keys, profiles quality and privacy, and produces a dry-run remediation plan.

Gate statusMeaningPermitted next step
readyNo material failure under the declared contractContinue
ready_with_documented_limitationsLocalized issues remainContinue with visible limits
needs_user_confirmationA substantive transformation, privacy, or intended-use choice remainsPause for a named approval or clarification
blockedGrain, key, schema, leakage, or another critical failure invalidates the routeStop and request corrected evidence

Only safe normalization can run without approval. Deletion, imputation, outlier treatment, category merging, unit conversion, target correction, and grain changes require explicit action IDs. The processed copy never overwrites the source.

Four routes, no mandatory recommendation

RouteQuestionRequired disciplineValid endpoint
DescriptiveWhat is happening?Denominators, coverage, trends, segments, and missingnessBaseline report or evidence request
DiagnosticWhy might it be happening?Contributions, competing explanations, hypotheses, and a visible causal boundaryPrioritized explanations to test
PredictiveWhat is likely next?Target, horizon, baseline, held-out validation, calibration, subgroup error, and driftValidated prediction, negative validation, or do_not_deploy
PrescriptiveWhat should be done, if justified?Owner, alternatives, constraints, dependence, tail risk, sensitivity, and reversal conditionsBounded action or no decision-ready recommendation

Routes may compose, but a later route cannot erase the quality and evidence requirements of an earlier stage. Read the full system design in docs/architecture.md.

Two products, one evidence contract

The Evidence Intelligence Report is primary and the Decision Intelligence Brief is conditional

ProductMain questionContentsExistence rule
Evidence Intelligence ReportWhat does the evidence establish?Source and QA contract, methods, validation, figures, uncertainty, limitations, lineage, and reproducibilityPrimary record for every complete project
Decision Intelligence BriefWhat action, pilot, diligence, evidence request, or stop follows?Decision status, alternatives, constraints, shared shocks, tail risk, sensitivity, and reversal conditionsConditional; only when a separate decision layer is justified

Every material figure is generated from the shared editorial evidence system, includes a title and description, and is paired with its analytical question, supported interpretation, and claim boundary. The visual system is part of the evidence contract, not decorative reporting.

Fifteen complete evidence paths

Fifteen real-data cases and their evidence-matched analytical paths

The public portfolio contains 15 primary reports and 10 conditional briefs—25 intelligence products in total—plus 119 canonical accessible figures: 50 evidence figures and 69 decision figures.

The cases span operational demand, distribution shift, scarce-capacity pilots, temporal model transport, tail-risk decisions, human-in-the-loop triage, commercial diligence, mitigation allocation, filing review, clustered field experiments, survival evidence, policy evaluation, repeated-measures inference, population transportability, and spatial equity.

They intentionally end differently: some support a bounded decision, some require a pilot or targeted review, and some stop at an evidence request or do_not_deploy.

ExploreOpen
Searchable route and capability explorerLive case atlas · local source
Visual case galleryPortfolio overview
Machine-readable catalogcases.json
School-neutral capability pathscapability-map.json
Rebuild and comparison contractVerification guide
Method and domain routingmethod-domain-map.json

Verification you can reproduce

The current stable release is v1.1.2. Its versioned source package and SHA-256 checksum are published together; the release identity is also recorded in CITATION.cff, CHANGELOG.md, and RELEASE-MANIFEST.json.

make verify

This runs the standalone regression suite and rebuilds all fifteen projects in an isolated verified-file copy. Use make quality for the tracked-secret scan, Ruff, mypy, and codespell; use docs/verification.md for direct commands, static security gates, and no-Git release verification.

The 106 public tests cover data readiness, adaptive routing, numerical behavior, source and artifact identity, package integrity, local links, accessible SVGs, generator idempotence, compact installation, quickstart safety, interactive explorer synchronization, no-Git releases, DNS and SSRF boundaries, and source parser security. The complete 106-test standalone regression suite and the fifteen-project rebuild are separate gates: successful reproduction establishes the reviewed workflow and declared numerical tolerance, not empirical validity, external adoption, or real-world impact.

CI exercises Python 3.11, 3.12, 3.13, and 3.14. Security checks include the tracked-secret gate, Bandit, dependency auditing, hardened source-builder tests, targeted branch coverage, and CodeQL.

Repository design

high-stakes-analytics-decision-lab/
├── skills/high-stakes-analytics-decision-lab/
│   └── SKILL.md                 # compact, installable Agent Skill package
├── demo/                        # dependency-free interactive case explorer
├── docs/                        # onboarding, architecture, layout, verification
├── references/                  # enforceable method and evidence contracts
├── assets/                      # templates and canonical README visuals
├── scripts/                     # profiling, routing, analysis, generation, checks
├── examples/real-data-cases/    # fifteen reproducible evidence projects
├── tests/                       # standalone contract and regression suite
└── .github/                     # CI, security, issue, and PR workflows

The nested Skill package prevents compatible installers from copying the full portfolio. It is generated from the canonical root scripts, references, and templates by scripts/build_skill_bundle.py; the full cases remain in examples/. Human guides live in docs/; precise runtime rules live in references/; generated evidence stays beside the project that produced it. See docs/repository-layout.md before moving or regenerating files.

Documentation

GuideUse it for
Documentation homeChoose a user, reviewer, or maintainer path
Getting startedInstall, route a question, profile data, and run a case
ArchitectureUnderstand gates, routes, products, the decision engine, and visual evidence
Repository layoutDistinguish runtime contracts, human guides, canonical sources, and generated files
VerificationReproduce tests, portfolio outputs, quality checks, and release gates
ContributingChange code, documentation, sources, or cases without breaking evidence boundaries
SecurityReport a vulnerability privately

Responsible-use boundary

This is a public, tested research and portfolio prototype. It does not establish production readiness, institutional adoption, medical advice, investment advice, a regulatory finding, an assurance opinion, or achieved real-world impact. A reproducible result can still be decision-inappropriate; domain review remains mandatory before operational use.

Citation and license

Cite the version reviewed using CITATION.cff. Public release history is in CHANGELOG.md, and component-version boundaries are in VERSIONING.md.

Licensed under the MIT License.

Files in the repo

Repository payload26 top-level entries
  • .github
  • assets
  • demo
  • docs
  • examples
  • pages
  • references
  • scripts
  • skills
  • tests
  • .codespellrc
  • .gitignore
  • CHANGELOG.md
  • CITATION.cff
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • LICENSE.txt
  • Makefile
  • pyproject.toml
  • README.md
  • RELEASE-MANIFEST.json
  • requirements-dev.txt
  • requirements-maintenance.txt
  • requirements-security.txt
  • SECURITY.md
  • VERSIONING.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k