stark-ai-de/agent-skills / plugins/stark-ai-developer/skills/visual-reports
visual-reports
VerifiedCreate and update visual reports with optional native interaction, one guided topic at a time, useful diagrams, concise points, joint comparisons and complete offline HTML/Markdown/JSON exports. Use when richer output helps an authorized answer or the user asks for a visual report; keep small answers in chat. Not production application UI or clinical advice.
scripts/benchmark.mjs
View on GitHub// Explicit temporary fixture writes only. SPDX-License-Identifier: Apache-2.0
import { mkdtemp, readFile, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";
import { execFileSync } from "node:child_process";
import { fileURLToPath } from "node:url";
import { performance } from "node:perf_hooks";
import { parseMarkdown } from "./lib/markdown-input.mjs";
import { renderReport } from "./render-report.mjs";
import { publishRevision } from "./lib/report-store.mjs";
const here = path.dirname(fileURLToPath(import.meta.url));
const example = path.join(here, "../assets/completion-example.md");
const directory = await mkdtemp(path.join(tmpdir(), "report-benchmark-"));
try {
let t = performance.now();
execFileSync(process.execPath, [
path.join(here, "render-report.mjs"),
"--input",
example,
"--output",
path.join(directory, "cold"),
]);
const coldMs = performance.now() - t;
const report = parseMarkdown(await readFile(example, "utf8")),
render = [],
update = [];
for (let i = 0; i < 5; i++) await renderReport(report);
let current = await publishRevision(report, path.join(directory, "store"));
for (let i = 0; i < 50; i++) {
t = performance.now();
await renderReport(report);
render.push(performance.now() - t);
t = performance.now();
current = await publishRevision(report, path.join(directory, "store"), {
expected: current.revision,
});
update.push(performance.now() - t);
}
const p95 = (values) =>
Number(values.sort((a, b) => a - b)[Math.ceil(values.length * 0.95) - 1].toFixed(2));
const result = {
fixture: "completion-example.md (7 mixed sections, automatic diagram layout)",
samples: 50,
coldProcessMs: Number(coldMs.toFixed(2)),
warmRenderP95Ms: p95(render),
warmUpdateP95Ms: p95(update),
excludedUnmeasured: ["model generation", "research", "initial asset retrieval"],
runtime: process.version,
platform: process.platform,
};
console.log(JSON.stringify(result, null, 2));
if (result.warmRenderP95Ms >= 1000 || result.warmUpdateP95Ms >= 1000) process.exitCode = 1;
} finally {
await rm(directory, { recursive: true, force: true });
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |