Sat score

From DogaOztuzun/branchdeck · View interactive version

Sat score is an AI agent skill from the GitHub repository DogaOztuzun/branchdeck. Score user satisfaction from SAT run trajectories and screenshots. Reads trajectory JSON and screenshots from sat/runs/run-{timestamp}/, personas from sat/personas/, scenarios from sat/scenarios/. Produces scores.json, report.md, and updates learnings.yaml. Use when user says "score sat run", "sat s

How to use this skill

Skill file

SAT Satisfaction Scorer

You evaluate user satisfaction by analyzing trajectory data and screenshots from a SAT run. For each scenario, you score satisfaction through each persona's behavioral lens, identify UX issues, and produce an actionable report.

Arguments

The user may provide:

Step 1: Load Inputs

Find the run directory

If no run argument provided, find the most recent run:

ls -dt sat/runs/run-*/ | head -1

If no run directories exist, STOP: "No SAT runs found. Run /sat-run first."

Set RUN_DIR to the selected run directory.

Load trajectories

Read all trajectory-*.json files from RUN_DIR. Each trajectory has:

If no trajectory files exist, STOP: "No trajectory files in RUN_DIR."

Load personas

Read all sat/personas/*.yaml files. Each persona has:

Load scenarios

For each trajectory, read the matching scenario from sat/scenarios/{scenario_id}.md to get:

Load previous scores (if any)

Check if a previous scores.json exists in any earlier run directory. If found, read overall_score to calculate delta.

Load learnings

Read sat/learnings.yaml. Use fixed_issues and false_positives to avoid re-reporting known items.

Step 2: Score Each Trajectory

For each trajectory, analyze through every persona's lens:

Screenshot Analysis

For each step in the trajectory:

  1. Read the before screenshot — what the user sees before acting
  2. Read the after screenshot — what changed after the action
  3. Consider the page_summary for additional context
  4. Note whether the step succeeded or failed, and why

Persona Scoring

For each persona, evaluate the trajectory against their satisfaction_criteria and behaviors:

Score each scenario 0-100 per persona based on:

Issue Identification

For each problem found, create an issue entry:

{
  "severity": "high | medium | low",
  "type": "ux-friction | missing-feedback | accessibility | performance | error-handling",
  "scenario_id": "<id>",
  "step": <step_number>,
  "description": "<what's wrong>",
  "persona": "<which persona is most affected>",
  "persona_impact": "<how this persona experiences the problem>",
  "classification": "app_issue | runner_issue | scenario_issue"
}

Classification rules:

Severity rules:

Check against learnings: If an issue matches a fixed_issues entry, skip it. If it matches a false_positives pattern, classify as runner_issue instead.

Step 3: Write scores.json

Write to {RUN_DIR}/scores.json following the architecture contract:

{
  "run_id": "<run directory name>",
  "timestamp": "<current ISO timestamp>",
  "scenarios_scored": <count>,
  "overall_score": <weighted average 0-100>,
  "previous_score": <from previous run or null>,
  "delta": <current - previous or null>,
  "issues": [ ... ],
  "persona_scores": {
    "confused-newbie": <0-100>,
    "power-user": <0-100>,
    "accessibility-user": <0-100>
  },
  "scenario_scores": {
    "<scenario-id>": {
      "score": <0-100>,
      "step_pass_rate": <0.0-1.0>,
      "issues_found": <count>,
      "persona_scores": {
        "confused-newbie": <0-100>,
        "power-user": <0-100>,
        "accessibility-user": <0-100>
      }
    }
  }
}

Overall score calculation:

Step 4: Write report.md

Write a human-readable report to {RUN_DIR}/report.md:

# SAT Satisfaction Report

**Run:** {run_id}
**Date:** {timestamp}
**Scenarios scored:** {count}
**Overall score:** {score}/100 (delta: {delta})

## Persona Scores

| Persona | Score | Key Finding |
|---------|-------|-------------|
| Confused Newbie | {score} | {one-line summary} |
| Power User | {score} | {one-line summary} |
| Accessibility User | {score} | {one-line summary} |

## Issues ({count})

### High Severity

- **{scenario_id} step {n}**: {description}
  - Persona impact ({persona}): {persona_impact}

### Medium Severity
...

### Low Severity
...

## Scenario Details

### {scenario_title} — {score}/100
- Steps: {passed}/{total} passed
- Issues: {list}
- Screenshots: {link to before/after of worst step}

## Runner Issues (not app problems)

{list of runner_issue classified items — these need sat-run improvements, not app fixes}

## Scenario Issues (need regeneration)

{list of scenario_issue classified items — these need sat-generate improvements}

Step 5: Update learnings.yaml

Read the current sat/learnings.yaml and append new findings:

Do NOT modify fixed_issues or false_positives — those are human-curated.

Write the updated sat/learnings.yaml.

Step 6: Present Summary

Report to the user:

If score > 80: "The app is in good shape. Focus on the medium-severity items."

If score 60-80: "Several UX friction points need attention. Start with the high-severity issues."

If score < 60: "Significant satisfaction gaps. The high-severity issues are blocking core flows."

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.