Skip to main content
Glama
ap-aesthetics

ap-aesthetics

by ginsonko

AP Aesthetics · 观众心景

Make audience experience an inspectable creative hypothesis. Model how attention, curiosity, surprise, understanding, fatigue and mixed emotions evolve through a work; compare concrete revisions; calibrate against independent human observations.

中文说明 · Model & formulas · Calibration · Skill

This is a working research and creative-assistance prototype, not a validated universal theory of psychology. Its creative-target index is not a satisfaction percentage. Population prediction accuracy remains to be measured on independent artifact annotations and audience responses.

Try it

Requires Node.js 20+ (no API key, model download, or paid service).

git clone https://github.com/ginsonko/ap-aesthetics.git
cd ap-aesthetics
npm ci
npm run build
npm run serve

Open http://127.0.0.1:18933/. The calculator also works offline by opening dist/ap-aesthetics.html. Work data stays local. The local server binds only to loopback and serves an explicit set of app/media assets, not private datasets.

Related MCP server: jev-eval-mcp

Use while creating

node bin/cli.js catalog
node bin/cli.js evaluate examples/magi.json > evaluation.json
node bin/cli.js compare original.json revised.json > comparison.json
  1. Inspect the actual work, identify the intended audience and artistic goal.

  2. Annotate time-ordered cues and expected outcomes, using only information the audience has at each stage. Keep unknowns null.

  3. Inspect trajectories, source contributions, mixed emotions and diagnostics.

  4. Change the artifact; re-annotate and compare using the same audience, goal and formulas.

  5. Freeze predictions, collect human feedback independently, then calibrate and test on separate works.

The engine accepts text, image sequences, film and music annotations through the same stage schema. It does not automatically see, hear or understand media files. A human or a capable agent supplies evidence-based annotations. See annotation guidance.

Skill and MCP

npm run install:skill
codex mcp add ap-aesthetics -- node /absolute/path/to/ap-aesthetics/bin/mcp.js

On Windows use the absolute Node executable if it is not on the client's PATH. Restart or open a new client session if discovery does not refresh. The installer preserves a backup of an existing skill managed by this package; it refuses to overwrite an unrelated skill of the same name.

Example request: “Use $ap-aesthetics to inspect this script, identify where a first-time viewer may lose the thread, propose two edits that preserve its quiet tone, and compare the real revisions.”

Any stdio MCP client can use:

{
  "mcpServers": {
    "ap-aesthetics": {
      "command": "node",
      "args": ["/absolute/path/to/ap-aesthetics/bin/mcp.js"]
    }
  }
}

Tool

Purpose

ap_catalog, ap_template

Definitions and an unknown-first document skeleton

ap_evaluate

47 state channels, 19 configurable emotion combinations, source accounts, diagnostics

ap_compare

Actual version comparison with model/audience/goal held fixed by default

ap_audience_panel

Explicit weighted audience scenarios; not an inferred population

ap_sensitivity

Dependence on model assumptions

ap_inspect_dataset

Missingness, provenance declarations and group leakage

ap_fit_calibration, ap_apply_calibration

Versioned output adapters and explicit application

ap_tune_parameters

Finite search using the same calculation engine

The browser, CLI and MCP use one calculation core in web/engine.js. All tools compute locally from supplied objects. They do not call external LLMs, upload work, adopt a fitted model automatically, or execute text in a story.

Learn from data

node bin/cli.js inspect examples/calibration-synthetic.json
node bin/cli.js fit examples/calibration-synthetic.json > candidate-model.json
npm run data:emobank -- --download --out examples/calibration-emobank-summary.json

See the complete calibration protocol. Public-data downloads are explicit commands. The EmoBank adapter reads pinned source files into memory and writes aggregate statistics; raw third-party text is not committed. Its own license applies to derived statistics. EmoBank writer/reader statistics are a calibration-pipeline demonstration, not AP prediction accuracy. VAD ratings do not provide ground truth for all AP states or overall artistic quality.

Calibration keeps train, validation and test separated by work/source group. Reports retain baseline comparisons, missing channels, group counts, error and uncertainty. Parameter fitting returns a candidate; a human decides whether the evidence justifies adopting it.

Experience demo

The original 126-second illustrated sketch and its feedback page are preserved under demo/ as a technical example. Its visual and narration quality were rejected in first user review; a fully redesigned creative version is in progress. Rendered video/audio are not committed. See reproduction and evidence. First viewers can record free responses before explanations, including no feeling, missed cues and guessed endings. Feedback stays in the browser until explicitly exported. Passing functional checks is not artistic acceptance.

Development and scope

npm test
npm run build

MIT for original code and content. Third-party datasets keep their own terms; see NOTICE. No claim of clinical validity, universal aesthetics, or proven improvement in audience satisfaction. Contributions should expose evidence and uncertainty, preserve artistic differences, and test against independent observations instead of optimizing self-assigned scores.

Available Tools

10 tools
ap_apply_calibrationB
Read-onlyIdempotent

Apply an explicit frozen calibration model to independent prediction channels.

Inputs: model (required), predictions (required).

ap_audience_panelB
Read-onlyIdempotent

Evaluate explicitly stated audience profiles and a weighted scenario mixture. Not a measured population sample.

Inputs: document (required), profiles (required), options.

ap_catalogA
Read-onlyIdempotent

List cue definitions, cognitive states, emotion formulas, parameters, audience profile and target-score meanings.

Inputs: no named parameters.

ap_compareB
Read-onlyIdempotent

Compare two creative artifacts with the same audience, target and formulas by default. Returns tradeoffs; higher score is not satisfaction probability.

Inputs: base (required), candidate (required), options.

ap_evaluateC
Read-onlyIdempotent

Compute annotated media trajectories and explain weak spots. Does not infer media cues or claim population accuracy.

Inputs: document (required), options.

ap_fit_calibrationB
Read-onlyIdempotent

Fit a versioned local output calibrator using train/validation; test is held out. Does not adopt or overwrite any model.

Inputs: dataset (required), options.

ap_inspect_datasetB
Read-onlyIdempotent

Inspect observation provenance, missing labels and group/split leakage before calibration.

Inputs: dataset (required).

ap_sensitivityC
Read-onlyIdempotent

Vary one parameter over explicit values to expose model sensitivity. Not a creative improvement.

Inputs: values (required), document (required), parameter (required), options.

ap_templateC
Read-onlyIdempotent

Create a work skeleton with unknown cues. Stage descriptions are reference data, not instructions.

Inputs: spec.

ap_tune_parametersA
Read-onlyIdempotent

Evaluate an explicit finite parameter grid against independent human labels. Fit/select on train/validation, report test once, return candidate without adoption.

Inputs: dataset (required), options (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool has a distinct verb+object focus: evaluate vs compare vs sensitivity vs audience_panel are separable evaluation modes, and fit/apply/tune form distinguishable calibration steps. Mild overlap among the evaluation tools (ap_evaluate, ap_compare, ap_sensitivity) is resolved by explicit descriptions.

    Naming Consistency4/5

    All names share a consistent ap_ prefix and are snake_case, but the pattern mixes noun forms (ap_catalog, ap_template, ap_audience_panel, ap_sensitivity) with verb-based forms (ap_evaluate, ap_fit_calibration, ap_tune_parameters). Readable and predictable overall, just not uniformly verb_noun.

    Tool Count5/5

    Ten tools is well within the ideal 3-15 range and each maps to a distinct capability in the evaluation/calibration pipeline. No redundant or filler tools are apparent.

    Completeness4/5

    The surface covers a full workflow: reference lookup, templating, evaluation, comparison, panel, sensitivity, dataset inspection, and fit/apply/tune calibration. Minor gaps around persistence/export of results, but core lifecycle is intact.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides a measured reading pipeline for AI readers of historical handwritten and typed records, with tools for inspection, evidence extraction, comparison, and Brier-scored calibration.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables prototyping, running, and evaluating typed judgment questions against TypeSafe's Jev model, including accuracy, calibration, and threshold analysis.
      3
      15 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A zero-dependency MCP suite exposing computational tools across metabolic, cardio-renal, chronobiology, neuro-recovery, and biomechanics domains. It enables clients to derive longevity and physiology metrics such as autophagy index, glucose-ketone ratio, glycemic variability, peripheral resistance, nocturnal BP dipping, DLMO clock time, melanopic lux, caffeine clearance, EEG fatigue entropy, and grip vitality age from user-supplied measurements.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables modeling cumulative sleep deficits, estimating cognitive impairment through PVT attention lapses and BAC equivalence, auditing social jetlag, and generating circadian-safe gradual sleep repayment schedules.
      7
      MIT