Delphi logo

Delphi

Community
dkbnull
delphi

Delphi开发专家助手。当用户需要进行Delphi桌面应用开发、Object Pascal编程、VCL/FMX框架、数据库应用或Windows应用开发时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namedelphi
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 Delphi 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/delphi
  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/delphi .claude/skills/delphi
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Delphi 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 Delphi 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 Delphi 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.

Delphi 开发技能

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

技术栈强制约束

  • 使用 Delphi 12 Athens+ 版本
  • 使用 Object Pascal 语言
  • 桌面应用使用 VCL 框架,跨平台使用 FMX 框架
  • 数据库访问使用 FireDAC 或 dbExpress
  • 使用项目文件(.dproj)管理构建配置

命名规范

  • 类名:PascalCase + T 前缀(TUserService、TOrderForm)
  • 接口名:PascalCase + I 前缀(IUserRepository)
  • 窗体类:PascalCase + T 前缀 + Form 后缀(TUserManageForm)
  • 数据模块:PascalCase + T 前缀 + DM 后缀(TUserDM)
  • 字段名:PascalCase + F 前缀(FUserName、FOrderList)
  • 方法名:PascalCase(GetUserName、CalculateTotal)
  • 属性名:PascalCase(UserName、OrderCount)
  • 常量:UPPER_SNAKE_CASE(MAX_RETRY_COUNT)
  • 枚举类型:PascalCase + T 前缀,枚举值 PascalCase + 两字母前缀(TOrderStatus = (osPending, osCompleted, osCancelled))
  • 单元文件:PascalCase(UserService.pas、OrderForm.pas)
  • 控件命名:PascalCase + 类型后缀(edtUserName、btnSubmit、grdOrders)
  • 命名语义化,禁止拼音、无意义缩写

项目结构规范

  • 推荐目录结构:
    • src/:源代码
      • Forms/:窗体单元
      • DataModules/:数据模块
      • Business/:业务逻辑
      • Utils/:工具类
      • Interfaces/:接口定义
    • res/:资源文件
    • lib/:第三方库
    • tests/:测试

编码规范

  • 每个单元必须有 initialization / finalization 管理资源
  • 对象创建后必须释放(try...finally)
  • 使用接口引用计数管理对象生命周期
  • 字符串使用 string 类型(Unicode)
  • 集合使用泛型容器(TList<T>、TDictionary<TKey, TValue>)
  • 禁止使用 with 语句
  • 事件处理方法命名:{控件名}{事件名}(btnSubmitClick)

数据库访问规范

  • 使用 FireDAC 访问数据库
  • 连接配置统一管理
  • 参数化查询,禁止字符串拼接 SQL
  • 使用事务处理数据一致性
  • 数据集使用后必须关闭和释放
  • 大数据量使用分页查询

注释规范

  • 每个单元顶部必须有中文注释说明用途
  • 每个类必须有中文注释说明职责
  • 所有 public 方法必须有中文注释
  • 复杂逻辑必须添加中文行内注释
  • TODO 注释格式:// TODO(作者): 具体待办事项描述
  • 禁止无意义注释

格式规范

  • 统一使用 2 空格缩进
  • 单行代码长度不超过 100 字符
  • 函数体长度不超过 80 行
  • 函数参数不超过 5 个,超过使用 record 封装
  • 类成员排列顺序:字段 → 属性 → 构造/析构 → 公有方法 → 私有方法
  • begin 独占一行

代码质量强制要求

  • 对象必须释放,使用 try...finally 或接口引用计数
  • 禁止魔法值:常量必须定义为命名常量
  • 数据库操作必须关闭连接和数据集
  • 禁止内存泄漏:使用 FastMM 检测
  • 字符串资源统一管理,禁止硬编码
  • 禁止使用 Goto 语句

测试规范

  • 使用 DUnitX 进行单元测试
  • 测试类命名:T{被测类}Test
  • 测试方法命名:Test_{方法名}_{场景}
  • 使用 Mock 框架(Delphi Mocks)

最佳实践

  • 使用接口实现依赖注入
  • 使用泛型提高类型安全
  • 使用 RTTI 实现反射功能
  • 使用 ActionList 统一管理操作
  • 使用 Frame 复用 UI 组件
  • 使用 TFrameStand / TFormStand 管理 FMX 样式

Frequently asked questions

What does the Delphi AI skill do?

Delphi开发专家助手。当用户需要进行Delphi桌面应用开发、Object Pascal编程、VCL/FMX框架、数据库应用或Windows应用开发时调用。

Why use Delphi on TypingMind?

Because you install it once and use it with any model. Delphi 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 Delphi in TypingMind?

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

Which AI models can use Delphi?

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 Delphi?

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

Is the Delphi 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 👇