AgentSkillsCN

cobol-keyword-info

从官方参考资料中获取COBOL关键字的结构化文档。在需要了解COBOL关键字的语法、用法或示例时使用。可针对诸如“COBOL中MOVE语句的作用是什么?”“如何使用PERFORM?”“关于COBOL DATA DIVISION的相关信息”等查询,或在遇到不熟悉的COBOL关键字、需要查阅文档时使用。

SKILL.md
--- frontmatter
name: cobol-keyword-info
description: Fetch structured documentation for COBOL keywords from official reference. Use when you need information about a COBOL keyword's syntax, usage, or examples. Triggers for queries like "What does MOVE do in COBOL?", "How to use PERFORM?", "Info on COBOL DATA DIVISION", or when encountering unfamiliar COBOL keywords that require documentation lookup.

COBOL Keyword Information

Fetches detailed documentation for COBOL keywords from the Mainframe Master quick reference.

Usage

bash
ruby <skill-dir>/scripts/fetch_from_doc.rb <keyword>

The keyword should be lowercase, in kebab case if there're some spaces and match COBOL syntax terms (e.g., move, perform, blank, data-division).

Output

Returns structured markdown with:

  • Keyword description and purpose
  • Syntax examples in code blocks
  • Usage patterns and best practices
  • Related tables or reference information

Dependency

Requires nokogiri gem. Install with:

bash
gem install nokogiri

if that dependency is not yet installed