AgentSkillsCN

frontmatter-navigation

借助 YAML frontmatter 元数据高效实现代码开发,轻松驾驭 PL/I 转译文档。

SKILL.md
--- frontmatter
name: frontmatter-navigation
description: Navigate PL/I translation documentation using YAML frontmatter metadata for efficient code implementation

Frontmatter Navigation for Translation Documentation

How to Use

All files in translation/ have YAML frontmatter metadata at the top. Use this to efficiently find the right documentation for your current implementation task.

Step 1: Read the Index

Start by reading translation/INDEX.md — it contains:

  • A priority-ordered reading list
  • Documents grouped by category
  • Documents grouped by PL/I source file
  • A searchable tags index

Step 2: Navigate by Task

Implementation TaskRead These Categories FirstThen Check
Data model classesdata-structures (priority 1-2)special-considerations
Business logicbusiness-logic, data-structurescontrol-flow, error-handling
File I/O classesio-operations, data-structuresrecord-formats, input-formats
Report generationio-operations (report-layouts)picture-formats, string-handling
Error handlingerror-handlingspecial-considerations
Full translationFollow priority order 1→5All files

Step 3: Use Frontmatter Fields

Each document has these frontmatter fields:

FieldHow to Use It
titleQuick identification of document content
categoryFilter documents by implementation area
source_filesFind all docs related to a specific PL/I source file
tagsSearch for specific topics (e.g., "BigDecimal", "record-format")
related_docsFollow cross-references to connected information
priorityReading order: 1=essential context, 5=edge cases only
summaryOne-line description for quick scanning

Step 4: Per-Source-File Navigation

When translating a specific PL/I file, filter docs by source_files:

  • PSAM1.pli: Look for docs with source_files containing "PSAM1.pli"
  • PSAM1LIB.pli: Look for docs with source_files containing "PSAM1LIB.pli"
  • PSAM2.pli: Look for docs with source_files containing "PSAM2.pli"

Example Workflow

  1. Read translation/INDEX.md for the full map
  2. For implementing CustomerRecord.java:
    • Read record-formats.md (category: data-structures, has byte offsets)
    • Read variables-psam1.md (category: data-structures, has field declarations)
    • Check data-types.md for PL/I-to-Java type mapping
    • Check input-formats.md for file format details
  3. For implementing business logic:
    • Read logic-psam1.md for the algorithm
    • Check control-flow.md for loop/branch patterns
    • Check error-handling.md for error conditions