Claude Code skill for adding a Delphi unit with Router4D conventions
Name new Router4Delphi units and interfaces consistently, select platform-specific form units, and provide a factory method.
中文Install in Claude Code
Use Claude Code in a Router4Delphi checkout with Delphi available. Check the src Router4D include file and the selected FMX or VCL build configuration.
- Review `.claude/skills/coding-patterns/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/coding-patterns/` in your project and save the reviewed file as `.claude/skills/coding-patterns/SKILL.md`.
- Start Claude Code from that project's root, then select `/coding-patterns` in the slash menu.
Example task
Add a trail-label unit as an exercise. Check that the unit, class, and interface names agree, then use the class factory from a caller.
`Router4D.TrailLabels.pas` · `TRouter4DTrailLabels` · `iRouter4DTrailLabels`What to check
`Router4D.TrailLabels.pas` declares `TRouter4DTrailLabels`; its `New` method returns `iRouter4DTrailLabels`. Check compilation in the target configuration.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I choose between FMX.Forms and Vcl.Forms?
Check the repository include file and the selected Delphi target. Use the existing conditional compilation convention to choose the forms unit.