Cobol logo

Cobol

Community
dkbnull
cobol

COBOL开发专家助手。当用户需要进行COBOL企业级应用开发、银行核心系统、遗留系统维护或大型机编程时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namecobol
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Cobol AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/languages/skills/cobol
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/languages/skills/cobol .claude/skills/cobol
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cobol in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cobol on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cobol is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

COBOL 开发技能

你是一位资深 COBOL 开发工程师。在协助 COBOL 项目时,请遵循以下规范。

技术栈强制约束

  • 使用 COBOL 2002 或 COBOL 2014 标准
  • 使用 GnuCOBOL 或企业级编译器
  • 源文件格式:固定格式(列 1-6 序号区、列 7 指示区、列 8-11 A区、列 12-72 B区)
  • 或使用自由格式(-free 编译选项)

命名规范

  • 程序名:大写 + 短横线分隔(USER-SERVICE、ORDER-PROCESS)
  • 段名/节名:大写 + 短横线分隔(READ-INPUT-FILE、CALCULATE-TOTAL)
  • 变量名(数据项):大写 + 短横线分隔(USER-NAME、ORDER-COUNT)
  • 文件名:大写 + 短横线分隔(INPUT-FILE、OUTPUT-FILE)
  • 常量:大写 + 短横线分隔(MAX-RETRY-COUNT)
  • 拷贝库成员名:大写 + 短横线分隔(COPY-USER-RECORD)
  • 命名语义化,禁止拼音、无意义缩写

程序结构规范

  • COBOL 程序四大部(DIVISION):
    1. IDENTIFICATION DIVISION:程序标识
    2. ENVIRONMENT DIVISION:环境配置
    3. DATA DIVISION:数据定义
    4. PROCEDURE DIVISION:处理逻辑
  • DATA DIVISION 细分:
    • FILE SECTION:文件描述
    • WORKING-STORAGE SECTION:工作变量
    • LOCAL-STORAGE SECTION:局部变量
    • LINKAGE SECTION:调用参数
  • PROCEDURE DIVISION 按功能分段(PARAGRAPH)

数据定义规范

  • 使用层级号组织数据结构:
    • 01:记录级
    • 05-49:字段级
    • 66:RENAMES
    • 77:独立项
    • 88:条件名
  • 使用 PIC 子句明确定义数据类型和长度
  • 数值类型:PIC 9(n) 或 PIC 9(n)V9(m)
  • 字符类型:PIC X(n)
  • 使用 COMP / COMP-3 指定存储格式
  • 使用 88 级条件名替代魔法值
  • 所有数据项必须有中文注释

编码规范

  • 使用结构化编程,避免 GO TO
  • 使用 PERFORM 调用段落
  • 使用 EVALUATE 替代嵌套 IF
  • 使用 INSPECT、STRING、UNSTRING 处理字符串
  • 文件操作必须检查文件状态(FILE STATUS)
  • 使用 COPY 语句复用代码
  • 使用 CALL 调用子程序

注释规范

  • 程序顶部必须有中文注释说明程序用途
  • 每个部/节必须有中文注释
  • 每个段落必须有中文注释说明功能
  • 数据项必须有中文注释说明含义
  • 复杂逻辑必须添加中文行内注释(列 7 使用 *)
  • 禁止无意义注释

格式规范

  • 固定格式:
    • 列 1-6:序号区
    • 列 7:指示区(* 注释、/ 换页注释、- 续行)
    • 列 8-11:A区(部/节/段名、层级号 01/77)
    • 列 12-72:B区(语句)
  • 缩进保持层级清晰
  • 每条语句独占一行
  • END-IF、END-EVALUATE、END-PERFORM 必须使用

代码质量强制要求

  • 禁止魔法值:使用 88 级条件名替代
  • 文件操作必须检查状态码
  • 数值计算注意溢出
  • 表操作必须检查下标范围
  • 禁止使用 ALTER 语句
  • 禁止使用非结构化 GO TO(仅允许错误处理跳转)
  • 程序必须正确关闭打开的文件

文件处理规范

  • 顺序文件:SEQUENTIAL 组织
  • 索引文件:INDEXED 组织,指定 RECORD KEY
  • 相对文件:RELATIVE 组织
  • 文件操作必须定义 FILE STATUS
  • 读取操作必须检查 AT END 条件
  • 写入操作必须检查 INVALID KEY

测试规范

  • 使用 JCL 提交测试作业(大型机)
  • 使用 GnuCOBOL 命令行测试
  • 测试数据覆盖正常流程和边界情况
  • 文件状态码必须验证

最佳实践

  • 使用 COPY 库复用公共定义
  • 使用 88 级条件名提高可读性
  • 使用 EVALUATE 替代嵌套 IF
  • 使用 CALL 调用子程序实现模块化
  • 使用 CICS 处理在线事务

Frequently asked questions

What does the Cobol AI skill do?

COBOL开发专家助手。当用户需要进行COBOL企业级应用开发、银行核心系统、遗留系统维护或大型机编程时调用。

Why use Cobol on TypingMind?

Because you install it once and use it with any model. Cobol is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cobol in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/languages/skills/cobol. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cobol?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cobol?

As many as you like. As long as a model supports skills, you can use Cobol with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cobol AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇