๐Ÿงน
QualityJava

Format Source

by liferay

Format Source is a Quality skill for Claude Code, published by liferay in liferay-portal.

2.3K stars3.8K forkson liferay/liferay-portalAdded 2026/07/20Repository updated 2026/08/03
Install in seconds
Install Format Source
Copy Format Source into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/liferay/liferay-portal/tree/master/.claude/skills/format-source ~/.claude/skills/format-source

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/liferay/liferay-portal.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/format-source/SKILL.md in liferay/liferay-portal
Installs to
~/.claude/skills/format-source
Collection
One of 16 skills cataloged from this repository
Category
Quality โ€” 1897 skills

What Format Source does

Automatically format Java, JavaScript, and other source files to comply with Liferay's coding standards using built-in formatters and manual rules.

Format Source is cataloged under Quality on DirSkills.

Documentation

README

Format Source

All the code is strictly formatted using the source formatter (Java, JavaScript, JSON, JSP, Markdown, properties, shell, XML, YAML, and others). This is how it works:

Run for a specific module:

cd <module-root> && <gradlew> formatSource

Run across the entire codebase:

cd <repo-root>/portal-impl && ant format-source-current-branch

ant format-source-current-branch only inspects committed files, so run it after creating the commit, and amend any formatter changes or fixes into that commit.

In both cases, if there are issues to be fixed, the formatter will list them. Fix them.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Format Source

  • What else does liferay publish alongside Format Source?

    Format Source is one of 16 skills that DirSkills catalogs from liferay/liferay-portal, the repository it ships in. Its siblings there include Create Pull Request, Format Source Add Rule and Jira Bug. Each one is a separate skill with its own page in this directory, installs the same way Format Source does, and is maintained by liferay in that same repository. The rest of the collection is listed on the liferay/liferay-portal page.

  • How does Format Source compare to other Quality skills?

    Format Source ranks #544 by stars among the 1897 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Format Source against them. Open each page to compare what they document and how they install.