一键导入
aica-developer
Guides and scripts for developing, testing, running E2E tests, linting, and using the CLI/utilities in the Liferay AI Commerce Accelerator monorepo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides and scripts for developing, testing, running E2E tests, linting, and using the CLI/utilities in the Liferay AI Commerce Accelerator monorepo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Activate this skill when writing or refactoring microservice and SDK javascript/typescript source files.
Activate this skill before opening pull requests, modifying production configurations, or executing deployment and destructive commands to ensure proper human-in-the-loop verification.
Activate this skill when beginning complex tasks, proposing architectural changes, or modifying codebase files to ensure proper planning and predictive failure analysis.
Activate this skill when making tool calls, interacting with the terminal, or invoking GitHub APIs to ensure strict ReAct patterns are followed.
Activate this skill when delegating tasks, defining subagents, or orchestrating parallel agentic workflows.
Activate this skill after implementing code changes to verify, review, and update markdown documentation and timestamps.
| name | aica-developer |
| description | Guides and scripts for developing, testing, running E2E tests, linting, and using the CLI/utilities in the Liferay AI Commerce Accelerator monorepo. |
This skill guides you through the standards, commands, and scripts required to develop, verify, configure, and seed datasets in the Liferay AI Commerce Accelerator (AICA) repository.
Yarn Monorepo Authority: Yarn is the authoritative package manager for this workspace. NEVER commit a package-lock.json file to the repository.
Node.js Target Version: The project is pinned to Node.js v22.22.2 via build.gradle (nodeVersion). If you encounter environment-level node conflicts or ES module loading errors, clear the Gradle node cache:
rm -rf .gradle/node
Always execute these scripts from the repository root:
aica)The CLI client is a zero-dependency entrypoint (aica-cli.cjs) used for seeding, deleting, exporting, and importing configurations.
Handshake Connection:
node scripts/aica-cli.cjs connect
Seed AI/Demo Dataset:
# Generate in demo mode (fast, utilizes static presets)
node scripts/aica-cli.cjs generate --demo --products 10 --accounts 5 --orders 2
# Generate in live AI mode
node scripts/aica-cli.cjs generate --products 15 --accounts 5 --bulk-pricing
Delete Seeded Data:
node scripts/aica-cli.cjs delete --all
Export/Import Datasets:
# Export session data to a JSON package
node scripts/aica-cli.cjs export <sessionId> output.json
# Import and re-scaffold a dataset from a config JSON
node scripts/aica-cli.cjs import resources/sample-import.json
run-e2e-ldm.sh)This script (run-e2e-ldm.sh) handles initializing LDM, starting Liferay DXP, deploying client extensions, and booting the microservice.
Non-Interactive Mandate: When running this script programmatically, you MUST pass the --ci flag to bypass interactive developer prompts:
bash scripts/run-e2e-ldm.sh -v -k --ci
package-ldmp.sh)Packs the current Liferay Workspace database and assets into a portable snapshot .ldmp package:
bash scripts/package-ldmp.sh
preflight.mjs)Verifies that all required local environment ports are free and checks the health/availability of Liferay's REST APIs:
node scripts/preflight.mjs
detect-secrets.mjs)Executes locally in Huskies' pre-commit hooks to prevent leaking sensitive API keys (OpenAI, Google Gemini, Anthropic, etc.).
// pragma: allowlist secret at the end of the line, or add the substring / file glob pattern to .gitleaksignore.npm run test inside client-extensions/liferay-accelerator-sdk.npm run test inside client-extensions/ai-commerce-accelerator-microservice.yarn smoke (or npx playwright test --config playwright/playwright.config.js).yarn verification.yarn lint at root.yarn lint:cx (runs validate-cx.js to check schema alignment with client-extension.yaml).yarn lint:md.