Skip to content

FOUR-34496 Skeleton improvement and coding agent setup - #31

Merged
caleeli merged 9 commits into
feature/FOUR-34328from
FOUR-34496
Nov 23, 2026
Merged

caleeli merged 9 commits into
feature/FOUR-34328from
FOUR-34496

Conversation

@devmiguelangel

@devmiguelangel devmiguelangel commented Nov 23, 2026 •

Copy link
Copy Markdown

Summary

Makes the skeleton usable by a coding agent, non-interactively (PM_* environment variables), and fixes the problems found while doing it.

  • Requirements: composer.json / package.json declare PHP >= 8.4, the needed extensions and Node >= 22 (.nvmrc = 24). New setup/requirements.php and composer doctor; the wizard aborts early when Node/npx is missing. Node 20 is EOL, so it is rejected; an advisory (never failing, skipped offline or with PM_SKIP_NODE_PATCH_CHECK=1) warns when a newer patch of the installed Node line exists.
  • Wizard (rename-project.php): fixes the skill name (pm4-web-entry), configures the 4 MCP servers (processes, screens, data-connectors, flow-genies) in .mcp.json, .cursor/mcp.json, .vscode/mcp.json and opencode.json, prints the Codex commands, supports PM_BASE_URL (alias NAYRA_SERVER), PM_PLUGIN_REPO / PM_PLUGIN_BRANCH (git init + remote, and fails when the folder name differs from the repository name, because core installs the plugin as storage/plugins/{repoName}).
  • Commit hook: phpcs.xml excludes .agents/, .claude/, setup/ and rename-project.php. Their warnings (not plugin code) made composer cs fail and blocked the first commit.
  • Docs: README and AGENTS.md describe the Admin > Plugins git flow, every setting, composer doctor, and that public/ must be built and committed (core never runs npm).
Screenshot 2026-11-23 at 9 35 27 AM

Related Tickets & Packages

FOUR-34496
#31
ProcessMaker/processmaker#9192

How to Test

  1. composer doctor passes. With Node 20 first on PATH it fails.
  2. From a folder named like an empty repository:
    PM_SKILLS_PROFILE=pm4 PM_BASE_URL=https://pm4.test PM_PLUGIN_REPO=https://github.com/<you>/demo-plugin.git composer create-project --no-interaction --stability=dev processmaker/package-skeleton demo-plugin
    It must not prompt, write the 4 MCP servers in the 4 config files, add the origin remote, and fail when the folder name differs from the repository name.
  3. npm install && npm run prod, then commit (the hook must pass) and push, then Install in Admin > Plugins.

@caleeli
caleeli merged commit f76bf5f into feature/FOUR-34328 Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants