agentleFS
HarrypatriaHarrypatria/data-mining-ml/skills/problem-framing/SKILL.md

problem-framing

Skill2 starsChanged 12 days agoMITView on GitHub

Problem Framing. Turn a business brief, PRD, dataset description or stakeholder question into a one-page ANALYSIS_MANIFEST.md before any modeling. Use when someone asks what to predict, how to measure success, which metric or baseline to use, the cost of errors, or how to scope a machine learning, data science, data mining, predictive modeling, forecasting, segmentation, churn, fraud, risk scoring or A/B testing project. CRISP-DM Business Understanding.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user only if the answer changes the architecture and cannot be assumed.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Problem Framing

Goal: one page that makes every later choice defensible. No data is touched until the manifest exists.

Steps

  1. Extract from the brief, in the stakeholder's words:
    • Decision the output informs, who makes it, how often, and what happens today (the baseline process).
    • Unit of prediction (customer per month, transaction, store per week) and prediction time (when the score must exist).
    • Success metric tied to the decision, plus a guardrail metric.
    • Cost of each error type. Fill a cost matrix even if rough: cost of a false positive, cost of a false negative, value of a true positive.
    • Constraints: latency, interpretability, regulation, fairness, data residency, budget.
    • Stakeholders and the audience for explanations.
    • Data touchpoints: sources, grain, history length, label definition and label delay.
    • Expected prevalence of the target if known.
  2. Classify the archetype (see references/archetypes.md): churn, demand forecasting, fraud or anomaly detection, A/B analysis, segmentation, recommender, NLP classification, risk scoring. The archetype sets default split strategy, headline metric and traps.
  3. Choose the baseline that the model must beat: current rule, majority class, last value, seasonal naive, or a logistic or linear regression.
  4. Pick the headline metric by cost (model-evaluation/references/imbalance-and-metrics.md). Never accuracy alone on imbalanced targets.
  5. Write ANALYSIS_MANIFEST.md from references/manifest-template.md. Keep it to one page. Mark each assumption with Assumption:.
  6. Plan phases with CRISP-ML(Q) rows: for each phase one risk, its assumption and a mitigation.

Questions that change the design

Ask the user only if the answer changes the architecture and cannot be assumed. Otherwise state the assumption in one line and continue.

  • Is the decision made per entity in batch, or per request in real time?
  • Is the label available at prediction time for past periods only (label delay)?
  • Will a person act on each prediction (review queue capacity sets precision at k)?
  • Are people affected by the decision (fairness analysis becomes mandatory)?

Exit criteria

  • Decision, metric, cost matrix, baseline and prevalence written.
  • Leakage-relevant timing written: prediction time and feature availability.
  • Deliverables listed: notebooks, model bundle, API, web app, explainer, report.
  • RIGOR gates that will be hard to meet are named now, not at the end.

Anti-patterns

  • Starting with "which algorithm" before "which decision".
  • A metric the business cannot act on (ROC-AUC for a review queue of 50 cases a day).
  • A target defined with information from after the prediction time.
  • Prevalence ignored, so the threshold defaults to 0.5.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.