Agent Skills › win4r/MuseAI-Skills › artifact_testing

artifact_testing

GitHub

用于在交付前验证文件(PDF、PPTX等)和Web制品,通过渲染审计、视觉检查和占位符扫描确保质量,防止缺陷内容发布。

opt/hatch/skills/artifacts/testing/SKILL.md win4r/MuseAI-Skills

Trigger Scenarios

构建即将返回链接时 构建任务要求进行验证或QA检查时

Install

npx skills add win4r/MuseAI-Skills --skill artifact_testing -g -y
More Options

Non-standard path

npx skills add https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/artifacts/testing -g -y

Use without installing

npx skills use win4r/MuseAI-Skills@artifact_testing

指定 Agent (Claude Code)

npx skills add win4r/MuseAI-Skills --skill artifact_testing -a claude-code -g -y

安装 repo 全部 skill

npx skills add win4r/MuseAI-Skills --all -g -y

预览 repo 内 skill

npx skills add win4r/MuseAI-Skills --list

SKILL.md

Frontmatter
{
    "name": "artifact_testing",
    "metadata": {
        "includeInPrompt": false
    },
    "description": "Verify an artifact before delivering it - file deliverables (pdf, pptx, docx, xlsx, csv) and web artifacts alike. Use whenever a build is about to return a link, or a build task asks for validation, QA, or a visual check. Covers the per-kind gate scripts, render-and-look verification, and leftover-placeholder scanning."
}

Artifact verification

One home for verification across the artifact namespace. The rule every kind shares: a deliverable is verified by looking at what the user will see, freshly rendered, not by trusting the code that produced it. Never return a link while a gate below fails; after three failed fix attempts, report the specific failure and ask for direction instead of iterating.

File kinds: gates, then eyes

Kind Gate
pdf render_audit.mjs with the flags the pdf skill's workflow.md names, then /opt/hatch/skills/artifacts/scripts/validate_pdf.sh
presentation assemble_deck.mjs, then render_audit.mjs with the flags workflow.md names
docx render to PDF with headless LibreOffice (soffice --headless --convert-to pdf), then rasterize (pdftoppm -jpeg -r 100)
xlsx /opt/hatch/skills/artifacts/scripts/validate_xlsx.py
csv / md parse it back (csv: a Python csv read; md: read the file)

The shared render engine is /opt/hatch/skills/artifacts/scripts/render_audit.mjs; renders outlast muse.exec's default yield, so size yield_ms past the expected runtime and read the report file the flags name rather than trusting a backgrounded command's silence.

Then look. Read every validation PNG or page image with fresh eyes - the generating context sees what it expects, not what rendered. Check first for text overflow or cut-off content, then overlaps, collisions, cramped or uneven spacing, low-contrast text, and template decoration left behind.

Placeholder scan. Before returning, search the deliverable's text for leftover scaffolding: TODO, lorem, placeholder, [insert, xxx runs, and sample rows the user never asked for. Anything found is fixed, not shipped.

Web artifacts

Web builds keep their own audit tools (web_artifacts.build and web_artifacts.audit run the same capture engine with enforcement); this skill's render-fresh and placeholder rules apply to their output all the same.

Version History

  • 38bbb45 Current 2026-10-18 15:46

Same Skill Collection

opt/hatch/skills/apple-healthkit/SKILL.md
opt/hatch/skills/artifacts/markdown/SKILL.md
opt/hatch/skills/artifacts/pdf/SKILL.md
opt/hatch/skills/artifacts/presentation/SKILL.md
opt/hatch/skills/artifacts/spreadsheet/SKILL.md
opt/hatch/skills/booking/SKILL.md
opt/hatch/skills/calendly/SKILL.md
opt/hatch/skills/device-data/SKILL.md
opt/hatch/skills/duffel/SKILL.md
opt/hatch/skills/facebook-cli/SKILL.md
opt/hatch/skills/facebook/SKILL.md
opt/hatch/skills/flightaware/SKILL.md
opt/hatch/skills/forget/SKILL.md
opt/hatch/skills/function-health/SKILL.md
opt/hatch/skills/generate_podcast/SKILL.md
opt/hatch/skills/gmail/SKILL.md
opt/hatch/skills/goals/SKILL.md
opt/hatch/skills/google-calendar/SKILL.md
opt/hatch/skills/google-contacts/SKILL.md
opt/hatch/skills/google-drive/SKILL.md
opt/hatch/skills/google-forms/SKILL.md
opt/hatch/skills/google-health-connect/SKILL.md
opt/hatch/skills/google-slides/SKILL.md
opt/hatch/skills/google-tasks/SKILL.md
opt/hatch/skills/granola/SKILL.md
opt/hatch/skills/healthex/SKILL.md
opt/hatch/skills/image-search/SKILL.md
opt/hatch/skills/instagram-messages/SKILL.md
opt/hatch/skills/instagram/SKILL.md
opt/hatch/skills/media-library/SKILL.md
opt/hatch/skills/messenger/SKILL.md
opt/hatch/skills/meta-threads/SKILL.md
opt/hatch/skills/muse_db/SKILL.md
opt/hatch/skills/muse-early-access/SKILL.md
opt/hatch/skills/muse-feedback/SKILL.md
opt/hatch/skills/muse-mail/SKILL.md
opt/hatch/skills/notion/SKILL.md
opt/hatch/skills/opentable/SKILL.md
opt/hatch/skills/outlook-calendar/SKILL.md
opt/hatch/skills/outlook-contacts/SKILL.md
opt/hatch/skills/outlook-mail/SKILL.md
opt/hatch/skills/peloton/SKILL.md
opt/hatch/skills/philips-hue/SKILL.md
opt/hatch/skills/places-search/SKILL.md
opt/hatch/skills/plaid/SKILL.md
opt/hatch/skills/podcast/SKILL.md
opt/hatch/skills/printify/SKILL.md
opt/hatch/skills/self-awareness/SKILL.md
opt/hatch/skills/share-ideas/SKILL.md

Metadata

Files
0
Version
38bbb45
Hash
c110e050
Indexed
2026-10-18 15:46

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 00:03
浙ICP备14020137号-1