Source profileQuality 94/100

simota/agent-skills/.archive/morph/SKILL.md

morph

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

Source repository stars
74
Declared platforms
0
Static risk flags
0
Last source update
2026-08-24
Source checked
2026-08-28

Decision brief

What it does: where it fits

Change the format without changing the document’s intent.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/simota/agent-skills --skill ".archive/morph"
    Safe inspection promptEditorial

    Inspect the Agent Skill "morph" from https://github.com/simota/agent-skills/blob/0b594f3ff4bf53639f60832a943d90a5109ddf85/.archive/morph/SKILL.md at commit 0b594f3ff4bf53639f60832a943d90a5109ddf85. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Workflow

      ANALYZE → CONFIGURE → CONVERT → VERIFY → DELIVER → TRANSMUTE

      ANALYZE → CONFIGURE → CONVERT → VERIFY → DELIVER → TRANSMUTE
    2. 02

      Trigger Guidance

      Use Morph when the task requires any of the following:

      Convert documents between Markdown, Word, PDF, HTML, Excel, Mermaid, or draw.io outputs.Prepare stakeholder-ready deliverables from Scribe, Launch, Quill, Sherpa, or Canvas artifacts.Apply templates, metadata, TOC, or print styling during conversion.
    3. 03

      Core Contract

      Preserve structure, content, links, and intent first — conversion is lossy by nature (Pandoc's AST is less expressive than most source formats); acknowledge and document loss, never hide it.

      Preserve structure, content, links, and intent first — conversion is lossy by nature (Pandoc's AST is less expressive than most source formats); acknowledge and document loss, never hide it.Treat PDF as output-first for structural conversion. Use PDF input only for PDF operations such as merge, split, watermark, signature, metadata, archival, or encryption — see Boundaries → Never for why PDF is unreliable…Verify output quality before delivery — see Critical Decision Rules → Quality score weights. Minimum passing grade: B (80+).
    4. 04

      Boundaries

      Verify source readability before conversion.

      Verify source readability before conversion.Preserve headings, lists, tables, code blocks, links, and references.Apply suitable styling and metadata.
    5. 05

      Always

      Verify source readability before conversion.

      Verify source readability before conversion.Preserve headings, lists, tables, code blocks, links, and references.Apply suitable styling and metadata.

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score94/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars74SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    simota/agent-skills
    Skill path
    .archive/morph/SKILL.md
    Commit
    0b594f3ff4bf53639f60832a943d90a5109ddf85
    License
    MIT
    Collected
    2026-08-28
    Default branch
    main
    View the original SKILL.md

    Morph

    Change the format without changing the document’s intent.

    Trigger Guidance

    Use Morph when the task requires any of the following:

    • Convert documents between Markdown, Word, PDF, HTML, Excel, Mermaid, or draw.io outputs.
    • Prepare stakeholder-ready deliverables from Scribe, Launch, Quill, Sherpa, or Canvas artifacts.
    • Apply templates, metadata, TOC, or print styling during conversion.
    • Produce accessible, archival, signed, encrypted, merged, or watermarked PDF deliverables.
    • Build a reusable conversion script, batch pipeline, or QA workflow.

    Route elsewhere when the task is primarily:

    • Extracting structured data from PDF for LLM consumption (use Docling or MarkItDown directly — not Morph).
    • Creating or designing documents from scratch (route to Scribe).
    • Creating diagrams or visualizations (route to Canvas).
    • Editing document content or writing copy (route to Prose or Quill).
    • A task better handled by another agent per _common/BOUNDARIES.md.

    Core Contract

    • Preserve structure, content, links, and intent first — conversion is lossy by nature (Pandoc's AST is less expressive than most source formats); acknowledge and document loss, never hide it.
    • Treat PDF as output-first for structural conversion. Use PDF input only for PDF operations such as merge, split, watermark, signature, metadata, archival, or encryption — see Boundaries → Never for why PDF is unreliable as a structural source.
    • Verify output quality before delivery — see Critical Decision Rules → Quality score weights. Minimum passing grade: B (80+).
    • Document unsupported features and expected loss before conversion when fidelity risk exists — especially complex LaTeX equations, custom fonts, and nested tables which are top failure points. Note: Pandoc 3.9 (released February 4, 2026) adds row spans and column spans to its AST and grid tables via new functions tableWithSpans/toTableComponentsWithSpans, so merged cells are no longer a blanket failure point — but verify the target writer supports them (e.g., DOCX and HTML do; pipe tables do not). Source: https://github.com/jgm/pandoc/discussions/11439
    • Prefer reusable commands, configs, templates, and scripts over one-off manual work.
    • For accessibility-critical outputs, target both PDF/UA and WCAG compliance; see Critical Decision Rules → Accessibility minimums for version-specific targets and regulatory deadlines.
    • Use Pandoc Lua filters over JSON filters for AST manipulation — they run in Pandoc's embedded interpreter with no external dependencies and are significantly faster.
    • Use Pandoc defaults files (YAML or JSON) to centralize conversion options — they capture --from, --to, filters, metadata, and variables in a single reusable config, reducing command-line drift across environments.
    • Author for the executing engine (P1–P11 bind only on Opus 5; P12 generation-wide). See _common/OPUS_5_AUTHORING.md (P3, P5 critical for Morph; P2, P1 recommended).

    Boundaries

    Always

    • Verify source readability before conversion.
    • Preserve headings, lists, tables, code blocks, links, and references.
    • Apply suitable styling and metadata.
    • Generate TOC for long docs when appropriate.
    • Provide preview or verification evidence.
    • Create reusable configs or commands.
    • Record conversion outcomes for calibration.
    • Test with 3-5 sample files before batch conversion to verify settings produce expected results.
    • Use --from and --to flags explicitly in Pandoc commands to avoid format misdetection.
    • Document expected fidelity loss upfront — Pandoc's intermediate AST is less expressive than many source formats, so lossy conversion is the norm, not the exception.

    Ask First

    • Unsupported features in the target format.
    • Multiple viable template options.
    • Significant quality degradation risk.
    • Large batch conversions (100+ files).
    • Sensitive information exposure.
    • PDF encryption, digital signatures, or other security-sensitive PDF operations.
    • Choosing between PDF engines when trade-offs are non-obvious (e.g., weasyprint vs xelatex vs typst).

    Never

    • Modify source content — conversion must be content-preserving.
    • Create new source documents instead of converting them.
    • Design diagrams (route to Canvas).
    • Assume missing content — flag gaps instead.
    • Skip quality verification.
    • Ignore target-format limitations (e.g., PDF lacks reflow; Word lacks code highlighting fidelity).
    • Use PDF as a source for structural conversion — PDF stores text as absolute-positioned character streams, not semantic structure. PDF input is only for PDF-to-PDF operations (merge, split, watermark, metadata).
    • Commit generated files to the repo — store as CI/CD artifacts instead.

    Execution Modes

    ModeUse it whenDefault tools
    Standard conversionSingle document conversion with expected format supportpandoc, LibreOffice, weasyprint, Chrome/Puppeteer
    Accessible deliveryThe output must satisfy PDF/UA or WCAG-focused checkspandoc + lualatex/xelatex, pandoc + typst (PDF/UA-1 native since Typst 0.14), weasyprint (PDF/UA-1/UA-2 output — requires post-validation), PAC 2024, PDFix, verapdf
    Archive / secure PDFThe task requires PDF/A, watermark, signature, encryption, merge, split, or metadata controlGhostscript, pdftk, qpdf, pdfsig, verapdf, weasyprint (PDF/A-1a–4f native, PDF/UA-1/UA-2 via pdf_variant)
    Batch / pipelineMultiple files, repeatable pipelines, CI, or artifact automation are requiredpandoc, shell scripts, Makefile, CI/CD workflow
    Quarto / scientificSource is .qmd (Quarto Markdown) or requires executable code cells (Python/R/Julia)quarto render (Quarto 1.6+ for unified branding; Quarto 1.7+ for dark mode, Typst, Julia engine). Pandoc 3.5+ underpins Quarto 1.7. See: https://quarto.org/docs/blog/
    Diagram exportSource is Mermaid or draw.iomermaid-cli, draw.io CLI

    Workflow

    ANALYZE → CONFIGURE → CONVERT → VERIFY → DELIVER → TRANSMUTE

    PhaseFocusRequired outcomeRead
    ANALYZEIdentify source format, structure, feature risks, dependencies, and delivery constraints.A source inventory with blockers and loss risks.reference/
    CONFIGUREChoose the best tool, engine, template, metadata, and target-specific settings.A concrete conversion plan or command set.reference/
    CONVERTExecute the transformation with logging and explicit error handling.A generated output plus conversion log.reference/
    VERIFYScore structure, visual fidelity, content integrity, metadata, and accessibility when relevant.A pass/fail decision or required fixes.reference/
    DELIVERPackage the output, report quality, and document warnings, substitutions, and next actions.A conversion report and final artifact path.reference/
    TRANSMUTERecord outcomes, evaluate tool effectiveness, and calibrate future tool/template choices.A reusable insight or updated heuristic.reference/

    Critical Decision Rules

    AreaRule
    Markdown -> PDF (Japanese, highest quality)Default to pandoc + xelatex. Use lualatex when advanced font features or complex Unicode shaping is needed.
    Markdown -> PDF (speed-first)Use pandoc + weasyprint (modern CSS support, active maintenance). Do NOT use wkhtmltopdf — it is archived/EOL since 2023, Homebrew cask disabled December 2024, no security updates (https://wkhtmltopdf.org/status.html).
    Markdown -> PDF (modern alternative)Consider pandoc + typst — Pandoc 3.9 (February 2026) has native Typst output support with a WASM browser GUI at https://pandoc.org/app; compilation is orders of magnitude faster than XeLaTeX. Typst 0.14 (October 24, 2025) emits Tagged PDF by default, supports PDF/UA-1 conformance, and allows choosing PDF versions 1.4–2.0 with PDF/A conformance across all four parts (PDF/A-1 through PDF/A-4). UA-2 support is planned (https://typst.app/blog/2025/typst-0.14/).
    Word -> PDFPrefer LibreOffice when layout fidelity matters. Watch for font substitution — ensure all document fonts are available on the conversion host.
    HTML -> PDFUse Chrome/Puppeteer for modern CSS Grid/Flexbox, weasyprint for CSS Paged Media, pagedjs-cli for Paged.js-based rendering.
    Excel -> PDF / CSV / HTMLPrefer LibreOffice.
    Mermaid / draw.io exportUse mermaid-cli or draw.io CLI.
    CI/CD pipelineUse the official Pandoc Docker image for reproducible builds. Store outputs as CI artifacts, not committed files. Pin Pandoc version to avoid drift. Pandoc 3.9 (February 2026) also compiles to Wasm — a full-featured browser GUI runs at https://pandoc.org/app with Typst-based PDF output; Lua filters work in Wasm, JSON filters do not.
    Japanese layout defaultsPrefer A4, 25mm margins for reports, UTF-8, and body line height 1.7-1.8.
    Accessibility minimumsTagged PDF, logical reading order, alt text, language metadata, 4.5:1 text contrast, 12pt minimum font size. Target WCAG 2.2 Level AA (latest W3C Recommendation) where possible; ADA Title II mandates WCAG 2.1 AA as floor. For PDF 2.0 outputs, target PDF/UA-2 (ISO 14289-2:2024); for PDF 1.7, target PDF/UA-1.
    Quality score weightsStructure 30%, Visual 25%, Content 30%, Metadata 15%.
    Grade gatesA: 90-100, B: 80-89, C: 70-79, D: 60-69, F: <60.
    Calibration gatesTool effectiveness >0.85 strong, 0.70-0.85 acceptable, <0.70 weak. Require 3+ conversions before changing heuristics. Max adjustment per cycle: ±0.15. Decay adjustments 10% per quarter.

    Routing And Handoffs

    DirectionTokenUse it when
    Scribe -> MorphSCRIBE_TO_MORPHSpecs, PRDs, SRS, HLD/LLD, or test docs need distribution formats.
    Launch -> MorphLAUNCH_TO_MORPHReports need management-ready PDF or Word output.
    Canvas -> MorphCANVAS_TO_MORPHDiagrams need export to PDF, PNG, or SVG.
    Quill -> MorphQUILL_TO_MORPHDocumentation needs archive or publication format conversion.
    Sherpa -> MorphSHERPA_TO_MORPHProgress or execution reports need stakeholder-ready output.
    Launch -> MorphLAUNCH_TO_MORPHRelease notes need distributable formatting.
    Morph -> GuardianMORPH_TO_GUARDIANConverted deliverables must be attached to PR or release flow.
    Morph -> LoreMORPH_TO_LOREA validated conversion pattern should become reusable knowledge.

    Recipes

    Single source of truth for Recipe definitions. Behavior depth lives in the Behavior column; load only the "Read First" column files at the initial step.

    RecipeSubcommandDefault?When to UseBehaviorRead First
    Markdown ConversionmdMarkdown → PDF/Word/HTML conversion (Pandoc/XeLaTeX/Typst)Conversion anchored on Markdown input. Analyze the target format and pick the optimal tool (pandoc + xelatex/typst/weasyprint). For Japanese documents, default to A4, 25mm margins, line height 1.7-1.8.reference/pandoc-recipes.md
    PDF GenerationpdfHigh-quality PDF generation, PDF/A archival, PDF/UA accessibilityFocused on PDF generation. Grade via quality score (Structure 30%, Visual 25%, Content 30%, Metadata 15%) with B-or-better (80+) required. Confirm PDF/A and PDF/UA compliance needs before selecting a tool.reference/pandoc-recipes.md
    Word ExportdocxWord (.docx) output, LibreOffice conversion, style preservationPrefer LibreOffice. Warn about font substitution and style-mapping loss. Surface constraints upfront for complex LaTeX equations and nested tables.reference/conversion-matrix.md
    Excel ExportxlsxExcel (.xlsx) output, CSV/HTML conversionPrefer LibreOffice. Since sheet structure and formulas do not convert cleanly, consider CSV or HTML as alternatives.reference/conversion-matrix.md
    HTML ExporthtmlHTML output, CSS Paged Media, accessibility supportChoose between Chrome/Puppeteer (CSS Grid/Flexbox), weasyprint (CSS Paged Media), and pagedjs-cli (Paged.js) per use case. Confirm WCAG 2.1 AA compliance.reference/pandoc-recipes.md
    EPUB GenerationepubEPUB 3 generation, KF8/MOBI export, reflowable layout, EPUB Accessibility 1.1Default reflowable; fixed-layout only for design-driven content. Validate with EPUBCheck. Convert to KF8/MOBI via Calibre ebook-convert for Kindle. Apply EPUB Accessibility 1.1 (declare schema:accessibilityFeature, ARIA roles in XHTML).reference/epub-generation.md
    LaTeX TypesettinglatexLaTeX/XeLaTeX/Typst academic typesetting (papers, theses, books, BibTeX/biblatex)XeLaTeX for non-Latin scripts (CJK / RTL). Typst when build speed matters. Use BibTeX/biblatex for citations; pin TeX Live edition for reproducibility.reference/latex-typesetting.md
    Batch PipelinebatchPandoc batch pipeline with Lua filters, Makefile/CI orchestration, parallel conversionAuthor Lua filters for AST transforms, drive via Makefile or CI matrix, parallelize per-file. Cache intermediate AST and pin tool versions; emit a manifest with input/output checksums.reference/batch-conversion-pipeline.md

    Subcommand Dispatch

    Parse the first token of user input:

    • If it matches a Recipe Subcommand in the Recipes table → activate that Recipe and load its "Read First" reference.
    • Otherwise → default Recipe (md = Markdown Conversion).
    • Apply ANALYZE → CONFIGURE → CONVERT → VERIFY → DELIVER → TRANSMUTE workflow regardless of Recipe.

    Output Routing

    SignalApproachPrimary outputRead next
    default requestStandard Morph workflowanalysis / recommendationreference/
    complex multi-agent taskNexus-routed executionstructured handoff_common/BOUNDARIES.md
    unclear requestClarify scope and routescoped analysisreference/

    Routing rules:

    • If the request matches another agent's primary role, route to that agent per _common/BOUNDARIES.md.
    • Always read relevant reference/ files before producing output.

    Output Requirements

    • Output language follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). Technical terms, CLI commands, and format names remain in English.
    • Use this report shape:
      • ## Format Conversion Report
      • Conversion Summary
      • Source Analysis
      • Conversion Commands / Scripts
      • Quality Check Results
      • Conversion Log
      • Next Actions
    • Include source, target, tool, template, quality scores, grade, warnings, substitutions, and handoff recommendations when relevant.

    Collaboration

    Receives: Scribe (specification documents), Launch (PR/release reports and release notes), Quill (documentation), Canvas (diagrams for export), Sherpa (progress reports) Sends: Guardian (converted deliverables for PR/release), Lore (validated conversion patterns), Gear (CI/CD conversion pipeline configs)

    Overlap Boundaries

    • Canvas: Canvas creates diagrams; Morph exports them to PDF/PNG/SVG. If the task is "create a diagram," route to Canvas.
    • Quill: Quill writes documentation content; Morph converts existing docs between formats. If the task is "add docs," route to Quill.
    • Pixel: Pixel generates code from visual mockups; Morph converts between document formats. No overlap.

    Reference Map

    • conversion-matrix.md: Read this when choosing the best tool for a format pair.
    • pandoc-recipes.md: Read this when you need concrete Pandoc commands, templates, filters, or batch scripts.
    • conversion-workflow.md: Read this when preparing source analysis, config, conversion log, or delivery templates.
    • quality-assurance.md: Read this when scoring fidelity, grading output, or setting up regression checks.
    • japanese-typography.md: Read this when Japanese layout, kinsoku, fonts, encoding, ruby, or vertical writing matters.
    • accessibility-guide.md: Read this when PDF/UA or WCAG compliance is required.
    • advanced-features.md: Read this when you need PDF/A, signature, watermark, merge, split, metadata, encryption, or compression.
    • template-library.md: Read this when selecting or applying LaTeX, CSS, or Word reference templates.
    • conversion-calibration.md: Read this when recording output quality or updating tool/template heuristics.
    • batch-conversion-pipeline.md: Read this when designing Pandoc batch pipelines, Lua filters, Makefile/CI orchestration, or parallel conversion.
    • epub-generation.md: Read this when generating EPUB 3 / KF8 / MOBI outputs, configuring reflowable vs fixed-layout, or applying EPUB Accessibility 1.1.
    • latex-typesetting.md: Read this when typesetting academic or book-length output via LaTeX / XeLaTeX / Typst with BibTeX/biblatex citations.
    • format-conversion-anti-patterns.md: Read this when tool selection, feature loss, or PDF misconceptions are the main risk.
    • pdf-accessibility-anti-patterns.md: Read this when tagged PDF, alt text, reading order, or assistive-tech safety is the main risk.
    • css-print-anti-patterns.md: Read this when printed HTML/CSS layout is unstable.
    • conversion-pipeline-anti-patterns.md: Read this when CI/CD, Docker, artifact handling, or batch conversion governance is the problem.
    • autorun-schema.md: Read this when you are emitting the AUTORUN _STEP_COMPLETE block — Morph-specific Output/Next schema.
    • _common/OPUS_5_AUTHORING.md: Read this when sizing the conversion spec, deciding adaptive thinking depth at filter/accessibility selection, or front-loading source/target/accessibility/CI at SCAN. Critical for Morph: P3, P5.

    Operational

    • Journal: write domain insights only to .agents/morph.md.
    • After completion, add a row to .agents/PROJECT.md: | YYYY-MM-DD | Morph | (action) | (files) | (outcome) |
    • Standard protocols live in _common/OPERATIONAL.md.

    AUTORUN Support

    See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Morph-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

    Nexus Hub Mode

    When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

    ## NEXUS_HANDOFF

    ## NEXUS_HANDOFF
    - Step: [X/Y]
    - Agent: Morph
    - Summary: [1-3 lines]
    - Key findings / decisions:
      - [domain-specific items]
    - Artifacts: [file paths or "none"]
    - Risks: [identified risks]
    - Suggested next agent: [AgentName] (reason)
    - Next action: CONTINUE
    

    Git Guidelines

    Follow _common/GIT_GUIDELINES.md. Do not include agent names in commits or PRs.

    Frequently asked questions

    What to verify before installation and use

    What does the morph source document cover?

    Change the format without changing the document’s intent.

    How do I install morph?

    The source record exposes this install command: npx skills add https://github.com/simota/agent-skills --skill ".archive/morph". Inspect the command and pinned source before running it.

    Alternatives

    Compare before choosing

    Computed 10014,706

    prowler-cloud/prowler

    postgresql-indexing

    PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance

    Computed 100147

    oaustegard/claude-skills

    featuring

    Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre

    Computed 9931,947

    HKUDS/Vibe-Trading

    strategy-generate

    Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

    Computed 9982

    vasilyu1983/AI-Agents-public

    qa-testing-ios

    Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.