yifanfeng97/hyper-extract/template-optimizer
Claude Code and agent skill by yifanfeng97/hyper-extract
- community
Checking that the SKILL.md file is still in the repository.
Optimize YAML templates for Hyper-Extract. Use when: "optimize template", "fix YAML issues", "improve quality", "lint template" Trigger: After creating templates or during review Skip: Creating new templates (use brainstorm + designer instead)
Install
npx vskill@latest install yifanfeng97/hyper-extract/template-optimizerSKILL.md
Template Optimizer
Automatically analyze and optimize YAML templates by applying best practices and fixing common issues.
Workflow
Step 1: Parse YAML
Load the YAML template and validate basic structure.
Step 2: Analyze Issues
Check against these rules:
| Rule | What to Check | |
|---|---|---|
| rules-naming.md | Field naming standardization | |
| rules-multilingual.md | Language consistency | |
| rules-field-count.md | Information density | |
| rules-consistency.md | Schema vs Guideline separation | |
| rules-hypergraph-grouping.md | Hypergraph grouping strategy |
Step 3: Apply Fixes
Apply fixes based on optimization level:
| Level | Description | Example | |
|---|---|---|---|
| Auto-fix | Safe changes that always improve | relation_type → type | |
| Suggest | Changes that may need review | Field count > 5 | |
| Review | Design decisions | Relation type openness |
Step 4: Generate Report
Output changes with explanations for learning.
Detection Rules
Rule 1: Multi-language Consistency
Fix: Separate language content, use pure Chinese in zh, pure English in en.
Rule 2: Field Naming
Fix: Standardize to concise names.
Rule 3: Field Count
Fix: Simplify to essential fields, use priority: Essential → Important → Optional.
Rule 4: Schema-Guideline Separation
Fix: Schema defines WHAT, Guideline defines HOW TO DO WELL.
Rule 5: Hypergraph Grouping
Fix: Use nested grouping relation_members: [group_a, group_b] when entities partition by roles.
Design Principles
Schema vs Guideline
| Schema Defines | Guideline Defines | |
|---|---|---|
| Field names | Extraction strategy | |
| Field types | Quality requirements | |
| Field descriptions | Creation conditions | |
| Required/optional | Common mistakes |
❌ Wrong: Guideline repeats schema definitions ✅ Correct: Guideline explains how to extract well
Information Density
For entities and relations:
| Field Priority | Examples | |
|---|---|---|
| Essential | source, target, participants | |
| Important | type, time, location | |
| Optional | description, metadata |
Max: 5 fields per component
Naming Conventions
| For | Use | Example | |
|---|---|---|---|
| Template name | CamelCase | EarningsSummary | |
| Field names | snake_case | company_name | |
| Tags | lowercase | finance, investor |
Reference Files
| Topic | When to Check | |
|---|---|---|
| rules-naming.md | Field naming issues | |
| rules-multilingual.md | Language consistency | |
| rules-field-count.md | Too many fields | |
| rules-consistency.md | Schema-guideline overlap | |
| rules-hypergraph-grouping.md | Role field vs nested grouping |
Output Format
Integration
When to use:
- After creating new templates
- Before validator
- During template review
- Batch optimization of existing templates
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghyperextract-skills/template-optimizer/SKILL.md
Popularity
- Repository stars
- 654
- Repository forks
- 69
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yifanfeng97/hyper-extract/template-optimizer)