Repository navigation
FOUR-34496 Skeleton improvement and coding agent setup - #31
Merged
Merged
Conversation
…ME.md, and setup/requirements.php
…de support and additional exclusions in phpcs.xml
5 of 9 tasks
devmiguelangel
force-pushed
the
FOUR-34496
branch
from
November 23, 2026 14:36
5221e78 to
762caee
Compare
…OKEN with API token
caleeli
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the skeleton usable by a coding agent, non-interactively (
PM_*environment variables), and fixes the problems found while doing it.composer.json/package.jsondeclare PHP >= 8.4, the needed extensions and Node >= 22 (.nvmrc= 24). Newsetup/requirements.phpandcomposer 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 withPM_SKIP_NODE_PATCH_CHECK=1) warns when a newer patch of the installed Node line exists.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.jsonandopencode.json, prints the Codex commands, supportsPM_BASE_URL(aliasNAYRA_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 asstorage/plugins/{repoName}).phpcs.xmlexcludes.agents/,.claude/,setup/andrename-project.php. Their warnings (not plugin code) madecomposer csfail and blocked the first commit.composer doctor, and thatpublic/must be built and committed (core never runs npm).Related Tickets & Packages
FOUR-34496
#31
ProcessMaker/processmaker#9192
How to Test
composer doctorpasses. With Node 20 first onPATHit fails.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-pluginIt must not prompt, write the 4 MCP servers in the 4 config files, add the
originremote, and fail when the folder name differs from the repository name.npm install && npm run prod, then commit (the hook must pass) and push, then Install in Admin > Plugins.