Agent skill

Entity Mapping

by academiadocodigo in academiadocodigo/SimpleORM

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

MITAuto-check passedDatabases

Install Entity Mapping

skills CLI
$ npx skills add academiadocodigo/SimpleORM --skill entity-mapping -a claude-code

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

GitHub CLI
$ gh skill install academiadocodigo/SimpleORM entity-mapping --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/entity-mapping .claude/skills/entity-mapping && 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
entity-mapping
GitHub stars
157
Token cost
~816 tokens
SKILL.md length
183 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

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

  • Databases work in your project
  • SKILL.md covers Entity Template, All Available Attributes…, Supported Property Types and Relationship Setup Examples, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Entity Mapping is an agent skill from academiadocodigo/SimpleORM. SimpleORM entity-to-database mapping via RTTI attributes. Complete reference for all attributes, property types, and relationship setup.

Its SKILL.md is about 820 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

  • “/entity-mapping”

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

Entity Mapping loads about 816 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 183 words of instructions outside code blocks.

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

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). 183 words, ~816 tokens.

Download SKILL.mdSave it as .claude/skills/entity-mapping/SKILL.md (or your agent's skills folder).
name
entity-mapping
description
SimpleORM entity-to-database mapping via RTTI attributes. Complete reference for all attributes, property types, and relationship setup.
user-invocable
false

Entity Mapping in SimpleORM

Rules are in .claude/rules/entity-mapping.md — this skill provides reference and templates.

Entity Template

pascal
[Tabela('TABLE_NAME')]
TMyEntity = class
private
  FId: Integer;
  FName: String;
  procedure SetId(const Value: Integer);
  procedure SetName(const Value: String);
public
  constructor Create;
  destructor Destroy; override;
published
  [Campo('ID'), PK, AutoInc]
  property Id: Integer read FId write SetId;
  [Campo('NAME'), NotNull]
  property Name: String read FName write SetName;
end;

All Available Attributes (SimpleAttributes.pas)

Table & Column
AttributeTargetPurpose
Tabela('NAME')classMaps to database table
Campo('NAME')propertyMaps to column name
Keys
AttributePurpose
PKPrimary key (exactly one)
FKForeign key
AutoIncAuto-increment (excluded from INSERT)
Constraints & Validation
AttributePurpose
NotNullRequired field
NotZeroNumeric cannot be zero
IgnoreSkip in all SQL operations
EmailValidates email format
MinValue(n)Minimum numeric value
MaxValue(n)Maximum numeric value
Regex('pattern', 'msg')Custom regex validation
Format(maxSize, precision)Size/precision constraints
Display & Binding
AttributePurpose
Display('Label')Display name for grids/forms
Bind('FIELD')Binds form component
NumberOnlyNumeric-only input
Relationships
AttributeCardinalityLoading
HasOne('Entity', 'FK')1:1Eager
BelongsTo('Entity', 'FK')N:1Eager
HasMany('Entity', 'FK')1:NLazy (TSimpleLazyLoader)
BelongsToMany('Entity', 'FK')M:NManual
Special
AttributePurpose
SoftDelete('FIELD')On class — logical deletion
Enumerator('TYPE')PostgreSQL enum cast

Supported Property Types

Delphi TypeJSON SerializationDB Param Type
StringstringftString
IntegernumberftInteger
Int64numberftLargeint
DoublenumberftFloat
TDateTimeISO8601 stringftDateTime
Booleantrue/falseftBoolean

Relationship Setup Examples

HasOne/BelongsTo — eager loaded by DAO:

pascal
[HasOne('PEDIDO', 'ID_PEDIDO')]
property Pedido: TPedido read FPedido write SetPedido;

HasMany — lazy loaded:

pascal
uses SimpleProxy;
FItens := TSimpleLazyLoader<TItemPedido>.Create(Query, 'ID_PEDIDO', Self.Id);

RTTI Flow

Entity class → TSimpleRTTI<T> extracts:
  .TableName → reads [Tabela] attribute
  .Fields → iterates published properties with [Campo]
  .PrimaryKey → finds property with [PK]
  .Where → builds PK = :PK condition
  .FieldsInsert → Fields minus [AutoInc]
  .SoftDeleteField → reads [SoftDelete] from class

© 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/entity-mapping of academiadocodigo/SimpleORM.

Open the folder on GitHubat commit 6227399

Compare with similar skills

Entity Mapping 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.

Entity Mapping compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Entity Mapping this skillacademiadocodigo/SimpleORM157—~816Automated 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 Patterns

    academiadocodigo/SimpleORM

    Coding conventions and patterns for the SimpleORM Delphi project.

    157 GitHub stars~560 tokensUpdated 2 mo ago
    Auto-check passed
  • 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
  • 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 Entity Mapping

What does Entity Mapping do?

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

When should I use Entity Mapping?

Entity Mapping fits situations like: databases work in your project.

How do I install Entity Mapping in Claude Code?

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

How do I install Entity Mapping in Codex?

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

Can I use Entity Mapping 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 entity-mapping -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/entity-mapping, .gemini/skills/entity-mapping, .github/skills/entity-mapping and .opencode/skills/entity-mapping in your project.

What does Entity Mapping need to run?

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

Does Entity Mapping 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 Entity Mapping 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 Entity Mapping use?

Entity Mapping 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 Entity Mapping use?

About 816 tokens (SKILL.md is roughly 3.3k 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 Entity Mapping?

Skills that share tags, products or a category with Entity Mapping: 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 Entity Mapping?

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.