Liferay now ships AI guidance directly inside the developer workspace. When you initialize a new project with Blade, it includes a structured set of rules and skills that teach AI coding agents how modern Liferay projects are built. This Liferay Workspace AI pack works with Claude Code, GitHub Copilot, Cursor, and other compatible agents, while Claude Code users also receive an official Liferay plugin.
To evaluate how well it works in practice, we opened every file in the pack, verified the details against Liferay's official documentation, and tested it on a real feature build. Below, we break down what ships inside the workspace, how to configure it for both new and existing projects, how each AI coding agent picks up the rules, and what engineering leaders should look for before AI-written code reaches production.
What Ships in a Liferay Workspace for AI
A new workspace includes a hidden .agents folder. This is the main set of rules and skills, and any agent can read it. Claude Code gets its own copy in .claude. (Liferay Learn)
| Path | What it is | What we found inside |
| .agents/liferay-rules.md | Entry point that every agent reads first | Tells the agent to check the workspace root, the DXP version and the server state before doing anything. It also holds a “Skill Router” table that maps tasks to skills. |
| .agents/rules/ | Reference cards with lookup data | 8 cards: client extension types, feature flags, guest access, headless APIs, OAuth scopes, Object actions, page types and the site initializer format |
| .agents/skills/ | One SKILL.md per task, loaded only when needed | 27 skills, from manage-objects and scaffold-fragment to theme-and-design, manage-cloud-project and author-skill |
| .claude/ | Copy of the tree for Claude Code | Entry point is CLAUDE.md, which mirrors liferay-rules.md |
| Claude Code plugin | Separate install from liferay/liferay-workspace-skills | Slash commands for local setup, health checks, clean-up, feature flags and the MCP server |
Counts are from the liferay-sample-workspace folder in the liferay-portal repository on 30 Nov 2026. Liferay updates the pack often, so your numbers may differ.
The rules push agents toward modern Liferay practice. Agents are told to build with Objects, fragments, and client extensions, to read Liferay Learn instead of relying on training data, and to give the exact blade build and deploy commands. Whether you are building standalone modules or planning complex Liferay integration workflows with external systems, this structure keeps agent output aligned with official platform patterns. (Liferay Learn)
Two rules in the entry file stood out in our review:
- Load the skill before writing code. A “Preflight Rule” makes the agent load the right skill before it writes an Object, fragment, page, theme or client extension. The file warns that many of these mistakes are silent: the build passes and the bug shows up later.
- Ship through client extensions, not the live portal. Pages, Objects, fragments, roles and permissions go into a site initializer or a client extension that can be reviewed and deployed again. Changes made by REST, MCP or the UI are only for checking results or test data.
Looking to Pair Liferay Workspace AI Tools with Senior Oversight?
Hire Liferay developers to keep your code clean and production-ready.
How to Set Up Liferay Workspace AI
New Workspace
- Check that you have Blade 8.0.2 or later with blade version. Run blade update if needed.
- Run blade init ai-workspace and enter your Liferay version when asked. Blade runs the updateWorkspace task, which downloads the latest rules and skills.
- Run cd ai-workspace, then ls .agents and check that liferay-rules.md is there.
Existing Workspace
- Make sure the workspace Gradle plugin (com.liferay.gradle.plugins.workspace in settings.gradle) is 17.1.4 or later.
- Back up any rule files you changed. updateWorkspace overwrites bundled files, including .agents/liferay-rules.md and .claude/CLAUDE.md.
- Move custom rules into .agents, then remove Liferay’s old rule folders such as .cursor, .gemini, .windsurf, .workspace-rules and Liferay’s files in .github.
- Run blade gw updateWorkspace. Liferay does not announce new rules, so run it again from time to time.
Source for both: Liferay Learn.
Watch out: the workspace-init skill writes local-only settings. They turn on basic auth for the headless APIs and skip the setup wizard and password change for [email protected]. Never carry them to a shared or production environment.
Claude Code Plugin
The plugin is installed in Claude Code, not in the workspace:
/plugin marketplace add liferay/liferay-workspace-skills
/plugin install liferay-workspace@liferay-workspace-plugins
Choose user scope to use it in every workspace. Commands start with /liferay-workspace:. Liferay Learn lists setup, doctor, clean, feature-flags and mcp-server.
What we found in the plugin repository (version 0.1.1, MIT licence):
- It also has core, for searching the Liferay portal source, and pr-review, which checks pull requests against Liferay’s own commit and Jira conventions.
- The setup wizard is built for DXP. It looks for a DXP activation key in ~/.liferay/activation and stops with an error if it finds none.
- It needs JDK 17 to 23 and Docker. jq is also required, and Apache Ant is needed for source mode.
How Claude Code, Copilot, Codex and Cursor Use It

All three agents can use the same skills, but they find the rules in different ways.
| Agent | How it picks up Liferay’s pack | Extra Liferay support | Tip |
| Claude Code | Reads .claude/CLAUDE.md and its copy of the skills | Official plugin with setup, health and MCP commands | Best experience today |
| GitHub Copilot (VS Code agent mode) | Loads project skills from .agents/skills | None from Liferay | Start prompts with “Follow .agents/liferay-rules.md” |
| Cursor | Loads project skills from .agents/skills | None from Liferay | Same tip as Copilot |
Liferay Learn names Claude, Copilot, Gemini, Cursor and Windsurf, but gives setup steps only for Claude Code. If an agent does not find the rules, Liferay’s advice is to point it to .agents in your prompt.
What We Liked
- It knows Liferay’s current way of building. Objects, fragments, client extensions and site initializers come first, which leads to cleaner, upgrade-friendly projects.
- It is honest about versions. Skills mark which release a behaviour was checked on, so the agent can compare that with your workspace version.
- Safety is built in. The rules ask before restarting a server, block security shortcuts in the production-standards skill, and keep the deliverable in version control.
- It works across agents. Skills follow the open Agent Skills format in .agents/skills, which Cursor and VS Code Copilot both load at project level.
- Teams can add their own knowledge. The author-skill skill writes new skills from your code, a spec or an interview, and publishes only after you approve.
What to Watch Out For
- Beta quality. Output changes from run to run and from model to model. Every result needs checking.
- Little help for older versions. The entry file says versions below 7.4 use legacy OSGi modules, while most skills cover the modern path. Teams on 7.2 or 7.3 get less value.
- Claude Code gets the best support. It has its own .claude copy and the plugin. Liferay Learn gives no setup steps for Copilot, Cursor, Gemini or Windsurf. If they miss the rules, you point them to .agents in your prompt.
- Updates overwrite bundled files. updateWorkspace replaces Liferay’s files and removes Skill Router rows for your own skills, so keep custom work separate.
- The plugin is young. At version 0.1.1, its setup wizard expects a DXP licence, and pr-review follows Liferay’s internal commit rules.
What This Means for CTOs Choosing a Liferay Partner
AI tools now make Liferay work faster, but speed without review creates risk. When you compare partners, ask these questions:
| Question to ask | A good answer sounds like |
| Do you use Liferay’s official Workspace rules and skills? | “Yes, kept up to date, with our own skills kept separate.” |
| Who reviews AI-written code? | “A named Liferay developer reviews every pull request.” |
| Where do changes live? | “In the workspace and Git, delivered through client extensions, not edited on the live portal.” |
| Does our data go into AI prompts? | “No. Agents work on local or test copies only.” |
| What happens when the AI gets it wrong? | “Our Liferay experts fix it, and we turn the fix into a skill so it doesn’t happen again.” |
How Surekha Technologies Uses AI in Liferay Projects
As an official Liferay partner, Surekha Technologies uses AI coding assistants such as Claude, GitHub Copilot and Codex for portlet development, code review, test automation and documentation. We pair them with the review guardrails above, so you get faster delivery without lower quality.
- AI-accelerated development: Our Liferay development services use Workspace rules and skills on modern DXP projects.
- Custom skills for your project: We capture your Objects, APIs and coding standards as skills, so every agent follows your rules.
- Team enablement: Help your developers set up Claude Code, Copilot or Cursor with Liferay Workspace, safely.
Want to see AI and headless Liferay in action? Read our guide on building enterprise PoCs faster with Liferay AI and headless capabilities.
Conclusion
Liferay Workspace’s AI tools give coding agents real Liferay knowledge: the right project structure, modern building blocks and built-in safety rules. Claude Code gets the smoothest experience, and Copilot and Cursor can use the same skills. The tools speed up routine work, but they are still beta, so the value comes from pairing them with experienced Liferay developers and a clear review process.
Frequently Asked Questions
Does Liferay support AI coding tools?
Yes. New Liferay Workspaces include rules and skills for AI coding agents, and Liferay publishes a Claude Code plugin. Liferay marks the developer skills as beta, so review all output.
Which agents work with Liferay Workspace?
Liferay Learn names Claude, Copilot, Gemini, Cursor and Windsurf. Claude Code has dedicated support. Other agents read the shared .agents folder, and you may need to point them to it in your prompt.
Can I write my own Liferay skills?
Yes. The author-skill skill drafts a new skill from your code, a spec or an interview. It saves the skill to .agents/skills/[name]/SKILL.md only after you approve it.
Does it work with Liferay 7.2 or 7.3?
Only partly. The rules say versions below 7.4 use legacy OSGi modules, and most skills target 7.4 and quarterly releases.
Is AI-generated Liferay code ready for production?
Not without review. Treat it like code from a new team member: check it, test it as a real user and deploy it through version control.