Agent skill

Coding Patterns

by academiadocodigo in academiadocodigo/Router4Delphi

Router4D coding patterns and conventions. An agent skill from academiadocodigo/Router4Delphi.

MITAuto-check passed

Install Coding Patterns

skills CLI
$ npx skills add academiadocodigo/Router4Delphi --skill coding-patterns -a claude-code

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

GitHub CLI
$ gh skill install academiadocodigo/Router4Delphi coding-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/Router4Delphi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/coding-patterns .claude/skills/coding-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
coding-patterns
GitHub stars
120
Token cost
~529 tokens
SKILL.md length
92 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Router4D coding patterns and conventions. An agent skill from academiadocodigo/Router4Delphi.

  • Works in 3 steps: System units (System.SysUtils,… → FMX/VCL units (FMX.Forms, FMX.Types, etc.) → Project units (Router4D.Interfaces,…
  • SKILL.md covers Unit Template, Class Template, Naming Conventions and Error Handling, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Coding Patterns is an agent skill from academiadocodigo/Router4Delphi. Router4D coding patterns and conventions

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

The repository describes itself as: Framework para Criação de Rotas de Telas para FMX e VCL. The licence is MIT.

Example prompts

  • “/coding-patterns”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. System units (System.SysUtils, System.Classes, etc.)
  2. FMX/VCL units (FMX.Forms, FMX.Types, etc.)
  3. Project units (Router4D.Interfaces, Router4D.History, etc.)

What it can do on your machine

Read from SKILL.md and the folder at commit bcac41c. 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

Coding Patterns loads about 529 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 92 words of instructions outside code blocks.

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

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/Router4Delphi at commit bcac41c, republished under its MIT licence (© academiadocodigo). 92 words, ~529 tokens.

Download SKILL.mdSave it as .claude/skills/coding-patterns/SKILL.md (or your agent's skills folder).
name
coding-patterns
description
Router4D coding patterns and conventions

Router4D Coding Patterns

Unit Template

pascal
unit Router4D.<Module>;

{$I Router4D.inc}

interface

uses
  System.SysUtils, System.Classes,
  {$IFDEF HAS_FMX}
  FMX.Forms,
  {$ELSE}
  Vcl.Forms,
  {$ENDIF}
  Router4D.Interfaces;

type
  iRouter4D<Name> = interface
    ['{GUID}']
  end;

  TRouter4D<Name> = class(TInterfacedObject, iRouter4D<Name>)
  private
    FField: TObject;
  public
    constructor Create;
    destructor Destroy; override;
    class function New: iRouter4D<Name>;
  end;

implementation

{ TRouter4D<Name> }

constructor TRouter4D<Name>.Create;
begin
end;

destructor TRouter4D<Name>.Destroy;
begin
  inherited;
end;

class function TRouter4D<Name>.New: iRouter4D<Name>;
begin
  Result := Self.Create;
end;

end.

Class Template

  • Inherit from TInterfacedObject and implement the corresponding interface.
  • Private fields use the F prefix.
  • Provide a class function New: iRouter4D<Name>; factory method.

Naming Conventions

ElementConventionExample
FileRouter4D.<Module>.pasRouter4D.History.pas
ClassTRouter4D<Name>TRouter4DHistory
InterfaceiRouter4D<Name>iRouter4DHistory
Function/MethodPascalCaseGetMainRouter
Parametersa prefixaForm, aKey
FieldsF prefixFMainRouter, FHistory
ConstantsALL_CAPSMAX_FRAME_COUNT

Error Handling

Use try/finally for resource cleanup. Re-raise after cleanup when needed.

pascal
LObj := TObject.Create;
try
  // work
finally
  LObj.Free;
end;

Uses Clause Order

  1. System units (System.SysUtils, System.Classes, etc.)
  2. FMX/VCL units (FMX.Forms, FMX.Types, etc.)
  3. Project units (Router4D.Interfaces, Router4D.History, etc.)

© 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/coding-patterns of academiadocodigo/Router4Delphi.

Open the folder on GitHubat commit bcac41c

Compare with similar skills

Coding 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.

Coding Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Coding Patterns this skillacademiadocodigo/Router4Delphi120—~529Automated safety check: PassMIT
Conventionschampionswimmer/onepixel_backend186—~398Automated safety check: PassNone
Conventionsxiaolai/nlpm146—~3.6kAutomated safety check: PassISC
Ecc Conventionsaffaan-m/ECC275k—~2.8kAutomated safety check: PassMIT
Naming Conventionsthedaviddias/Front-End-Checklist74k—~481Automated safety check: PassMIT
Conventional CommitJanDeDobbeleer/oh-my-posh24k—~1.2kAutomated safety check: NotesMIT

Similar skills

  • Conventions

    championswimmer/onepixel_backend

    Apply onepixel repository conventions for env loading, DB backend selection, auth locals, error payloads, and shortcode semantics.

    186 GitHub stars~398 tokensUpdated 6 mo ago
    Auto-check passed
  • Conventions

    xiaolai/nlpm

    Universal NL conventions: SKILL.md open spec, AGENTS.md, vague quantifiers, naming.

    146 GitHub stars~3.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Ecc Conventions

    affaan-m/ECC

    Development conventions and patterns for ECC. An agent skill from affaan-m/ECC.

    275k GitHub stars~2.8k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Naming Conventions

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.

    74k GitHub stars~481 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Conventional Commit

    JanDeDobbeleer/oh-my-posh

    Workflow for generating conventional commit messages following the Conventional Commits specification.

    24k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check: notes
  • Backend Conventions

    getsentry/sentry

    Official

    Sentry backend conventions for logging, tracing/spans, span/tag attribute naming, metrics tags, and the options system.

    46k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

More from academiadocodigo/Router4Delphi

  • Memory Safety

    academiadocodigo/Router4Delphi

    Delphi memory and resource management patterns. An agent skill from academiadocodigo/Router4Delphi.

    120 GitHub stars~405 tokensUpdated 7 mo ago
    Auto-check passed
  • Changelog Format

    academiadocodigo/Router4Delphi

    CHANGELOG format reference

    120 GitHub stars~190 tokensUpdated 7 mo ago
    Auto-check passed

Questions about Coding Patterns

What does Coding Patterns do?

Router4D coding patterns and conventions. An agent skill from academiadocodigo/Router4Delphi. Coding Patterns is an agent skill from academiadocodigo/Router4Delphi.

How do I install Coding Patterns in Claude Code?

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

How do I install Coding Patterns in Codex?

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

Can I use Coding 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/Router4Delphi --skill coding-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/coding-patterns, .gemini/skills/coding-patterns, .github/skills/coding-patterns and .opencode/skills/coding-patterns in your project.

What does Coding Patterns need to run?

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

Does Coding 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 Coding 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 Coding Patterns use?

Coding 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 Coding Patterns use?

About 529 tokens (SKILL.md is roughly 2.1k 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 Coding Patterns?

Skills that share tags, products or a category with Coding Patterns: Conventions (championswimmer/onepixel_backend, 186 stars), Conventions (xiaolai/nlpm, 146 stars), Ecc Conventions (affaan-m/ECC, 275k stars) and Naming Conventions (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Coding Patterns?

academiadocodigo (a GitHub organization) maintains it in academiadocodigo/Router4Delphi, which has 120 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on March 8, 2026.

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