skills

4D Skills for AI Assistants

Skills for running and compiling 4D projects with AI coding assistants.

Available Skills

Skill Description Requirements
4d-add-dependency Add dependencies to a 4D project Python
4d-check-syntax Compile a 4D project to check for syntax errors tool4d
4d-clean-project Clean a 4D project by removing generated files and caches Python
4d-create-project Create a new 4D project from scratch -
4d-doc-lookup Look up 4D documentation for commands, classes, or language concepts Python
4d-find-command Find 4D commands by keyword tool4d, Python
4d-form-screenshot Capture a PNG screenshot for a specific 4D form tool4d or 4D runtime
4d-project-info Analyze a 4D project and produce a structured summary Python
4d-publish-github Publish a 4D project to GitHub with CI/CD workflows Python
4d-publish-gitlab Publish a 4D project to GitLab (gitlab.com or self-hosted) Python
4d-run Run a 4D method with tool4d or a user-provided 4D runtime path tool4d or 4D runtime, Python
4d-validate-form Validate a .4DForm file against JSON schema Python

Installation

Using npx (Easiest)

One-command installation using the skills CLI (node must be installed).

npx skills add e-marchand/skills

Quick Install All

Run this command in your project directory:

curl -fsSL https://raw.githubusercontent.com/e-marchand/skills/main/install.sh | bash

Or specify a target directory:

curl -fsSL https://raw.githubusercontent.com/e-marchand/skills/main/install.sh | bash -s -- /path/to/your/project

Or install globally (available across all projects):

curl -fsSL https://raw.githubusercontent.com/e-marchand/skills/main/install.sh | bash -s -- --global

Or use symlink mode –symlink (copy to first folder, symlink the rest)

The installer will:

Manual Installation

Copy the skill folders to the appropriate location for your AI assistant:

Assistant Project Location Global Location
Claude Code .claude/skills/ Install from release
GitHub Copilot .github/skills/ ~/.github/skills/
Antigravity .agent/skills/ ~/.gemini/antigravity/global_skills/
Codex .codex/skills/ ~/.codex/skills/

Requirements

tool4d

Required by: 4d-check-syntax, 4d-find-command, 4d-form-screenshot. Also used by 4d-run when a dataless tool4d run is appropriate.

4D.app

Optional for: 4d-run and 4d-form-screenshot when the method needs a real database or runtime features not available in tool4d.

The skill can:

Option 1: Install via Extension (Recommended)

Install the 4D-Analyser extension in VS Code or Antigravity. The extension will automatically install tool4d.

Option 2: Set Environment Variable

If you have tool4d installed elsewhere, set the TOOL4D environment variable to point to the tool4d executable:

export TOOL4D="/path/to/tool4d.app/Contents/MacOS/tool4d"

Add this to your ~/.zshrc or ~/.bash_profile to make it permanent.

Other Requirements

What are Agent Skills?

See ABOUT_SKILLS.md for a detailed explanation of what Agent Skills are and how they work.

This project is maintained by a 4D employee for development tasks but is not an official 4D product. It is provided as-is without warranty. 4D is a trademark of 4D SAS.

Security Note: Always review skill content before installation. Skills contain prompts and scripts that will be executed by your AI assistant and system. Be cautious when installing skills from untrusted sources, as malicious prompts or code injection is possible.