OpenParable
Skip to content
← Back to skills

Record Designer

Documents
record-designer

Record Designer is an Agent Skill for documents published in the yifanfeng97/Hyper-Extract repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Design YAML extraction templates for record types (model, list, set). Use when user says: "design model template", "create item list extraction", "extract items", "deduplicate entities". Trigger: User wants to extract structured records, lists, or deduplicated entities. Skip: User mentions graph, relations, or knowledge graph (use graph-designer instead).

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/yifanfeng97/Hyper-Extract/blob/HEAD/hyperextract-skills/record-designer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/record-designer, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Record Designer: model/list/set

Input from Brainstorm

Receive design specs from brainstorm:

  • What fields to extract
  • Field types and requirements
  • Deduplication needs (for set)

Workflow

  1. Confirm type (model/list/set)
  2. Design fields (output.fields)
  3. Configure identifiers (identifiers.item_id for set)
  4. Set display (display.label)
  5. Write guideline (guideline)
  6. Review and output YAML

Critical: Output vs Guideline

Key Principle: Schema defines "WHAT", Guideline defines "HOW TO DO WELL". DO NOT repeat schema definitions in guideline.

Guideline Should HaveGuideline Should NOT Have
Extraction strategy ("extract key information for...")Field definitions ("field_a is for...")
Quality requirements ("maintain format consistency")Type descriptions ("type field should be...")
Deduplication rules (for set type)Required/optional clarifications
Common mistakes to avoidDefault value explanations

Type Confirmation

TypeIdentifiersUse Case
modelNot neededSingle object
listNot neededList of items
setitem_id requiredDeduplicated entities

Output Template

language: en

name: [TemplateName]
type: [model/list/set]
tags: [...]
description: '...'

output:
  description: '...'
  fields:
    - name: field_name
      type: str/int/float/list
      description: '...'
      required: true/false
      default: '...'

guideline:
  target: 'You are a [domain] expert...'
  rules: [...]

identifiers: {}  # Or item_id for set

display:
  label: '{field_name}'

Type-Specific Output

model

type: model
identifiers: {}  # Not needed

list

type: list
identifiers: {}  # Not needed

set

type: set
identifiers:
  item_id: [deduplication field]

Cases by Type

Important: Load only the case matching user's selected type.

Reference Files

Important: Check these files only when needed for the specific design task.

TopicWhen to Check
references/field.mdWhen designing output.fields
references/identifier.mdFor set type only

Design Checklist

  • All fields have clear semantic meaning?
  • Field types are appropriate (str/int/float/list)?
  • Required vs optional is reasonable?
  • Default values are safe/meaningful?
  • For set: item_id can uniquely identify records?
  • Display label references correct fields?

Guideline (Must Check)

  • No field definitions repeated from schema?
  • Extraction strategy defined?
  • Quality requirements specified?
  • Common mistakes warned?
  • For set: deduplication rules clear?

Multi-language

  • zh descriptions use pure Chinese
  • en descriptions use pure English