template-optimizer

Validate and optimize YAML templates for naming, multilingual, and schema issues.

3.3k|386|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/yifanfeng97/Hyper-Extract --skill template-optimizer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: template-optimizer
Source: https://github.com/yifanfeng97/Hyper-Extract/tree/main/hyperextract-skills/template-optimizer
Command: npx skills add https://github.com/yifanfeng97/Hyper-Extract --skill template-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Template authors and reviewers often face inconsistent field names, mixed-language content, overly dense component schemas, and improper hypergraph grouping that lead to extraction errors and poor downstream quality. Manual inspection is time-consuming and error-prone, and subtle schema/guideline conflation causes ambiguous extractor behavior.

Core Features & Use Cases

  • YAML Parsing & Validation: Load and validate template structure to detect syntax and structural problems.
  • Rule-based Analysis: Identify naming standard violations, multilingual inconsistencies, excessive field counts, schema-vs-guideline repetition, and hypergraph grouping anti-patterns.
  • Auto-fix & Suggestions: Apply safe automatic renames and language separations, suggest simplifications for dense components, and mark design decisions for review.
  • Reporting & Integration: Produce an actionable optimization report for batch operations, pre-validator checks, template reviews, and iterative template evolution.

Quick Start

Run the template optimizer on a YAML template to automatically detect issues, apply safe fixes where appropriate, and produce a clear optimization report.

Frequently Asked Questions about template-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate YAML template structure and fix naming convention errors?▼

To validate YAML template structure and fix naming convention errors, run the optimizer to detect syntax issues, enforce naming standards, and auto-apply safe renames for extraction templates.

What causes hypergraph grouping issues and schema-guideline conflation in YAML templates?▼

Hypergraph grouping issues and schema-guideline conflation in YAML templates occur when authors mix structural definitions with review guidelines, causing ambiguous extractor behavior and poor downstream quality.

How do I auto-fix multilingual inconsistencies and excessive fields in YAML extraction templates?▼

Auto-fix multilingual inconsistencies and excessive fields in YAML extraction templates by applying rule-based analysis that separates mixed-language content, flags dense components, and suggests safe simplifications.

Can I batch optimize YAML templates for pre-validation checks before deployment?▼

Yes, you can batch optimize YAML templates for pre-validation checks before deployment by processing multiple files to generate actionable optimization reports that flag design decisions for review.

Does the YAML template optimizer work with Hyper-Extract template files?▼

Yes, the YAML template optimizer works directly with Hyper-Extract template files, validating structure, enforcing naming conventions, and separating schema from guideline content to improve extraction quality.

What are the limitations of auto-fixing YAML template issues during design-time reviews?▼

The limitation during design-time reviews is that auto-fixing YAML template issues only applies safe renames and language separations, while complex dense component simplifications and hypergraph anti-patterns are marked for manual review.