agentleFS
dachentdachent/skills/web-artifacts-builder-codex/SKILL.md

web-artifacts-builder-codex

Skill27 starsChanged 3 months agoMITView on GitHub

Use when Codex needs to create, run, package, revise, or verify a standalone web artifact such as an HTML report, dashboard, microsite, interactive explainer, data story, or browser-delivered deliverable with runtime, screenshots, console capture, and evidence packaging.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to build standalone web artifacts that open cleanly, explain themselves through the interface, and ship with enough runtime …

    line 10
  2. Distinctive:

    Keep the first screen as the actual artifact experience, not a marketing page.

    line 22
  3. Distinctive:

    Use stable file names and relative asset paths so the artifact can move as a folder.

    line 25
  4. Very specific:

    Use .shared\visual-runtime for artifact verification:

    line 31
  5. Distinctive:

    No Office COM is required.

    line 38
  6. Distinctive:

    verify relative assets load.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Web Artifacts Builder Codex

Overview

Use this skill to build standalone web artifacts that open cleanly, explain themselves through the interface, and ship with enough runtime and visual evidence for another reviewer to trust the result.

Design Upskill Contribution

This skill teaches Codex to treat web artifacts as deliverables, not just files. It improves no-template design by pairing layout and interaction choices with package evidence: screenshot captures, console capture, request failures, PDF export when useful, and a concise evidence bundle.

It matters because standalone artifacts often lack the guardrails of an existing app. The artifact must carry its own hierarchy, navigation, source notes, and failure evidence.

Workflow

  1. Define the artifact type: report, dashboard, explainer, portal, tracker, or prototype.
  2. Choose the lightest implementation that can be opened and reviewed reliably.
  3. Keep the first screen as the actual artifact experience, not a marketing page.
  4. Make data/source limitations visible in the artifact when they affect interpretation.
  5. Choose the reviewer runtime: direct file open, local server, static export, or a retained dev server. Prefer the simplest path that matches the real delivery constraint.
  6. Use stable file names and relative asset paths so the artifact can move as a folder; verify generated files and required environment values from that same runtime.
  7. Capture screenshots, console output, request failures, and optional PDF output from the reviewer runtime.
  8. Package the artifact with evidence, stable filenames, rerun instructions, and a short verification note. Do not commit generated evidence unless the project explicitly requests it.

Shared Visual Runtime

Use .shared\visual-runtime for artifact verification:

  • capture_page.mjs to render local HTML or a localhost URL and capture screenshots.
  • export_pdf.mjs when the artifact needs print or handoff fidelity.
  • visual_lint.mjs for obvious visual and console defects.
  • image_bounds.py and make_contact_sheet.py for asset review and contact sheets.

No Office COM is required. If a standalone web artifact is later embedded into an Office file, that embedding/export step belongs to the relevant Office COM skill.

Verification

Before completion:

  • open or serve the standalone web artifact exactly as a reviewer would;
  • verify relative assets load;
  • run visual lint;
  • preserve screenshot, manifest, console, request-failure, and optional PDF evidence;
  • confirm the evidence bundle can be understood without hidden conversation context and explain how to rerun it.

Example Prompts

HTML Memo And Dashboard

Use $web-artifacts-builder-codex and $frontend-design-codex.

Create a polished HTML memo and dashboard from the materials in:
[PASTE FOLDER OR FILE PATHS]

Objective:
Build an executive-ready HTML artifact that explains [TOPIC / DECISION / ANALYSIS] and includes both a written memo and an interactive dashboard.

Requirements:
- Do not use a template. Derive the visual system from the subject matter and source content.
- Include an executive summary, key findings, supporting analysis, risks/limitations, and recommended next steps.
- Include dashboard sections with KPI cards, charts, tables, filters or segmented views where useful.
- Make it responsive for desktop and mobile.
- Use the shared visual runtime for browser screenshots, PDF export, image bounds checks, and visual linting.
- Run accessibility and visual QA checks.
- Provide evidence artifacts: screenshots, PDF export, visual lint output, and a short QA note.
- Do not use Office COM unless exporting into an Office file becomes explicitly necessary.
- Save all outputs under: [OUTPUT FOLDER]

Common Mistakes

  • Shipping an artifact that only works from a dev server when the user needed a portable folder.
  • Hiding caveats in conversation instead of the artifact or evidence note.
  • Forgetting mobile or print views.
  • Treating package evidence as optional.

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.