๐Ÿ“
QualityJava

Format Source Add Rule

by liferay

Format Source Add Rule 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 Add Rule
Copy Format Source Add Rule 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-add-rule ~/.claude/skills/format-source-add-rule

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-add-rule/SKILL.md in liferay/liferay-portal
Installs to
~/.claude/skills/format-source-add-rule
Collection
One of 16 skills cataloged from this repository
Category
Quality โ€” 1897 skills

What Format Source Add Rule does

Encode a formatting convention spotted in a Git commit into a reusable rule for the format-source skill. Use this to systematically add formatting rules for Java, properties, XML, and more.

Format Source Add Rule is cataloged under Quality on DirSkills.

Documentation

README

Format Source: Add Rule

Add a new rule to the format-source skill, derived from a Git commit. Anyone can use this to encode a convention they spotted in someone's commit. Rules can apply to any file type the source formatter handles โ€” Java, .properties, XML, JSP, Markdown, Gradle, .gitignore, YAML, and so on. Do not bias toward Java.

Inputs

  • A Git commit SHA.

  • Optional: a hint about which aspect of the commit to encode. Commits often touch multiple things; a hint narrows the scope.

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

Commands Format Source Add Rule provides

Slash commands named in this skillโ€™s SKILL.md, listed in the order they first appear.

  • /format-source

Frequently asked about Format Source Add Rule

  • What else does liferay publish alongside Format Source Add Rule?

    Format Source Add Rule 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 and Jira Bug. Each one is a separate skill with its own page in this directory, installs the same way Format Source Add Rule 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 Add Rule compare to other Quality skills?

    Format Source Add Rule ranks #545 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 Add Rule against them. Open each page to compare what they document and how they install.