Spaces:
Running
Running
Deploy writing-skill site
Browse files- README.md +2 -2
- SPACE_README.md +2 -2
- app.js +108 -104
- data.json +0 -0
- dl/storyscope.zip +1 -1
- dl/writing-skill-storyscope.zip +1 -1
- dl/writing-skill.zip +1 -1
- index.html +47 -83
- style.css +103 -147
README.md
CHANGED
|
@@ -7,7 +7,7 @@ sdk: static
|
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
-
short_description:
|
| 11 |
---
|
| 12 |
|
| 13 |
-
Static site for [in-c0/writing-skill](https://github.com/in-c0/writing-skill):
|
|
|
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
+
short_description: Blind writing samples, scores and the skills
|
| 11 |
---
|
| 12 |
|
| 13 |
+
Static site for [in-c0/writing-skill](https://github.com/in-c0/writing-skill): unedited writing samples, a small blind benchmark with limitations and a neutral-rubric check, optional human judging, copyable prompts and skill downloads. Deployed from GitHub Actions; edit the repo, not this Space.
|
SPACE_README.md
CHANGED
|
@@ -7,7 +7,7 @@ sdk: static
|
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
-
short_description:
|
| 11 |
---
|
| 12 |
|
| 13 |
-
Static site for [in-c0/writing-skill](https://github.com/in-c0/writing-skill):
|
|
|
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
+
short_description: Blind writing samples, scores and the skills
|
| 11 |
---
|
| 12 |
|
| 13 |
+
Static site for [in-c0/writing-skill](https://github.com/in-c0/writing-skill): unedited writing samples, a small blind benchmark with limitations and a neutral-rubric check, optional human judging, copyable prompts and skill downloads. Deployed from GitHub Actions; edit the repo, not this Space.
|
app.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
| 10 |
let D, R;
|
| 11 |
|
| 12 |
-
//
|
| 13 |
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { localStorage.setItem(k, v); } catch {} } };
|
| 14 |
const saved = store.get("ws-theme");
|
| 15 |
if (saved) document.documentElement.dataset.theme = saved;
|
|
@@ -19,32 +19,28 @@
|
|
| 19 |
document.documentElement.dataset.theme = next; store.set("ws-theme", next);
|
| 20 |
});
|
| 21 |
|
| 22 |
-
const toast = (t) => { const el = $("#toast"); el.textContent = t; el.classList.add("on"); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove("on"),
|
| 23 |
async function copy(text, btn) {
|
| 24 |
try { await navigator.clipboard.writeText(text); } catch {
|
| 25 |
const ta = document.createElement("textarea"); ta.value = text; document.body.append(ta); ta.select(); document.execCommand("copy"); ta.remove();
|
| 26 |
}
|
| 27 |
if (btn) { const o = btn.textContent; btn.textContent = "Copied"; btn.classList.add("done"); setTimeout(() => { btn.textContent = o; btn.classList.remove("done"); }, 1400); }
|
| 28 |
-
toast("Copied
|
| 29 |
}
|
| 30 |
-
document.addEventListener("click", (e) => {
|
| 31 |
-
const b = e.target.closest(".cmd .copy"); if (b) copy(b.closest(".cmd").dataset.copy, b);
|
| 32 |
-
});
|
| 33 |
|
| 34 |
-
//
|
| 35 |
-
const esc = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 36 |
const inline = (s) => esc(s).replace(/\*\*(.+?)\*\*/g, "<b>$1</b>").replace(/(^|[^*])\*([^*]+)\*/g, "$1<i>$2</i>").replace(/\[([^\]]+)\]\(([^)]*)\)/g, "<u>$1</u>");
|
| 37 |
function md(src) {
|
| 38 |
-
const out = [];
|
| 39 |
for (const block of src.trim().split(/\n\s*\n/)) {
|
| 40 |
const lines = block.split("\n");
|
| 41 |
-
if (/^#{1,3} /.test(lines[0]) && lines.length === 1) { const n = lines[0].match(/^#+/)[0].length; out.push(`<h${n}>${inline(lines[0].replace(/^#+ /, ""))}</h${n}>`); continue; }
|
| 42 |
-
if (lines.every((l) => /^\s*[-*] /.test(l))) { out.push("<ul>" + lines.map((l) => `<li>${inline(l.replace(/^\s*[-*] /, ""))}</li>`).join("") + "</ul>"); continue; }
|
| 43 |
if (/^#{1,3} /.test(lines[0])) { const n = lines[0].match(/^#+/)[0].length; out.push(`<h${n}>${inline(lines[0].replace(/^#+ /, ""))}</h${n}>`); lines.shift(); }
|
|
|
|
| 44 |
const text = lines.join(" ").trim(); if (!text) continue;
|
| 45 |
if (/^-{3,}$/.test(text)) { out.push("<hr>"); continue; }
|
| 46 |
-
const
|
| 47 |
-
const punch = sentences <= 1 && text.split(/\s+/).length < 8;
|
| 48 |
out.push(`<p${punch ? ' class="punch"' : ""}>${inline(text)}</p>`);
|
| 49 |
}
|
| 50 |
return out.join("");
|
|
@@ -61,7 +57,7 @@
|
|
| 61 |
const nodes = []; while (walker.nextNode()) nodes.push(walker.currentNode);
|
| 62 |
for (const n of nodes) {
|
| 63 |
const t = n.nodeValue; const hits = [];
|
| 64 |
-
for (const [k, re] of TELLS) { re.lastIndex = 0; let m; while ((m = re.exec(t)))
|
| 65 |
if (!hits.length) continue;
|
| 66 |
hits.sort((a, b) => a[0] - b[0]);
|
| 67 |
const frag = document.createDocumentFragment(); let at = 0;
|
|
@@ -70,75 +66,96 @@
|
|
| 70 |
}
|
| 71 |
}
|
| 72 |
function render(el, src) { el.innerHTML = md(src); markTells(el); }
|
|
|
|
| 73 |
|
| 74 |
-
// ---------- hero
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
-
// ----------
|
| 89 |
-
const fmt = (x, d = 1) => (x == null ? "–" : (+x).toFixed(d));
|
| 90 |
function board() {
|
| 91 |
-
const
|
| 92 |
-
const
|
| 93 |
-
$("#podium").innerHTML = rank.map((c, i) => `
|
| 94 |
-
<button class="pod ${i === 0 ? "win" : ""}" data-c="${c}">
|
| 95 |
-
${i === 0 ? '<span class="crown" aria-hidden="true">👑</span>' : ""}
|
| 96 |
-
<div class="place">#${i + 1}</div>
|
| 97 |
-
<div class="name">${NAME[c]}</div>
|
| 98 |
-
<div class="score">${fmt(ov[c].judge_overall)}<small> /10</small></div>
|
| 99 |
-
<div class="bar"><i data-w="${(ov[c].judge_overall || 0) * 10}"></i></div>
|
| 100 |
-
<div class="firsts">${ov[c].firsts} first place${ov[c].firsts === 1 ? "" : "s"} of ${ov[c].judgements}</div>
|
| 101 |
-
</button>`).join("");
|
| 102 |
-
requestAnimationFrame(() => setTimeout(() => $$("#podium .bar i").forEach((i) => (i.style.width = i.dataset.w + "%")), 60));
|
| 103 |
-
$$("#podium .pod").forEach((p) => p.addEventListener("click", () => { $("#right-cfg").value = p.dataset.c; renderPanes(); location.hash = "compare"; }));
|
| 104 |
-
const best = {}; for (const g in GENRE) best[g] = Math.max(...CFG.map((c) => R.per_genre[g][c].overall || 0));
|
| 105 |
const hb = (c) => { const xs = Object.keys(GENRE).map((g) => R.per_genre[g][c].human_bws).filter((x) => x != null); return xs.length ? Math.round(xs.reduce((a, b) => a + b, 0) / xs.length) : null; };
|
| 106 |
-
|
| 107 |
-
|
|
|
|
| 108 |
const st = R.per_genre.story;
|
| 109 |
-
|
|
|
|
|
|
|
| 110 |
$("#signals").innerHTML =
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
`<p class="small">
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
|
| 116 |
-
// ----------
|
| 117 |
-
let genre = "story";
|
| 118 |
function compare() {
|
| 119 |
-
$("#
|
| 120 |
-
$
|
| 121 |
const opts = CFG.map((c) => `<option value="${c}">${NAME[c]}</option>`).join("");
|
| 122 |
$("#left-cfg").innerHTML = opts; $("#right-cfg").innerHTML = opts;
|
| 123 |
-
$("#left-cfg").value = "baseline"; $("#right-cfg").value =
|
| 124 |
["#left-cfg", "#right-cfg", "#brief-sel"].forEach((s) => $(s).addEventListener("change", renderPanes));
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
function fillBriefs() {
|
| 129 |
-
const bs = R.briefs.filter((b) => b.genre === genre);
|
| 130 |
-
$("#brief-sel").innerHTML = bs.map((b) => `<option value="${b.id}">${b.title}</option>`).join("");
|
| 131 |
renderPanes();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
function judgeLine(bid, c) {
|
| 134 |
const pb = (R.per_brief[bid] || {})[c]; if (!pb) return "";
|
| 135 |
-
const js = Object.
|
| 136 |
-
const avg = js.length ? js.reduce((a,
|
| 137 |
-
return `
|
| 138 |
}
|
| 139 |
function renderPanes() {
|
| 140 |
-
const bid = $("#brief-sel").value;
|
| 141 |
-
$("#brief-text").textContent = "Brief: " + br.prompt;
|
| 142 |
for (const side of ["left", "right"]) {
|
| 143 |
const c = $(`#${side}-cfg`).value;
|
| 144 |
render($(`#${side}`), D.outputs[bid][c] || "");
|
|
@@ -146,7 +163,7 @@
|
|
| 146 |
}
|
| 147 |
}
|
| 148 |
|
| 149 |
-
// ---------- arena: blind best/worst,
|
| 150 |
const shuffle = (a) => { a = a.slice(); for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; };
|
| 151 |
const plain = (src) => src.split(/\n\s*\n/).filter((b) => !/^#/.test(b.trim()) && !/^\*\*\[/.test(b.trim())).join(" ").replace(/[*_#>\[\]]/g, "").replace(/\s+/g, " ").trim();
|
| 152 |
function excerpt(src) {
|
|
@@ -156,79 +173,66 @@
|
|
| 156 |
}
|
| 157 |
const A = { round: 0, rounds: [], picks: {}, seconds: {} };
|
| 158 |
function arena() {
|
| 159 |
-
A.rounds = Object.keys(GENRE).map((g) => { const bs = R.briefs.filter((b) => b.genre === g);
|
| 160 |
-
|
| 161 |
-
$("#
|
|
|
|
| 162 |
}
|
| 163 |
-
let tick;
|
| 164 |
function roundView() {
|
| 165 |
const r = A.rounds[A.round]; const st = { best: null, worst: null, t0: Date.now(), locked: false };
|
| 166 |
-
const C = 2 * Math.PI * 19;
|
| 167 |
$("#arena-root").innerHTML = `
|
| 168 |
-
<div class="ar-top">
|
| 169 |
-
<svg class="ring" viewBox="0 0 46 46" aria-hidden="true"><circle class="bg" cx="23" cy="23" r="19"/><circle class="fg" cx="23" cy="23" r="19" stroke-dasharray="${C}" stroke-dashoffset="0"/><text x="23" y="27.5" text-anchor="middle">60</text></svg>
|
| 170 |
-
<div class="ar-title">Round ${A.round + 1}: ${GENRE[r.g]}<small>${esc(r.b.prompt.slice(0, 120))}…</small></div>
|
| 171 |
-
<div class="ar-steps">${A.rounds.map((_, i) => `<i class="${i < A.round ? "done" : i === A.round ? "on" : ""}"></i>`).join("")}</div>
|
| 172 |
-
</div>
|
| 173 |
<div class="cards">${r.order.map((c, i) => `
|
| 174 |
<div class="card" data-c="${c}">
|
| 175 |
-
<div class="who">
|
| 176 |
<div class="ex">${excerpt(D.outputs[r.b.id][c])}</div>
|
| 177 |
-
<button class="full">Read
|
| 178 |
<div class="acts"><button class="b" aria-pressed="false">Best</button><button class="w" aria-pressed="false">Worst</button></div>
|
| 179 |
-
<div class="reveal" hidden></div>
|
| 180 |
</div>`).join("")}</div>
|
| 181 |
-
<div class="ar-foot"><button class="btn" id="ar-
|
| 182 |
-
const fg = $(".ring .fg"), tx = $(".ring text"); let left = 60;
|
| 183 |
-
clearInterval(tick); tick = setInterval(() => { left = Math.max(0, left - 1); tx.textContent = left; fg.style.strokeDashoffset = C * (1 - left / 60); if (left === 0) { fg.style.stroke = "var(--red)"; clearInterval(tick); } }, 1000);
|
| 184 |
$$("#arena-root .card").forEach((card) => {
|
| 185 |
const c = card.dataset.c;
|
| 186 |
-
card.querySelector(".full").addEventListener("click", (e) => { const ex = card.querySelector(".ex");
|
| 187 |
for (const kind of ["best", "worst"]) {
|
| 188 |
card.querySelector(kind === "best" ? ".b" : ".w").addEventListener("click", () => {
|
| 189 |
if (st.locked) return;
|
| 190 |
st[kind] = st[kind] === c ? null : c;
|
| 191 |
if (st.best && st.best === st.worst) st[kind === "best" ? "worst" : "best"] = null;
|
| 192 |
$$("#arena-root .card").forEach((k) => { k.classList.toggle("best", k.dataset.c === st.best); k.classList.toggle("worst", k.dataset.c === st.worst); k.querySelector(".b").setAttribute("aria-pressed", k.dataset.c === st.best); k.querySelector(".w").setAttribute("aria-pressed", k.dataset.c === st.worst); });
|
| 193 |
-
$("#ar-
|
| 194 |
});
|
| 195 |
}
|
| 196 |
});
|
| 197 |
-
$("#ar-
|
| 198 |
if (!st.locked) {
|
| 199 |
-
st.locked = true;
|
| 200 |
A.picks[r.b.id] = { best: st.best, worst: st.worst, shown: r.order }; A.seconds[r.b.id] = Math.round((Date.now() - st.t0) / 1000);
|
| 201 |
-
$$("#arena-root .card").forEach((k
|
| 202 |
-
$("#ar-
|
| 203 |
-
} else { A.round++; A.round <
|
| 204 |
});
|
| 205 |
}
|
| 206 |
function doneView() {
|
| 207 |
const tally = Object.fromEntries(CFG.map((c) => [c, 0]));
|
| 208 |
for (const p of Object.values(A.picks)) { tally[p.best]++; tally[p.worst]--; }
|
| 209 |
const payload = { v: 1, picks: A.picks, seconds: A.seconds, ua: navigator.language, at: new Date().toISOString() };
|
| 210 |
-
const body = `
|
| 211 |
const url = `https://github.com/${REPO}/issues/new?title=${encodeURIComponent("[human-review] 3 rounds")}&body=${encodeURIComponent(body)}`;
|
| 212 |
-
$("#arena-root").innerHTML = `<div class="ar-
|
| 213 |
-
<
|
| 214 |
-
<a class="btn" href="${url}" target="_blank" rel="noopener">
|
| 215 |
-
$("#ar-copy").addEventListener("click", (e) => copy(JSON.stringify(payload), e.target));
|
| 216 |
-
$("#ar-again").addEventListener("click", arena);
|
| 217 |
}
|
| 218 |
|
| 219 |
-
// ----------
|
| 220 |
-
function
|
| 221 |
-
const
|
| 222 |
-
|
| 223 |
-
$("#
|
| 224 |
-
$$("#prompt-grid .btn").forEach((b) => b.addEventListener("click", () => copy(D.prompts[b.dataset.k] + " ", b)));
|
| 225 |
-
$$("#inst-seg button").forEach((b) => b.addEventListener("click", () => { $$("#inst-seg button").forEach((x) => x.setAttribute("aria-selected", x === b)); $$(".inst").forEach((p) => (p.hidden = p.dataset.t !== b.dataset.t)); }));
|
| 226 |
}
|
| 227 |
|
| 228 |
-
// ---------- boot
|
| 229 |
fetch("data.json").then((r) => r.json()).then(async (d) => {
|
| 230 |
D = d; R = d.results;
|
| 231 |
-
try { const live = await fetch(LIVE, { cache: "no-store" }); if (live.ok) { const lr = await live.json(); if (lr.per_genre && lr.
|
| 232 |
-
|
| 233 |
});
|
| 234 |
})();
|
|
|
|
| 9 |
const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
| 10 |
let D, R;
|
| 11 |
|
| 12 |
+
// theme: changes only when the user clicks
|
| 13 |
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { localStorage.setItem(k, v); } catch {} } };
|
| 14 |
const saved = store.get("ws-theme");
|
| 15 |
if (saved) document.documentElement.dataset.theme = saved;
|
|
|
|
| 19 |
document.documentElement.dataset.theme = next; store.set("ws-theme", next);
|
| 20 |
});
|
| 21 |
|
| 22 |
+
const toast = (t) => { const el = $("#toast"); el.textContent = t; el.classList.add("on"); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove("on"), 1600); };
|
| 23 |
async function copy(text, btn) {
|
| 24 |
try { await navigator.clipboard.writeText(text); } catch {
|
| 25 |
const ta = document.createElement("textarea"); ta.value = text; document.body.append(ta); ta.select(); document.execCommand("copy"); ta.remove();
|
| 26 |
}
|
| 27 |
if (btn) { const o = btn.textContent; btn.textContent = "Copied"; btn.classList.add("done"); setTimeout(() => { btn.textContent = o; btn.classList.remove("done"); }, 1400); }
|
| 28 |
+
toast("Copied");
|
| 29 |
}
|
| 30 |
+
document.addEventListener("click", (e) => { const b = e.target.closest(".cmd .copy"); if (b) copy(b.closest(".cmd").dataset.copy, b); });
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
// markdown + surface marks
|
| 33 |
+
const esc = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 34 |
const inline = (s) => esc(s).replace(/\*\*(.+?)\*\*/g, "<b>$1</b>").replace(/(^|[^*])\*([^*]+)\*/g, "$1<i>$2</i>").replace(/\[([^\]]+)\]\(([^)]*)\)/g, "<u>$1</u>");
|
| 35 |
function md(src) {
|
| 36 |
+
const out = [];
|
| 37 |
for (const block of src.trim().split(/\n\s*\n/)) {
|
| 38 |
const lines = block.split("\n");
|
|
|
|
|
|
|
| 39 |
if (/^#{1,3} /.test(lines[0])) { const n = lines[0].match(/^#+/)[0].length; out.push(`<h${n}>${inline(lines[0].replace(/^#+ /, ""))}</h${n}>`); lines.shift(); }
|
| 40 |
+
if (lines.length && lines.every((l) => /^\s*[-*] /.test(l))) { out.push("<ul>" + lines.map((l) => `<li>${inline(l.replace(/^\s*[-*] /, ""))}</li>`).join("") + "</ul>"); continue; }
|
| 41 |
const text = lines.join(" ").trim(); if (!text) continue;
|
| 42 |
if (/^-{3,}$/.test(text)) { out.push("<hr>"); continue; }
|
| 43 |
+
const punch = (text.match(/[.!?](\s|$)/g) || []).length <= 1 && text.split(/\s+/).length < 8;
|
|
|
|
| 44 |
out.push(`<p${punch ? ' class="punch"' : ""}>${inline(text)}</p>`);
|
| 45 |
}
|
| 46 |
return out.join("");
|
|
|
|
| 57 |
const nodes = []; while (walker.nextNode()) nodes.push(walker.currentNode);
|
| 58 |
for (const n of nodes) {
|
| 59 |
const t = n.nodeValue; const hits = [];
|
| 60 |
+
for (const [k, re] of TELLS) { re.lastIndex = 0; let m; while ((m = re.exec(t))) if (m[0]) hits.push([m.index, m.index + m[0].length, k]); }
|
| 61 |
if (!hits.length) continue;
|
| 62 |
hits.sort((a, b) => a[0] - b[0]);
|
| 63 |
const frag = document.createDocumentFragment(); let at = 0;
|
|
|
|
| 66 |
}
|
| 67 |
}
|
| 68 |
function render(el, src) { el.innerHTML = md(src); markTells(el); }
|
| 69 |
+
const fmt = (x, d = 1) => (x == null ? "–" : (+x).toFixed(d));
|
| 70 |
|
| 71 |
+
// ---------- hero: blind pair, the card is the control
|
| 72 |
+
let heroGenre = "journal";
|
| 73 |
+
const pairOrder = {};
|
| 74 |
+
function hero() {
|
| 75 |
+
$("#hero-genres").innerHTML = Object.entries(GENRE).map(([g, n]) => `<button role="tab" data-g="${g}" aria-selected="${g === heroGenre}">${n}</button>`).join("");
|
| 76 |
+
$$("#hero-genres button").forEach((b) => b.addEventListener("click", () => { heroGenre = b.dataset.g; $$("#hero-genres button").forEach((x) => x.setAttribute("aria-selected", x === b)); duel(); }));
|
| 77 |
+
duel();
|
| 78 |
+
}
|
| 79 |
+
function opening(src) {
|
| 80 |
+
const blocks = src.trim().split(/\n\s*\n/);
|
| 81 |
+
let words = 0; const keep = [];
|
| 82 |
+
for (const b of blocks) { keep.push(b); if (!/^#/.test(b)) words += b.split(/\s+/).length; if (words > 110) break; }
|
| 83 |
+
return keep.join("\n\n");
|
| 84 |
+
}
|
| 85 |
+
function duel() {
|
| 86 |
+
const br = R.briefs.find((b) => b.genre === heroGenre);
|
| 87 |
+
pairOrder[heroGenre] ||= Math.random() < 0.5 ? ["baseline", "storyscope"] : ["storyscope", "baseline"];
|
| 88 |
+
$("#hero-brief").textContent = "Brief: " + br.prompt;
|
| 89 |
+
$("#verdict").textContent = "";
|
| 90 |
+
$("#duel").innerHTML = pairOrder[heroGenre].map((c, i) => `
|
| 91 |
+
<button class="draft" data-c="${c}" aria-label="Prefer draft ${"AB"[i]}">
|
| 92 |
+
<span class="tag"><span class="anon">Draft ${"AB"[i]}</span><span class="real">${NAME[c]}</span></span>
|
| 93 |
+
<span class="sample">${md(opening(D.outputs[br.id][c]))}</span>
|
| 94 |
+
<span class="fade" aria-hidden="true"></span>
|
| 95 |
+
</button>`).join("");
|
| 96 |
+
$$("#duel .draft").forEach((d) => d.addEventListener("click", () => pick(d.dataset.c)));
|
| 97 |
+
}
|
| 98 |
+
function pick(c) {
|
| 99 |
+
const duelEl = $("#duel");
|
| 100 |
+
if (duelEl.classList.contains("revealed")) return;
|
| 101 |
+
duelEl.classList.add("revealed");
|
| 102 |
+
$$("#duel .draft").forEach((d) => d.classList.toggle("chosen", d.dataset.c === c));
|
| 103 |
+
const g = R.per_genre[heroGenre].storyscope;
|
| 104 |
+
const n = g.n_judgements;
|
| 105 |
+
$("#verdict").innerHTML = `You picked <b>${NAME[c]}</b>. In this genre the AI judges ranked StoryScope first in ${g.firsts} of ${n} blind judgements, and in ${g.neutral_firsts ?? "–"} of ${n} with the neutral prompt. <a href="#compare" data-brief="${R.briefs.find((b) => b.genre === heroGenre).id}">Read both in full</a>`;
|
| 106 |
+
$("#verdict a").addEventListener("click", (e) => { $("#brief-sel").value = e.target.dataset.brief; $("#left-cfg").value = "baseline"; $("#right-cfg").value = "storyscope"; renderPanes(); });
|
| 107 |
}
|
| 108 |
|
| 109 |
+
// ---------- results: one table
|
|
|
|
| 110 |
function board() {
|
| 111 |
+
const ov = R.overall;
|
| 112 |
+
const order = CFG.slice().sort((a, b) => (ov[b].neutral_overall ?? ov[b].judge_overall) + ov[b].judge_overall - (ov[a].neutral_overall ?? ov[a].judge_overall) - ov[a].judge_overall);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
const hb = (c) => { const xs = Object.keys(GENRE).map((g) => R.per_genre[g][c].human_bws).filter((x) => x != null); return xs.length ? Math.round(xs.reduce((a, b) => a + b, 0) / xs.length) : null; };
|
| 114 |
+
const top = order[0];
|
| 115 |
+
$("#board-table").innerHTML = `<thead><tr><th>Setup</th><th>Score</th><th>Neutral prompt</th><th>First places of 12</th><th>Human picks</th></tr></thead><tbody>` +
|
| 116 |
+
order.map((c) => `<tr class="${c === top ? "lead" : ""}"><td>${NAME[c]}</td><td>${fmt(ov[c].judge_overall, 2)}</td><td>${fmt(ov[c].neutral_overall, 2)}</td><td>${ov[c].firsts} <span class="of">/</span> ${ov[c].neutral_firsts ?? "–"}</td><td>${hb(c) == null ? '<a href="#arena">none yet</a>' : (hb(c) > 0 ? "+" : "") + hb(c)}</td></tr>`).join("") + "</tbody>";
|
| 117 |
const st = R.per_genre.story;
|
| 118 |
+
$("#board-note").textContent = `StoryScope led under both prompts. The gap is smallest on short stories, where the neutral prompt scored it ${fmt(st.storyscope.neutral_overall, 2)} against ${fmt(st.baseline.neutral_overall, 2)} for no skill. Scores are averages out of 10. First places are shown as original / neutral prompt.`;
|
| 119 |
+
const rows = (cols, fn) => order.map((c) => `<tr><td>${NAME[c]}</td>${cols.map((k) => `<td>${fn(c, k)}</td>`).join("")}</tr>`).join("");
|
| 120 |
+
const table = (head, body) => `<div class="table-wrap"><table><thead><tr><th>Setup</th>${head.map((h) => `<th>${h}</th>`).join("")}</tr></thead><tbody>${body}</tbody></table></div>`;
|
| 121 |
$("#signals").innerHTML =
|
| 122 |
+
`<h3>Score by genre (original / neutral prompt)</h3>` + table(Object.values(GENRE), rows(Object.keys(GENRE), (c, g) => `${fmt(R.per_genre[g][c].overall)} / ${fmt(R.per_genre[g][c].neutral_overall)}`)) +
|
| 123 |
+
`<h3>Short stories, StoryScope classifier</h3>` + table(["AI-default index, lower is fewer", "Classifier log-odds"], rows(["ssi", "logit_full"], (c, k) => fmt(st[c][k], k === "ssi" ? 2 : 1))) +
|
| 124 |
+
`<p class="small">Relative only. The classifier was trained on 5,000-word stories annotated by another model, so its absolute values here don't match the paper.</p>` +
|
| 125 |
+
`<h3>Surface patterns per 100 words</h3>` + table(Object.values(GENRE), rows(Object.keys(GENRE), (c, g) => fmt(R.per_genre[g][c].lint, 2))) +
|
| 126 |
+
`<p class="small">writing-skill removes the most of these, yet scored lowest. Fewer patterns did not mean a better read.</p>`;
|
| 127 |
}
|
| 128 |
|
| 129 |
+
// ---------- all drafts
|
|
|
|
| 130 |
function compare() {
|
| 131 |
+
$("#brief-sel").innerHTML = Object.entries(GENRE).map(([g, n]) => `<optgroup label="${n}">${R.briefs.filter((b) => b.genre === g).map((b) => `<option value="${b.id}">${esc(b.title)}</option>`).join("")}</optgroup>`).join("");
|
| 132 |
+
$("#brief-sel").value = R.briefs.find((b) => b.genre === "story").id;
|
| 133 |
const opts = CFG.map((c) => `<option value="${c}">${NAME[c]}</option>`).join("");
|
| 134 |
$("#left-cfg").innerHTML = opts; $("#right-cfg").innerHTML = opts;
|
| 135 |
+
$("#left-cfg").value = "baseline"; $("#right-cfg").value = "storyscope";
|
| 136 |
["#left-cfg", "#right-cfg", "#brief-sel"].forEach((s) => $(s).addEventListener("change", renderPanes));
|
| 137 |
+
const marks = $("#cmp-marks");
|
| 138 |
+
const apply = () => $("#compare").classList.toggle("marks-on", marks.checked);
|
| 139 |
+
marks.addEventListener("change", apply);
|
|
|
|
|
|
|
|
|
|
| 140 |
renderPanes();
|
| 141 |
+
// show once what the switch does: on, then off
|
| 142 |
+
if (!reduce && "IntersectionObserver" in window) {
|
| 143 |
+
const io = new IntersectionObserver((es) => {
|
| 144 |
+
if (!es[0].isIntersecting) return; io.disconnect();
|
| 145 |
+
setTimeout(() => { marks.checked = true; apply(); }, 400);
|
| 146 |
+
setTimeout(() => { marks.checked = false; apply(); }, 2200);
|
| 147 |
+
}, { threshold: 0.35 });
|
| 148 |
+
io.observe($(".panes"));
|
| 149 |
+
}
|
| 150 |
}
|
| 151 |
function judgeLine(bid, c) {
|
| 152 |
const pb = (R.per_brief[bid] || {})[c]; if (!pb) return "";
|
| 153 |
+
const js = Object.values(pb.judges || {});
|
| 154 |
+
const avg = js.length ? js.reduce((a, s) => a + s.overall, 0) / js.length : null;
|
| 155 |
+
return `Judges ${fmt(avg)}/10${js[0] && js[0].note ? ` · “${esc(js[0].note)}”` : ""}`;
|
| 156 |
}
|
| 157 |
function renderPanes() {
|
| 158 |
+
const bid = $("#brief-sel").value;
|
|
|
|
| 159 |
for (const side of ["left", "right"]) {
|
| 160 |
const c = $(`#${side}-cfg`).value;
|
| 161 |
render($(`#${side}`), D.outputs[bid][c] || "");
|
|
|
|
| 163 |
}
|
| 164 |
}
|
| 165 |
|
| 166 |
+
// ---------- arena: blind best/worst, self-paced
|
| 167 |
const shuffle = (a) => { a = a.slice(); for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; };
|
| 168 |
const plain = (src) => src.split(/\n\s*\n/).filter((b) => !/^#/.test(b.trim()) && !/^\*\*\[/.test(b.trim())).join(" ").replace(/[*_#>\[\]]/g, "").replace(/\s+/g, " ").trim();
|
| 169 |
function excerpt(src) {
|
|
|
|
| 173 |
}
|
| 174 |
const A = { round: 0, rounds: [], picks: {}, seconds: {} };
|
| 175 |
function arena() {
|
| 176 |
+
A.rounds = Object.keys(GENRE).map((g) => { const bs = R.briefs.filter((b) => b.genre === g); return { g, b: bs[Math.floor(Math.random() * bs.length)], order: shuffle(CFG) }; });
|
| 177 |
+
A.round = 0; A.picks = {}; A.seconds = {};
|
| 178 |
+
$("#arena-root").innerHTML = `<button class="btn" id="ar-go">Start</button>`;
|
| 179 |
+
$("#ar-go").addEventListener("click", roundView);
|
| 180 |
}
|
|
|
|
| 181 |
function roundView() {
|
| 182 |
const r = A.rounds[A.round]; const st = { best: null, worst: null, t0: Date.now(), locked: false };
|
|
|
|
| 183 |
$("#arena-root").innerHTML = `
|
| 184 |
+
<div class="ar-top"><b>${GENRE[r.g]}</b><span class="small">Round ${A.round + 1} of 3</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
<div class="cards">${r.order.map((c, i) => `
|
| 186 |
<div class="card" data-c="${c}">
|
| 187 |
+
<div class="who">${"ABCD"[i]}<span class="reveal"></span></div>
|
| 188 |
<div class="ex">${excerpt(D.outputs[r.b.id][c])}</div>
|
| 189 |
+
<button class="full">Read in full</button>
|
| 190 |
<div class="acts"><button class="b" aria-pressed="false">Best</button><button class="w" aria-pressed="false">Worst</button></div>
|
|
|
|
| 191 |
</div>`).join("")}</div>
|
| 192 |
+
<div class="ar-foot"><button class="btn" id="ar-next" disabled>Next</button></div>`;
|
|
|
|
|
|
|
| 193 |
$$("#arena-root .card").forEach((card) => {
|
| 194 |
const c = card.dataset.c;
|
| 195 |
+
card.querySelector(".full").addEventListener("click", (e) => { const ex = card.querySelector(".ex"); const open = ex.dataset.full; ex.innerHTML = open ? excerpt(D.outputs[r.b.id][c]) : md(D.outputs[r.b.id][c]); open ? delete ex.dataset.full : (ex.dataset.full = 1); e.target.textContent = open ? "Read in full" : "Show less"; });
|
| 196 |
for (const kind of ["best", "worst"]) {
|
| 197 |
card.querySelector(kind === "best" ? ".b" : ".w").addEventListener("click", () => {
|
| 198 |
if (st.locked) return;
|
| 199 |
st[kind] = st[kind] === c ? null : c;
|
| 200 |
if (st.best && st.best === st.worst) st[kind === "best" ? "worst" : "best"] = null;
|
| 201 |
$$("#arena-root .card").forEach((k) => { k.classList.toggle("best", k.dataset.c === st.best); k.classList.toggle("worst", k.dataset.c === st.worst); k.querySelector(".b").setAttribute("aria-pressed", k.dataset.c === st.best); k.querySelector(".w").setAttribute("aria-pressed", k.dataset.c === st.worst); });
|
| 202 |
+
$("#ar-next").disabled = !(st.best && st.worst);
|
| 203 |
});
|
| 204 |
}
|
| 205 |
});
|
| 206 |
+
$("#ar-next").addEventListener("click", () => {
|
| 207 |
if (!st.locked) {
|
| 208 |
+
st.locked = true;
|
| 209 |
A.picks[r.b.id] = { best: st.best, worst: st.worst, shown: r.order }; A.seconds[r.b.id] = Math.round((Date.now() - st.t0) / 1000);
|
| 210 |
+
$$("#arena-root .card").forEach((k) => { k.querySelector(".reveal").textContent = NAME[k.dataset.c]; k.classList.add("revealed"); });
|
| 211 |
+
$("#ar-next").textContent = A.round < 2 ? "Next round" : "Finish";
|
| 212 |
+
} else { A.round++; A.round < 3 ? roundView() : doneView(); }
|
| 213 |
});
|
| 214 |
}
|
| 215 |
function doneView() {
|
| 216 |
const tally = Object.fromEntries(CFG.map((c) => [c, 0]));
|
| 217 |
for (const p of Object.values(A.picks)) { tally[p.best]++; tally[p.worst]--; }
|
| 218 |
const payload = { v: 1, picks: A.picks, seconds: A.seconds, ua: navigator.language, at: new Date().toISOString() };
|
| 219 |
+
const body = `Submitting this issue adds these picks to the human column of the benchmark.\n\n\`\`\`json\n${JSON.stringify(payload, null, 1)}\n\`\`\`\n`;
|
| 220 |
const url = `https://github.com/${REPO}/issues/new?title=${encodeURIComponent("[human-review] 3 rounds")}&body=${encodeURIComponent(body)}`;
|
| 221 |
+
$("#arena-root").innerHTML = `<div class="ar-sum">${CFG.slice().sort((a, b) => tally[b] - tally[a]).map((c) => `<div><span>${NAME[c]}</span><b>${tally[c] > 0 ? "+" : ""}${tally[c]}</b></div>`).join("")}</div>
|
| 222 |
+
<p class="small">Best counts +1, worst −1. Adding them opens a prefilled GitHub issue; nothing is posted until you submit it there.</p>
|
| 223 |
+
<a class="btn" href="${url}" target="_blank" rel="noopener">Add my picks</a>`;
|
|
|
|
|
|
|
| 224 |
}
|
| 225 |
|
| 226 |
+
// ---------- use
|
| 227 |
+
function use() {
|
| 228 |
+
const p = D.prompts.storyscope;
|
| 229 |
+
$("#prompt-meta").textContent = `${p.split(/\s+/).length} words. Other versions are in the repo's prompts folder.`;
|
| 230 |
+
$("#copy-prompt").addEventListener("click", (e) => copy(p + " ", e.target));
|
|
|
|
|
|
|
| 231 |
}
|
| 232 |
|
|
|
|
| 233 |
fetch("data.json").then((r) => r.json()).then(async (d) => {
|
| 234 |
D = d; R = d.results;
|
| 235 |
+
try { const live = await fetch(LIVE, { cache: "no-store" }); if (live.ok) { const lr = await live.json(); if (lr.per_genre && lr.overall && lr.overall.storyscope && "neutral_overall" in lr.overall.storyscope) R = lr; } } catch {}
|
| 236 |
+
hero(); board(); compare(); arena(); use();
|
| 237 |
});
|
| 238 |
})();
|
data.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dl/storyscope.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1873851
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d89be7a9adff6f04cae1c57066a4c59d0975e4cfdd8248b95205eb74a5e9e681
|
| 3 |
size 1873851
|
dl/writing-skill-storyscope.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1887909
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7593edd1990350fbd8e7cc0fd83469248ec6f3754c65dcf9a41e94804038c0ad
|
| 3 |
size 1887909
|
dl/writing-skill.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 16083
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc8c6ff28cac7c72c5428739d76807bb41e9cd445da10e6768462eb63c8c70c9
|
| 3 |
size 16083
|
index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<title>writing-skill · StoryScope benchmark</title>
|
| 7 |
-
<meta name="description" content="Agent skills
|
| 8 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22%3E%3Crect width=%2232%22 height=%2232%22 rx=%227%22 fill=%22%2316202e%22/%3E%3Cpath d=%22M7 20h18%22 stroke=%22%23d7263d%22 stroke-width=%223%22/%3E%3Cpath d=%22M8 13h16%22 stroke=%22%23edf0f3%22 stroke-width=%223%22/%3E%3C/svg%3E">
|
| 9 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
@@ -16,8 +16,7 @@
|
|
| 16 |
<a class="brand" href="#">writing<span>-</span>skill</a>
|
| 17 |
<nav>
|
| 18 |
<a href="#board">Results</a>
|
| 19 |
-
<a href="#compare">
|
| 20 |
-
<a href="#arena">Judge</a>
|
| 21 |
<a href="#get">Install</a>
|
| 22 |
</nav>
|
| 23 |
<button class="theme" id="theme" aria-label="Switch light or dark theme" title="Switch theme"><span></span></button>
|
|
@@ -25,111 +24,76 @@
|
|
| 25 |
|
| 26 |
<main>
|
| 27 |
<section class="hero">
|
| 28 |
-
<
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
</div>
|
| 37 |
-
<
|
| 38 |
-
<div class="demo-head">
|
| 39 |
-
<div class="seg" role="tablist" id="demo-seg">
|
| 40 |
-
<button role="tab" data-v="baseline" aria-selected="true">No skill</button>
|
| 41 |
-
<button role="tab" data-v="storyscope" aria-selected="false">StoryScope</button>
|
| 42 |
-
</div>
|
| 43 |
-
<label class="switch"><input type="checkbox" id="demo-marks" checked><i></i>Mark AI tells</label>
|
| 44 |
-
</div>
|
| 45 |
-
<div class="demo-body sample" id="demo-body"></div>
|
| 46 |
-
<figcaption id="demo-cap">Sales copy brief · first lines</figcaption>
|
| 47 |
-
</figure>
|
| 48 |
</section>
|
| 49 |
|
| 50 |
<section id="board" class="board">
|
| 51 |
-
<
|
| 52 |
-
|
| 53 |
-
<p>Two AI editors (Opus and Sonnet) scored every piece blind, 1–10. Six briefs, four setups, same model writing.</p>
|
| 54 |
-
</div>
|
| 55 |
-
<div class="podium" id="podium"></div>
|
| 56 |
<div class="table-wrap"><table id="board-table"></table></div>
|
| 57 |
-
<
|
| 58 |
-
|
|
|
|
| 59 |
<div id="signals"></div>
|
| 60 |
</details>
|
| 61 |
</section>
|
| 62 |
|
| 63 |
<section id="compare" class="compare">
|
| 64 |
-
<
|
| 65 |
-
|
| 66 |
-
<p>Full outputs, unedited. Turn on marks to see surface AI tells (em dashes, "not X but Y", triads, stock words, one-line punch paragraphs).</p>
|
| 67 |
-
</div>
|
| 68 |
<div class="cmp-bar">
|
| 69 |
-
<div class="seg" role="tablist" id="genre-seg"></div>
|
| 70 |
<select id="brief-sel" aria-label="Brief"></select>
|
| 71 |
-
<label class="switch"><input type="checkbox" id="cmp-marks"><i></i>
|
| 72 |
</div>
|
| 73 |
-
<p class="brief" id="brief-text"></p>
|
| 74 |
<div class="panes">
|
| 75 |
-
<article class="pane"><select class="cfg" id="left-cfg" aria-label="Left setup"></select><
|
| 76 |
-
<article class="pane"><select class="cfg" id="right-cfg" aria-label="Right setup"></select><
|
| 77 |
</div>
|
| 78 |
</section>
|
| 79 |
|
| 80 |
<section id="arena" class="arena">
|
| 81 |
-
<
|
| 82 |
-
|
| 83 |
-
<p>Three rounds, about a minute each. Four anonymous pieces per round: tap the best and the worst. Your picks join the human column of the leaderboard.</p>
|
| 84 |
-
</div>
|
| 85 |
<div id="arena-root" class="arena-root"></div>
|
| 86 |
</section>
|
| 87 |
|
| 88 |
-
<section id="prompts" class="prompts">
|
| 89 |
-
<div class="sec-head">
|
| 90 |
-
<h2>Copy as a prompt</h2>
|
| 91 |
-
<p>No install needed. Paste into ChatGPT, Claude, Gemini or any chat, then add your task after the last line.</p>
|
| 92 |
-
</div>
|
| 93 |
-
<div class="prompt-grid" id="prompt-grid"></div>
|
| 94 |
-
</section>
|
| 95 |
-
|
| 96 |
<section id="get" class="get">
|
| 97 |
-
<
|
| 98 |
-
|
| 99 |
-
<
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
<
|
| 104 |
-
<
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
<
|
| 108 |
-
<div
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
<
|
| 114 |
-
<li>Download a skill: <a class="dl" href="dl/storyscope.zip" download>storyscope.zip</a> <a class="dl alt" href="dl/writing-skill-storyscope.zip" download>writing-skill-storyscope.zip</a> <a class="dl alt" href="dl/writing-skill.zip" download>writing-skill.zip</a></li>
|
| 115 |
-
<li>In the Claude app, open your settings, find Skills, and upload the zip.</li>
|
| 116 |
-
<li>Ask for a story, a post or some copy. The skill loads on its own when the task fits.</li>
|
| 117 |
-
</ol>
|
| 118 |
-
</div>
|
| 119 |
-
<div class="inst" data-t="manual" hidden>
|
| 120 |
-
<div class="cmd" data-copy="git clone https://github.com/in-c0/writing-skill && cp -r writing-skill/skills/storyscope ~/.claude/skills/"><code><span class="dim">$</span> git clone https://github.com/in-c0/writing-skill && cp -r writing-skill/skills/storyscope ~/.claude/skills/</code><button class="copy">Copy</button></div>
|
| 121 |
-
<p class="small">Any agent that reads skill folders works the same way: copy <code>skills/<name>/</code> into its skills directory.</p>
|
| 122 |
</div>
|
| 123 |
</section>
|
| 124 |
|
| 125 |
-
<
|
| 126 |
-
<
|
| 127 |
-
|
| 128 |
-
<p>Six briefs: two journal posts, two pieces of sales copy, two short stories. Each brief was written four times by the same model in fresh sessions: no skill, writing-skill, writing-skill + StoryScope, and StoryScope alone. Two AI editors scored all four pieces per brief without knowing which was which. Stories were also annotated on the paper's 304 features and run through its released classifier.</p>
|
| 129 |
-
<p>This is a small, early benchmark: twelve judgements per setup, and the judges belong to the same model family as the writer. The classifier was trained on 5,000-word stories annotated by a different model, so its absolute numbers here are not comparable to the paper; read it as a relative signal. Human picks are what make the result trustworthy, which is why the judging rounds above exist.</p>
|
| 130 |
-
</div>
|
| 131 |
-
<p class="credit">StoryScope: Russell, Rajendhran, Pham, Iyyer, Wieting (2026), <a href="https://arxiv.org/abs/2604.03136">arXiv:2604.03136</a>, data and models under MIT. Code and every raw output: <a href="https://github.com/in-c0/writing-skill">github.com/in-c0/writing-skill</a>.</p>
|
| 132 |
-
</section>
|
| 133 |
</main>
|
| 134 |
|
| 135 |
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
|
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<title>writing-skill · StoryScope benchmark</title>
|
| 7 |
+
<meta name="description" content="Agent writing skills tested on the same briefs. Pick the better of two anonymous drafts, then see which setup wrote it.">
|
| 8 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22%3E%3Crect width=%2232%22 height=%2232%22 rx=%227%22 fill=%22%2316202e%22/%3E%3Cpath d=%22M7 20h18%22 stroke=%22%23d7263d%22 stroke-width=%223%22/%3E%3Cpath d=%22M8 13h16%22 stroke=%22%23edf0f3%22 stroke-width=%223%22/%3E%3C/svg%3E">
|
| 9 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
|
| 16 |
<a class="brand" href="#">writing<span>-</span>skill</a>
|
| 17 |
<nav>
|
| 18 |
<a href="#board">Results</a>
|
| 19 |
+
<a href="#compare">All drafts</a>
|
|
|
|
| 20 |
<a href="#get">Install</a>
|
| 21 |
</nav>
|
| 22 |
<button class="theme" id="theme" aria-label="Switch light or dark theme" title="Switch theme"><span></span></button>
|
|
|
|
| 24 |
|
| 25 |
<main>
|
| 26 |
<section class="hero">
|
| 27 |
+
<h1>Which one would you keep reading?</h1>
|
| 28 |
+
<p class="lede">Same brief, two anonymous drafts from the same model. One had a writing skill loaded. Tap the one you prefer.</p>
|
| 29 |
+
<div class="genres" role="tablist" id="hero-genres"></div>
|
| 30 |
+
<p class="brief" id="hero-brief"></p>
|
| 31 |
+
<div class="duel" id="duel"></div>
|
| 32 |
+
<p class="verdict" id="verdict" aria-live="polite"></p>
|
| 33 |
+
</section>
|
| 34 |
+
|
| 35 |
+
<section class="install-strip" aria-label="Install">
|
| 36 |
+
<div class="cmd" data-copy="npx skills add in-c0/writing-skill --skill storyscope -g">
|
| 37 |
+
<code><span class="dim">$</span> npx skills add in-c0/writing-skill --skill storyscope -g</code>
|
| 38 |
+
<button class="copy">Copy</button>
|
| 39 |
</div>
|
| 40 |
+
<p class="small">Installs StoryScope for Claude Code, Codex, Cursor and other agents. <a href="#get">Other ways</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
</section>
|
| 42 |
|
| 43 |
<section id="board" class="board">
|
| 44 |
+
<h2>Results</h2>
|
| 45 |
+
<p class="sec-lede">Six briefs, four setups, one writing model. Two AI editors scored every draft blind. Then the same drafts were scored again with a prompt that never mentions AI.</p>
|
|
|
|
|
|
|
|
|
|
| 46 |
<div class="table-wrap"><table id="board-table"></table></div>
|
| 47 |
+
<p class="note" id="board-note"></p>
|
| 48 |
+
<details class="more">
|
| 49 |
+
<summary>By genre, classifier and lint</summary>
|
| 50 |
<div id="signals"></div>
|
| 51 |
</details>
|
| 52 |
</section>
|
| 53 |
|
| 54 |
<section id="compare" class="compare">
|
| 55 |
+
<h2>All 24 drafts</h2>
|
| 56 |
+
<p class="sec-lede">Unedited outputs. Marks show surface patterns such as em dashes, triads and stock words; they are hints, not proof.</p>
|
|
|
|
|
|
|
| 57 |
<div class="cmp-bar">
|
|
|
|
| 58 |
<select id="brief-sel" aria-label="Brief"></select>
|
| 59 |
+
<label class="switch"><input type="checkbox" id="cmp-marks"><i></i>Marks</label>
|
| 60 |
</div>
|
|
|
|
| 61 |
<div class="panes">
|
| 62 |
+
<article class="pane"><select class="cfg" id="left-cfg" aria-label="Left setup"></select><p class="judge" id="left-judge"></p><div class="sample" id="left"></div></article>
|
| 63 |
+
<article class="pane"><select class="cfg" id="right-cfg" aria-label="Right setup"></select><p class="judge" id="right-judge"></p><div class="sample" id="right"></div></article>
|
| 64 |
</div>
|
| 65 |
</section>
|
| 66 |
|
| 67 |
<section id="arena" class="arena">
|
| 68 |
+
<h2>Judge three rounds</h2>
|
| 69 |
+
<p class="sec-lede">Four anonymous drafts per round. Pick the best and the worst; your picks can be added to the human column of the results.</p>
|
|
|
|
|
|
|
| 70 |
<div id="arena-root" class="arena-root"></div>
|
| 71 |
</section>
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
<section id="get" class="get">
|
| 74 |
+
<h2>Use it</h2>
|
| 75 |
+
<div class="use-grid">
|
| 76 |
+
<div>
|
| 77 |
+
<h3>In an agent</h3>
|
| 78 |
+
<div class="cmd" data-copy="npx skills add in-c0/writing-skill --skill storyscope -g"><code><span class="dim">$</span> npx skills add in-c0/writing-skill --skill storyscope -g</code><button class="copy">Copy</button></div>
|
| 79 |
+
<p class="small">Swap <code>storyscope</code> for <code>writing-skill-storyscope</code> or <code>writing-skill</code>. Drop <code>-g</code> to install into one project.</p>
|
| 80 |
+
</div>
|
| 81 |
+
<div>
|
| 82 |
+
<h3>In the Claude app</h3>
|
| 83 |
+
<p class="small">Download <a href="dl/storyscope.zip" download>storyscope.zip</a> and upload it under Skills in settings. Also available: <a href="dl/writing-skill-storyscope.zip" download>writing-skill-storyscope.zip</a>, <a href="dl/writing-skill.zip" download>writing-skill.zip</a>.</p>
|
| 84 |
+
</div>
|
| 85 |
+
<div>
|
| 86 |
+
<h3>In any chat</h3>
|
| 87 |
+
<p class="small">Paste the prompt, then add your task after the last line.</p>
|
| 88 |
+
<button class="btn" id="copy-prompt">Copy the StoryScope prompt</button>
|
| 89 |
+
<p class="small" id="prompt-meta"></p>
|
| 90 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
</div>
|
| 92 |
</section>
|
| 93 |
|
| 94 |
+
<footer class="method">
|
| 95 |
+
<p>StoryScope comes from Russell, Rajendhran, Pham, Iyyer and Wieting (2026), a study of long-form fiction by humans and five LLMs (<a href="https://arxiv.org/abs/2604.03136">arXiv:2604.03136</a>, data under MIT). Using it for blog posts and sales copy is this project's own extrapolation. This is a small pilot: one writing model, twelve judgements per setup, judges from the same model family. Every draft, score and script is on <a href="https://github.com/in-c0/writing-skill">GitHub</a>.</p>
|
| 96 |
+
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
</main>
|
| 98 |
|
| 99 |
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
style.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
:root {
|
| 2 |
--paper: #edf0f3;
|
| 3 |
--sheet: #f9fafb;
|
|
@@ -7,24 +8,21 @@
|
|
| 7 |
--red: #d7263d;
|
| 8 |
--red-wash: rgba(215, 38, 61, 0.12);
|
| 9 |
--blue: #2f5bd3;
|
| 10 |
-
--blue-wash: rgba(47, 91, 211, 0.1);
|
| 11 |
-
--gold: #c98f00;
|
| 12 |
--ui: "Bricolage Grotesque", system-ui, sans-serif;
|
| 13 |
--read: "Newsreader", Georgia, serif;
|
| 14 |
-
--r
|
| 15 |
-
--r-lg: 14px;
|
| 16 |
color-scheme: light;
|
| 17 |
}
|
| 18 |
@media (prefers-color-scheme: dark) {
|
| 19 |
:root:not([data-theme="light"]) {
|
| 20 |
--paper: #10161f; --sheet: #172030; --ink: #e6ecf2; --muted: #9aa7b6; --rule: #2a3647;
|
| 21 |
-
--red: #ff5a6e; --red-wash: rgba(255, 90, 110, 0.16); --blue: #85a6ff;
|
| 22 |
color-scheme: dark;
|
| 23 |
}
|
| 24 |
}
|
| 25 |
:root[data-theme="dark"] {
|
| 26 |
--paper: #10161f; --sheet: #172030; --ink: #e6ecf2; --muted: #9aa7b6; --rule: #2a3647;
|
| 27 |
-
--red: #ff5a6e; --red-wash: rgba(255, 90, 110, 0.16); --blue: #85a6ff;
|
| 28 |
color-scheme: dark;
|
| 29 |
}
|
| 30 |
|
|
@@ -35,48 +33,89 @@ a { color: var(--blue); text-underline-offset: 3px; }
|
|
| 35 |
code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; }
|
| 36 |
button, select, input { font: inherit; color: inherit; }
|
| 37 |
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
| 38 |
-
main { max-width:
|
| 39 |
-
section { padding:
|
| 40 |
-
h1, h2 {
|
| 41 |
-
h1 { font-weight: 800; font-size: clamp(
|
| 42 |
-
h2 { font-weight: 800; font-size: clamp(26px, 3.
|
| 43 |
-
|
| 44 |
-
.sec-
|
| 45 |
.small { color: var(--muted); font-size: 14px; }
|
| 46 |
|
| 47 |
/* header */
|
| 48 |
-
.top { position: sticky; top:
|
| 49 |
-
.brand { font-weight: 800; font-size:
|
| 50 |
.brand span { color: var(--red); }
|
| 51 |
-
.top nav { display: flex; gap:
|
| 52 |
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
|
| 53 |
.top nav a:hover { color: var(--ink); }
|
| 54 |
-
.theme { width:
|
| 55 |
-
.theme span { width:
|
| 56 |
:root[data-theme="dark"] .theme span { transform: rotate(180deg); }
|
| 57 |
-
@media (max-width:
|
| 58 |
|
| 59 |
-
/* hero */
|
| 60 |
-
.hero {
|
| 61 |
-
|
| 62 |
-
.
|
| 63 |
-
.
|
| 64 |
-
.
|
| 65 |
-
.
|
| 66 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
.cmd .dim { opacity: .5; }
|
| 68 |
-
.copy { flex: none; border: 0; border-radius:
|
| 69 |
.copy.done { background: var(--blue); color: #fff; }
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
-
.
|
| 73 |
-
.
|
| 74 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
-
/*
|
| 77 |
-
.
|
| 78 |
-
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
|
| 81 |
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
| 82 |
.switch i { width: 34px; height: 20px; border-radius: 999px; background: var(--rule); position: relative; transition: background .25s; }
|
|
@@ -84,130 +123,47 @@ h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
|
|
| 84 |
.switch input:checked + i { background: var(--red); }
|
| 85 |
.switch input:checked + i::after { transform: translateX(14px); }
|
| 86 |
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
.
|
| 90 |
-
.
|
| 91 |
-
.
|
| 92 |
-
.sample
|
| 93 |
-
.sample mark { background: none; color: inherit; position: relative; }
|
| 94 |
-
.sample mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform .45s ease; }
|
| 95 |
-
.marks-on .sample mark, .sample.marks-on mark { background: var(--red-wash); }
|
| 96 |
-
.marks-on .sample mark::after, .sample.marks-on mark::after { transform: scaleX(1); }
|
| 97 |
-
.sample mark[data-k]:hover::before { content: attr(data-k); position: absolute; bottom: 100%; left: 0; font: 600 11px var(--ui); background: var(--red); color: #fff; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
|
| 98 |
-
.sample p.punch { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .3s; }
|
| 99 |
-
.marks-on .sample p.punch, .sample.marks-on p.punch { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
|
| 100 |
-
|
| 101 |
-
/* board */
|
| 102 |
-
.podium { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
|
| 103 |
-
@media (max-width: 760px) { .podium { grid-template-columns: repeat(2, 1fr); } }
|
| 104 |
-
.pod { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px; position: relative; cursor: pointer; text-align: left; }
|
| 105 |
-
.pod.win { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
|
| 106 |
-
.pod .place { font-size: 13px; color: var(--muted); }
|
| 107 |
-
.pod .name { font-weight: 600; font-size: 17px; margin: 2px 0 10px; line-height: 1.2; min-height: 2.4em; }
|
| 108 |
-
.pod .score { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
|
| 109 |
-
.pod .score small { font-size: 16px; color: var(--muted); font-weight: 400; }
|
| 110 |
-
.pod .bar { height: 6px; border-radius: 3px; background: var(--paper); margin-top: 12px; overflow: hidden; }
|
| 111 |
-
.pod .bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
|
| 112 |
-
.pod.win .bar i { background: var(--gold); }
|
| 113 |
-
.pod .firsts { font-size: 13px; color: var(--muted); margin-top: 8px; }
|
| 114 |
-
.crown { position: absolute; top: 12px; right: 14px; font-size: 22px; }
|
| 115 |
-
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); }
|
| 116 |
-
table { border-collapse: collapse; width: 100%; font-size: 15px; }
|
| 117 |
-
th, td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
|
| 118 |
-
th:first-child, td:first-child { text-align: left; }
|
| 119 |
-
th { font-weight: 600; color: var(--muted); font-size: 13px; }
|
| 120 |
-
tr:last-child td { border-bottom: 0; }
|
| 121 |
-
td.best { font-weight: 800; color: var(--blue); }
|
| 122 |
-
td .cell-bar { display: inline-block; width: 46px; height: 5px; background: var(--paper); border-radius: 3px; margin-left: 8px; vertical-align: middle; overflow: hidden; }
|
| 123 |
-
td .cell-bar i { display: block; height: 100%; background: currentColor; opacity: .55; }
|
| 124 |
-
.signals { margin-top: 16px; }
|
| 125 |
-
.signals summary { cursor: pointer; color: var(--muted); font-size: 15px; }
|
| 126 |
-
.signals .table-wrap { margin-top: 12px; }
|
| 127 |
-
.signals h3 { font-size: 16px; margin: 18px 0 8px; }
|
| 128 |
-
|
| 129 |
-
/* compare */
|
| 130 |
-
.cmp-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
|
| 131 |
-
select { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 7px 10px; font-size: 14px; max-width: 100%; }
|
| 132 |
-
.brief { color: var(--muted); font-size: 15px; max-width: 760px; margin: 0 0 16px; }
|
| 133 |
-
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
| 134 |
-
@media (max-width: 820px) { .panes { grid-template-columns: 1fr; } }
|
| 135 |
-
.pane { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
|
| 136 |
-
.pane .sample { max-height: 680px; overflow-y: auto; padding-right: 8px; }
|
| 137 |
-
.pane .cfg { font-weight: 600; margin-bottom: 10px; }
|
| 138 |
-
.judge { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
|
| 139 |
-
.judge span { background: var(--paper); border-radius: 4px; padding: 3px 8px; }
|
| 140 |
-
.judge q { display: block; width: 100%; font-style: italic; margin-top: 4px; }
|
| 141 |
|
| 142 |
/* arena */
|
| 143 |
-
.arena-root {
|
| 144 |
-
.
|
| 145 |
-
.
|
| 146 |
-
.
|
| 147 |
-
.
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
.
|
| 151 |
-
.ar-title small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
|
| 152 |
-
.ar-steps { margin-left: auto; display: flex; gap: 6px; }
|
| 153 |
-
.ar-steps i { width: 26px; height: 6px; border-radius: 3px; background: var(--rule); }
|
| 154 |
-
.ar-steps i.on { background: var(--ink); }
|
| 155 |
-
.ar-steps i.done { background: var(--blue); }
|
| 156 |
-
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
|
| 157 |
-
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
|
| 158 |
-
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
|
| 159 |
-
.card { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; background: var(--paper); display: flex; flex-direction: column; min-width: 0; transition: border-color .2s, transform .2s; }
|
| 160 |
.card.best { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
|
| 161 |
.card.worst { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
|
| 162 |
-
.card .who { font-weight: 800;
|
| 163 |
-
.card .
|
|
|
|
| 164 |
.card .ex { font-family: var(--read); font-size: 15px; line-height: 1.55; margin: 8px 0; flex: 1; }
|
| 165 |
-
.card .ex .gap { display: block; text-align: center; color: var(--muted);
|
| 166 |
.card .full { font-size: 13px; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-align: left; margin-bottom: 10px; }
|
| 167 |
.card .acts { display: flex; gap: 8px; }
|
| 168 |
-
.card .acts button { flex: 1; border: 1px solid var(--rule); background: var(--
|
| 169 |
.card .acts .b[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
|
| 170 |
.card .acts .w[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
|
| 171 |
-
.
|
| 172 |
-
.
|
| 173 |
-
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
|
| 174 |
-
.ar-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
|
| 175 |
-
.btn { border: 0; border-radius: var(--r-sm); padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--ink); color: var(--paper); text-decoration: none; display: inline-block; }
|
| 176 |
-
.btn:disabled { opacity: .35; cursor: default; }
|
| 177 |
-
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--rule); }
|
| 178 |
-
.ar-done { text-align: center; padding: 24px 8px; }
|
| 179 |
-
.ar-done h3 { font-size: 26px; margin: 0 0 8px; }
|
| 180 |
-
.ar-done p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
|
| 181 |
-
.ar-sum { display: grid; gap: 8px; max-width: 460px; margin: 0 auto 20px; text-align: left; font-size: 15px; }
|
| 182 |
.ar-sum div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 6px 0; }
|
| 183 |
-
.ar-start { text-align: center; padding: 28px 8px; }
|
| 184 |
-
.ar-start p { color: var(--muted); margin: 0 auto 18px; max-width: 460px; }
|
| 185 |
-
|
| 186 |
-
/* prompts */
|
| 187 |
-
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
|
| 188 |
-
@media (max-width: 900px) { .prompt-grid { grid-template-columns: 1fr; } }
|
| 189 |
-
.pcard { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; }
|
| 190 |
-
.pcard.top-pick { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
|
| 191 |
-
.pcard h3 { margin: 0; font-size: 19px; }
|
| 192 |
-
.pcard .meta { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
|
| 193 |
-
.pcard pre { flex: 1; margin: 0 0 14px; max-height: 190px; overflow: hidden; font: 400 13px/1.5 var(--read); white-space: pre-wrap; color: var(--muted); mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
|
| 194 |
-
.pcard .btn { align-self: flex-start; }
|
| 195 |
|
| 196 |
-
/*
|
| 197 |
-
.
|
| 198 |
-
.
|
| 199 |
-
.
|
| 200 |
-
.steps li { margin-bottom: 10px; }
|
| 201 |
-
.dl { display: inline-block; margin: 4px 6px 4px 0; padding: 6px 12px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600; }
|
| 202 |
-
.dl.alt { background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); }
|
| 203 |
|
| 204 |
-
|
| 205 |
-
.method {
|
| 206 |
-
.method-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; color: var(--muted); }
|
| 207 |
-
@media (max-width: 760px) { .method-cols { grid-template-columns: 1fr; } }
|
| 208 |
-
.credit { font-size: 14px; color: var(--muted); }
|
| 209 |
|
| 210 |
-
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding:
|
| 211 |
.toast.on { opacity: 1; transform: translate(-50%, 0); }
|
| 212 |
|
| 213 |
@media (prefers-reduced-motion: reduce) {
|
|
|
|
| 1 |
+
/* Layout: one column of reading width; the blind pair is the only big object on the page. */
|
| 2 |
:root {
|
| 3 |
--paper: #edf0f3;
|
| 4 |
--sheet: #f9fafb;
|
|
|
|
| 8 |
--red: #d7263d;
|
| 9 |
--red-wash: rgba(215, 38, 61, 0.12);
|
| 10 |
--blue: #2f5bd3;
|
|
|
|
|
|
|
| 11 |
--ui: "Bricolage Grotesque", system-ui, sans-serif;
|
| 12 |
--read: "Newsreader", Georgia, serif;
|
| 13 |
+
--r: 10px;
|
|
|
|
| 14 |
color-scheme: light;
|
| 15 |
}
|
| 16 |
@media (prefers-color-scheme: dark) {
|
| 17 |
:root:not([data-theme="light"]) {
|
| 18 |
--paper: #10161f; --sheet: #172030; --ink: #e6ecf2; --muted: #9aa7b6; --rule: #2a3647;
|
| 19 |
+
--red: #ff5a6e; --red-wash: rgba(255, 90, 110, 0.16); --blue: #85a6ff;
|
| 20 |
color-scheme: dark;
|
| 21 |
}
|
| 22 |
}
|
| 23 |
:root[data-theme="dark"] {
|
| 24 |
--paper: #10161f; --sheet: #172030; --ink: #e6ecf2; --muted: #9aa7b6; --rule: #2a3647;
|
| 25 |
+
--red: #ff5a6e; --red-wash: rgba(255, 90, 110, 0.16); --blue: #85a6ff;
|
| 26 |
color-scheme: dark;
|
| 27 |
}
|
| 28 |
|
|
|
|
| 33 |
code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; }
|
| 34 |
button, select, input { font: inherit; color: inherit; }
|
| 35 |
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
| 36 |
+
main { max-width: 1040px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
|
| 37 |
+
section { padding-top: 64px; }
|
| 38 |
+
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
|
| 39 |
+
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; max-width: 15ch; }
|
| 40 |
+
h2 { font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }
|
| 41 |
+
h3 { font-weight: 600; font-size: 17px; margin-bottom: 8px; }
|
| 42 |
+
.sec-lede { color: var(--muted); max-width: 62ch; margin: 8px 0 20px; }
|
| 43 |
.small { color: var(--muted); font-size: 14px; }
|
| 44 |
|
| 45 |
/* header */
|
| 46 |
+
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
|
| 47 |
+
.brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
|
| 48 |
.brand span { color: var(--red); }
|
| 49 |
+
.top nav { display: flex; gap: 18px; margin-left: auto; }
|
| 50 |
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
|
| 51 |
.top nav a:hover { color: var(--ink); }
|
| 52 |
+
.theme { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; display: grid; place-items: center; }
|
| 53 |
+
.theme span { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); transition: transform .5s; }
|
| 54 |
:root[data-theme="dark"] .theme span { transform: rotate(180deg); }
|
| 55 |
+
@media (max-width: 600px) { .top nav { display: none; } .theme { margin-left: auto; } }
|
| 56 |
|
| 57 |
+
/* hero: the pair is the control */
|
| 58 |
+
.hero { padding-top: 56px; }
|
| 59 |
+
.lede { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 16px 0 26px; }
|
| 60 |
+
.genres { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
|
| 61 |
+
.genres button { border: 0; background: none; padding: 8px 0; margin-bottom: -1px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-size: 15px; }
|
| 62 |
+
.genres button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
|
| 63 |
+
.brief { color: var(--muted); font-size: 14px; max-width: 80ch; margin: 0 0 16px; }
|
| 64 |
+
.duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
|
| 65 |
+
@media (max-width: 760px) { .duel { grid-template-columns: minmax(0, 1fr); } }
|
| 66 |
+
.draft { position: relative; display: block; text-align: left; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px 0; height: 400px; overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .3s; }
|
| 67 |
+
.draft:hover { border-color: var(--ink); }
|
| 68 |
+
.draft .tag { display: grid; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
|
| 69 |
+
.draft .tag > span { grid-area: 1 / 1; transition: opacity .35s, transform .35s; }
|
| 70 |
+
.draft .real { opacity: 0; transform: translateY(6px); }
|
| 71 |
+
.revealed .draft .anon { opacity: 0; transform: translateY(-6px); }
|
| 72 |
+
.revealed .draft .real { opacity: 1; transform: none; }
|
| 73 |
+
.draft .sample { display: block; font-size: 16px; }
|
| 74 |
+
.draft .fade { position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--sheet)); pointer-events: none; }
|
| 75 |
+
.revealed .draft { cursor: default; }
|
| 76 |
+
.revealed .draft:not(.chosen) { opacity: .62; }
|
| 77 |
+
.draft.chosen { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
|
| 78 |
+
.draft.chosen .real { color: var(--blue); }
|
| 79 |
+
.verdict { min-height: 1.6em; margin: 16px 0 0; max-width: 70ch; }
|
| 80 |
+
|
| 81 |
+
/* install strip */
|
| 82 |
+
.install-strip { padding-top: 40px; }
|
| 83 |
+
.cmd { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 9px 9px 9px 14px; max-width: 640px; }
|
| 84 |
+
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
|
| 85 |
.cmd .dim { opacity: .5; }
|
| 86 |
+
.copy { flex: none; border: 0; border-radius: 5px; padding: 6px 12px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
|
| 87 |
.copy.done { background: var(--blue); color: #fff; }
|
| 88 |
+
.install-strip .small { margin: 8px 0 0; }
|
| 89 |
|
| 90 |
+
/* reading samples */
|
| 91 |
+
.sample { font-family: var(--read); line-height: 1.65; }
|
| 92 |
+
.sample h1, .sample h2, .sample h3 { font-family: var(--read); font-weight: 500; letter-spacing: 0; line-height: 1.25; margin: 0 0 .5em; max-width: none; }
|
| 93 |
+
.sample h1 { font-size: 1.4em; } .sample h2 { font-size: 1.12em; margin-top: 1em; } .sample h3 { font-size: 1.04em; }
|
| 94 |
+
.sample p { margin: 0 0 .85em; }
|
| 95 |
+
.sample mark { background: none; color: inherit; position: relative; }
|
| 96 |
+
.sample mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform .45s ease; }
|
| 97 |
+
.marks-on .sample mark { background: var(--red-wash); }
|
| 98 |
+
.marks-on .sample mark::after { transform: scaleX(1); }
|
| 99 |
+
.sample p.punch { transition: box-shadow .3s, padding .3s; }
|
| 100 |
+
.marks-on .sample p.punch { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
|
| 101 |
|
| 102 |
+
/* results */
|
| 103 |
+
.table-wrap { overflow-x: auto; }
|
| 104 |
+
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
|
| 105 |
+
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
|
| 106 |
+
th:first-child, td:first-child { text-align: left; padding-left: 0; }
|
| 107 |
+
th { font-weight: 600; color: var(--muted); font-size: 13px; }
|
| 108 |
+
tr.lead td { font-weight: 700; }
|
| 109 |
+
td .of { color: var(--muted); font-weight: 400; font-size: 13px; }
|
| 110 |
+
.note { max-width: 70ch; margin: 16px 0 0; }
|
| 111 |
+
.more { margin-top: 18px; }
|
| 112 |
+
.more summary { cursor: pointer; color: var(--muted); font-size: 15px; }
|
| 113 |
+
.more h3 { margin-top: 22px; }
|
| 114 |
+
.more .small { margin-top: 8px; }
|
| 115 |
+
|
| 116 |
+
/* all drafts */
|
| 117 |
+
.cmp-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
|
| 118 |
+
select { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 7px 10px; font-size: 14px; max-width: 100%; }
|
| 119 |
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
|
| 120 |
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
| 121 |
.switch i { width: 34px; height: 20px; border-radius: 999px; background: var(--rule); position: relative; transition: background .25s; }
|
|
|
|
| 123 |
.switch input:checked + i { background: var(--red); }
|
| 124 |
.switch input:checked + i::after { transform: translateX(14px); }
|
| 125 |
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
|
| 126 |
+
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
|
| 127 |
+
@media (max-width: 820px) { .panes { grid-template-columns: minmax(0, 1fr); } }
|
| 128 |
+
.pane { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
|
| 129 |
+
.pane .cfg { font-weight: 600; }
|
| 130 |
+
.pane .judge { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
|
| 131 |
+
.pane .sample { max-height: 620px; overflow-y: auto; padding-right: 6px; font-size: 16px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
/* arena */
|
| 134 |
+
.arena-root { min-height: 48px; }
|
| 135 |
+
.btn { border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--ink); color: var(--paper); text-decoration: none; display: inline-block; font-size: 15px; }
|
| 136 |
+
.btn:disabled { opacity: .35; cursor: default; }
|
| 137 |
+
.ar-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
|
| 138 |
+
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
|
| 139 |
+
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
| 140 |
+
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
|
| 141 |
+
.card { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; background: var(--sheet); display: flex; flex-direction: column; min-width: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
.card.best { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
|
| 143 |
.card.worst { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
|
| 144 |
+
.card .who { font-weight: 800; display: flex; justify-content: space-between; gap: 8px; }
|
| 145 |
+
.card .reveal { font-weight: 600; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity .4s; }
|
| 146 |
+
.card.revealed .reveal { opacity: 1; }
|
| 147 |
.card .ex { font-family: var(--read); font-size: 15px; line-height: 1.55; margin: 8px 0; flex: 1; }
|
| 148 |
+
.card .ex .gap { display: block; text-align: center; color: var(--muted); }
|
| 149 |
.card .full { font-size: 13px; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-align: left; margin-bottom: 10px; }
|
| 150 |
.card .acts { display: flex; gap: 8px; }
|
| 151 |
+
.card .acts button { flex: 1; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: 7px 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
|
| 152 |
.card .acts .b[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
|
| 153 |
.card .acts .w[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
|
| 154 |
+
.ar-foot { margin-top: 14px; }
|
| 155 |
+
.ar-sum { display: grid; gap: 6px; max-width: 420px; margin-bottom: 12px; font-size: 15px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
.ar-sum div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 6px 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
|
| 158 |
+
/* use */
|
| 159 |
+
.use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 20px; }
|
| 160 |
+
@media (max-width: 860px) { .use-grid { grid-template-columns: minmax(0, 1fr); } }
|
| 161 |
+
.use-grid .small { margin: 8px 0 12px; }
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
+
.method { max-width: 1040px; margin: 56px auto 0; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
|
| 164 |
+
.method p { max-width: 80ch; margin: 0; }
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
+
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
|
| 167 |
.toast.on { opacity: 1; transform: translate(-50%, 0); }
|
| 168 |
|
| 169 |
@media (prefers-reduced-motion: reduce) {
|