All skills
simota avatar

/morph

@16a3f28
by shingo imotasimota/agent-skills85 stars
15

Converting document formats (Markdown/Word/Excel/PDF/HTML) and generating reusable conversion scripts. Use for distributable specs, accessibility-compliant PDFs, or Pandoc/LibreOffice pipelines.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/morph

This session only. Nothing lands on disk.

referencequality-assurance.md

≈607 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Quality Assurance Guide

Purpose: Use this reference when scoring conversion fidelity, grading outputs, or setting up manual or automated verification — the per-conversion measurement step. Pair with: conversion-calibration.md for the cross-conversion learning loop that consumes these scores (record schema, tool-effectiveness tracking, calibration rules, pattern library).

Contents

  • Quality metrics
  • Grade thresholds
  • Verification process
  • Quality report template
  • Regression testing

Quality Metrics

Metric Weight Meaning
Structure Fidelity 30% Heading, list, table, and code structure retention
Visual Fidelity 25% Fonts, layout, spacing, and styling match intent
Content Integrity 30% No missing text, images, links, or data
Metadata Preservation 15% Title, author, date, keywords, and other metadata survive

Grade Thresholds

Score Grade Meaning Action
90-100 A Ready for distribution Ship
80-89 B Minor issues Review before delivery
70-79 C Noticeable issues Fix before delivery
60-69 D Significant issues Reconvert with fixes
<60 F Unacceptable Investigate root cause

Verification Process

Pre-Conversion

file input.md
stat input.md
grep -c "^#" input.md
grep -c "^\\*" input.md
grep -c "!\\[" input.md
grep -c "\\[.*\\](" input.md

During Conversion

pandoc input.md -o output.pdf --pdf-engine=xelatex -v 2>&1 | tee conversion.log

Post-Conversion

pdfinfo output.pdf
pdffonts output.pdf
pdfimages -list output.pdf
pdftotext output.pdf output.txt

Quality Report Template

# Conversion Quality Report

## Summary
- Source:
- Target:
- Tool:
- Template:
- Grade:

## Metric Scores
- Structure:
- Visual:
- Content:
- Metadata:
- Overall:

## Warnings
- 

## Recommended Fixes
- 

Regression Testing

Rules:

  • Keep a feature-rich test document that includes headings, lists, tables, code, images, links, and metadata.
  • Re-run the same test set after tool, template, or dependency updates.
  • Compare both score and artifact quality, not only exit status.

Example:

pandoc test-features.md -o test-output.pdf --pdf-engine=xelatex
pandoc test-features.md -o test-output.docx
pandoc test-features.md -o test-output.html -s

Source: SKILL.md on GitHub

No alerts5mo5 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The Morph skill provides document conversion capabilities using industry-standard tools like Pandoc, LaTeX, and Ghostscript. It is susceptible to indirect prompt injection due to the ingestion and processing of external documents with powerful rendering engines. The skill also generates and executes local scripts for automation, which is consistent with its stated purpose of document management.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

  • Runlayer6mo

    1/15 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 16a3f28. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last month

README badge

README badge for simota/agent-skills/morph