apache/ofbiz-plugins/create-component

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Scaffold a new OFBiz component (plugin) using Gradle. Use when starting a new feature set or isolating custom code.

Install

npx vskill@latest install apache/ofbiz-plugins/create-component

SKILL.md

Skill: create-component

Goal

Create a new, isolated OFBiz component with the correct directory structure and configuration.

Triggers

ALWAYS read this skill when:

  • Creating a new plugin or component.
  • Isolating a large feature set into a separate module.
  • Understanding plugin discovery vs. manual registration.

Use when

  • Starting a brand new feature (e.g., my-custom-module).
  • Developing an integration that should not impact core components.

Procedure

  1. Gradle Command:
  • Run ./gradlew createPlugin -PpluginId=my-plugin-name.
  • Optional flags: -PwebappName=my-app, -PbasePermission=MY_PERM.
  1. Base Structure:
  • Ensure the following folders are present: src, webapp, entitydef, servicedef, data, widget.
  1. Initial Configuration:
  • Update ofbiz-component.xml with proper titles and descriptions.
  • Add basic security permissions in data/[Component]SecurityData.xml.
  1. Registration (Automatic):
  • OFBiz automatically discovers any directory in plugins/ that contains an ofbiz-component.xml file.
  • NO command like ./gradlew loadAll is required for registration.
  • OFBiz must be restarted (or a container reload triggered) to detect new components.

Post-Scaffold Customization

  1. Directory Structure: Verify the existence of entitydef/, servicedef/, data/, and webapp/.
  2. Component XML: Update ofbiz-component.xml with actual resource locations.
  3. Web Application: If your component has a UI, ensure the <webapp> entry has a unique mount-point.
  4. Permissions: Define base permissions in data/MyComponentSecurityData.xml.

Guardrails

  • Naming: Use lowercase, kebab-case (e.g., order-management).
  • Location: All custom components MUST reside in the plugins/ directory.
  • Discovery: Plugins in plugins/ are auto-discovered. Do not try to manually register them in framework load files.
  • Independence: Ensure the new component doesn't break existing ones.
  • Best Practice: Immediately create a dedicated SecurityData.xml to avoid permission conflicts.
  • Cleanliness: Delete unused scaffolded files (e.g., placeholder entities) after creation.

Examples

Example: Creating a new inventory plugin

bash
./gradlew createPlugin -PpluginId=inventory-custom -PwebappName=inventoryApp
./gradlew loadAll

Then, verify the folder plugins/inventory-custom exists.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
176
Repository forks
222
7-day trend score
31

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/apache/ofbiz-plugins/create-component/badge)](https://verified-skill.com/skills/apache/ofbiz-plugins/create-component)

Something wrong with this skill or its page? Tell us.