Agent skill

Delphi Patterns

by academiadocodigo in academiadocodigo/SimpleORM

Coding conventions and patterns for the SimpleORM Delphi project.

MITAuto-check passedDatabases

Install Delphi Patterns

skills CLI
$ npx skills add academiadocodigo/SimpleORM --skill delphi-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install academiadocodigo/SimpleORM delphi-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/academiadocodigo/SimpleORM.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/delphi-patterns .claude/skills/delphi-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
delphi-patterns
GitHub stars
157
Token cost
~560 tokens
SKILL.md length
85 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Coding conventions and patterns for the SimpleORM Delphi project.

  • Databases work in your project
  • SKILL.md covers Class Structure Template, Naming Reference, Conditional Compilation Patterns and Uses Clause Organization, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Delphi Patterns is an agent skill from academiadocodigo/SimpleORM. Coding conventions and patterns for the SimpleORM Delphi project. Automatically loaded when writing or modifying Delphi code.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases. The repository describes itself as: ORM Simples para Aplicações Delphi. The licence is MIT.

When your agent uses it

  • Databases work in your project

Example prompts

  • “/delphi-patterns”

What it can do on your machine

Read from SKILL.md and the folder at commit 6227399. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are pascal).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Delphi Patterns loads about 560 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 85 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~560

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from academiadocodigo/SimpleORM at commit 6227399, republished under its MIT licence (© academiadocodigo). 85 words, ~560 tokens.

Download SKILL.mdSave it as .claude/skills/delphi-patterns/SKILL.md (or your agent's skills folder).
name
delphi-patterns
description
Coding conventions and patterns for the SimpleORM Delphi project. Automatically loaded when writing or modifying Delphi code.
user-invocable
false

SimpleORM Delphi Patterns

Rules are in .claude/rules/ — this skill provides patterns and templates, not rules.

Class Structure Template

pascal
TSimpleXxx = class(TInterfacedObject, iSimpleXxx)
private
  FField: Type;
public
  constructor Create(aParam: Type);
  destructor Destroy; override;
  class function New(aParam: Type): iSimpleXxx;
end;

Naming Reference

ElementConventionExample
UnitSimpleXxx.pasSimpleDAO.pas
ClassTSimpleXxxTSimpleDAO
InterfaceiSimpleXxx (lowercase i)iSimpleQuery
ExceptionESimpleXxxESimpleValidator
FieldF prefixFQuery, FParams
Parametera prefixaValue, aSQL
Local varL prefix (new code)LResult

Conditional Compilation Patterns

pascal
{$IFNDEF CONSOLE}    // UI code (forms, bindings)
{$IFDEF FMX}         // FireMonkey specific
{$IFDEF VCL}         // VCL specific
{$IF RTLVERSION > 31.0}  // Newer Delphi features

Uses Clause Organization

pascal
interface
uses
  // 1. SimpleORM units
  SimpleInterface, SimpleTypes,
  // 2. System units
  System.SysUtils, System.Classes, System.Generics.Collections,
  // 3. Data units
  Data.DB,
  // 4. Conditional UI units
  {$IFNDEF CONSOLE}
    {$IFDEF FMX} FMX.Forms, {$ELSE} Vcl.Forms, {$ENDIF}
  {$ENDIF}
  // 5. Driver-specific units last
  FireDAC.Comp.Client;

Error Handling Template

pascal
try
  FQuery.ExecSQL;
except
  on E: Exception do
  begin
    if FTransaction.Active then
      FTransaction.Rollback;
    raise;
  end;
end;

Destructor Template

pascal
destructor TSimpleXxx.Destroy;
begin
  FreeAndNil(FOwnedObject1);
  FreeAndNil(FOwnedObject2);
  // Interface fields: do NOT free (auto-managed)
  inherited;
end;

RTTI Helper Methods

Use helpers from SimpleRTTIHelper.pas:

  • Portuguese (legacy): EhChavePrimaria, EhChaveEstrangeira, EhCampo, Tem<T>
  • English (new): IsNotNull, IsIgnore, IsAutoInc, IsHasOne, HasFormat

© academiadocodigo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/delphi-patterns of academiadocodigo/SimpleORM.

Open the folder on GitHubat commit 6227399

Compare with similar skills

Delphi Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Delphi Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Delphi Patterns this skillacademiadocodigo/SimpleORM157—~560Automated safety check: PassMIT
Keeper Stress AnalysisClickHouse/ClickHouse50k—~4.7kAutomated safety check: PassApache-2.0
Perf ComparisonClickHouse/ClickHouse50k—~3.9kAutomated safety check: NotesApache-2.0
Patch Release CheckClickHouse/ClickHouse50k—~4kAutomated safety check: NotesApache-2.0
Evolving The Data ModelTriliumNext/Trilium38k—~2.1kAutomated safety check: PassAGPL-3.0
Hybrid Cloud Outboxesgetsentry/sentry46k—~4.8kAutomated safety check: PassCustom licence

Similar skills

  • Keeper Stress Analysis

    ClickHouse/ClickHouse

    Analyze ClickHouse Keeper stress-test results from play.clickhouse.com / keeperstresstests data warehouse.

    50k GitHub stars~4.7k tokensUpdated today
    DatabasesAuto-check passed
  • Perf Comparison

    ClickHouse/ClickHouse

    Evaluate ClickHouse performance test results from existing CI/dashboard data or local perf.py runs.

    50k GitHub stars~3.9k tokensUpdated today
    DatabasesAuto-check: notes
  • Patch Release Check

    ClickHouse/ClickHouse

    Check whether ClickHouse's supported versions (last 3 majors + latest LTS) have recent stable patch releases, diagnose why the scheduled AutoReleases pipeline failed, and identify which releases…

    50k GitHub stars~4k tokensUpdated today
    DatabasesAuto-check: notes
  • Evolving The Data Model

    TriliumNext/Trilium

    A skill your agent uses when adding a DB migration or a new column/field to a Becca entity in Trilium ("add a migration", "new column on notes/attributes", "ALTER TABLE", "add a field to…

    38k GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    46k GitHub stars~4.8k tokensUpdated today
    DatabasesAuto-check passed
  • Adaptive Spin Wait

    microsoft/garnet

    Official

    Selects Garnet spin-wait policies based on the slow-path cost.

    12k GitHub stars~1k tokensUpdated today
    DatabasesAuto-check passed

More from academiadocodigo/SimpleORM

All 9 skills in this repo
  • Delphi Project Structure

    academiadocodigo/SimpleORM

    Delphi project file structure reference — .dpr vs .pas, .dproj, .res, .dfm.

    157 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Delphi Validator

    academiadocodigo/SimpleORM

    Validates all SimpleORM Delphi source files for Delphi 10.2 Tokyo+ compatibility.

    157 GitHub stars~828 tokensUpdated 2 mo ago
    Auto-check passed
  • Entity Mapping

    academiadocodigo/SimpleORM

    SimpleORM entity-to-database mapping via RTTI attributes. An agent skill from academiadocodigo/SimpleORM.

    157 GitHub stars~816 tokensUpdated 2 mo ago
    Auto-check passed
  • Horse Integration

    academiadocodigo/SimpleORM

    Horse/ExpxHorse integration patterns for SimpleORM — server auto-routing, client REST driver, serialization examples.

    157 GitHub stars~759 tokensUpdated 2 mo ago
    Auto-check passed
  • Isimplequery Contract

    academiadocodigo/SimpleORM

    The exact iSimpleQuery interface contract that all query drivers must implement.

    157 GitHub stars~670 tokensUpdated 2 mo ago
    Auto-check passed
  • Memory Safety

    academiadocodigo/SimpleORM

    Delphi memory management patterns for SimpleORM - ownership, try/finally, interface refs, and common leak scenarios.

    157 GitHub stars~531 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Delphi Patterns

What does Delphi Patterns do?

Coding conventions and patterns for the SimpleORM Delphi project. Delphi Patterns is an agent skill from academiadocodigo/SimpleORM. Coding conventions and patterns for the SimpleORM Delphi project.

When should I use Delphi Patterns?

Delphi Patterns fits situations like: databases work in your project.

How do I install Delphi Patterns in Claude Code?

Run `npx skills add academiadocodigo/SimpleORM --skill delphi-patterns -a claude-code`. Or copy the skill folder (.claude/skills/delphi-patterns in academiadocodigo/SimpleORM) into .claude/skills/delphi-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Delphi Patterns in Codex?

Run `npx skills add academiadocodigo/SimpleORM --skill delphi-patterns -a codex`. Or copy the skill folder (.claude/skills/delphi-patterns in academiadocodigo/SimpleORM) into .agents/skills/delphi-patterns in your project. Codex loads it when a task matches its description.

Can I use Delphi Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add academiadocodigo/SimpleORM --skill delphi-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/delphi-patterns, .gemini/skills/delphi-patterns, .github/skills/delphi-patterns and .opencode/skills/delphi-patterns in your project.

What does Delphi Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Delphi Patterns is instructions for the agent only.

Does Delphi Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Delphi Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Delphi Patterns use?

Delphi Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Delphi Patterns use?

About 560 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Delphi Patterns?

Skills that share tags, products or a category with Delphi Patterns: Keeper Stress Analysis (ClickHouse/ClickHouse, 50k stars), Perf Comparison (ClickHouse/ClickHouse, 50k stars), Patch Release Check (ClickHouse/ClickHouse, 50k stars) and Evolving The Data Model (TriliumNext/Trilium, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Delphi Patterns?

academiadocodigo (a GitHub organization) maintains it in academiadocodigo/SimpleORM, which has 157 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 2, 2026.

Source: academiadocodigo/SimpleORM on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.