Agent skill

Codefmt

by Amplicode in Amplicode/spring-skills

Reformat source code in this project using its own code-style settings — through the IntelliJ IDE when it's running, otherwise via the project's own formatter (Spotless / google-java-format /…

No licenceAuto-check passedMobile

Install Codefmt

skills CLI
$ npx skills add Amplicode/spring-skills --skill codefmt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Amplicode/spring-skills codefmt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Amplicode/spring-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codefmt .claude/skills/codefmt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codefmt
GitHub stars
126
Token cost
~595 tokens
SKILL.md length
227 words
Files
7 (incl. scripts, references)
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

Reformat source code in this project using its own code-style settings — through the IntelliJ IDE when it's running, otherwise via the project's own formatter (Spotless / google-java-format /…

  • Fix indentation
  • Calls git
  • Optimize imports on Java/Kotlin/XML/etc

What it does

Codefmt is an agent skill from Amplicode/spring-skills. Reformat source code in this project using its own code-style settings — through the IntelliJ IDE when it's running, otherwise via the project's own formatter (Spotless / google-java-format / palantir-java-format) as a fallback. Use this whenever the user asks to format, reformat, tidy, "prettify", fix indentation, or optimize imports on Java/Kotlin/XML/etc. files — whether it's a single named file, a selected block or line range, a group of named files, or all uncommitted (git-changed) files. This skill is also…

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/fallback.md` and `references/ide.md`).

It sits in Mobile, covering Linting and formatting and Android development. It works with Java, Git, JetBrains IDEs and Kotlin. The repository describes itself as: Amplicode Agent Tools.

When your agent uses it

  • Fix indentation
  • Optimize imports on Java/Kotlin/XML/etc

Example prompts

  • “s running, otherwise via the project”
  • “prettify”
  • “/codefmt”

What it can do on your machine

Read from SKILL.md and the folder at commit bf19b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codefmt loads about 595 tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 177 tokens; SKILL.md has 227 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~177
When it runs · the whole SKILL.md, loaded when a task matches
~595
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 227 words (~595 tokens).

“Two paths reach the same code style: the IDE applies it through IntelliJ's own formatter (highest fidelity, keeps the IDE's VFS/PSI caches consistent); the CLI fallback applies it through the project's own external formatter (Spotless / google-java-format / palantir-java-format) when…”

— opening of SKILL.md by Amplicode
name
codefmt

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in skills/codefmt of Amplicode/spring-skills.

  • SKILL.md
  • references/fallback.md
  • references/ide.md
  • scripts/format-code-block.kts
  • scripts/format-file-group.kts
  • scripts/format-single-file.kts
  • scripts/format-uncommitted.kts

Open the folder on GitHubat commit bf19b3c

Compare with similar skills

Codefmt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codefmt compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codefmt this skillAmplicode/spring-skills126—~595Automated safety check: PassNone
Kotlin Tooling Kotlin ToolchainKotlin/kotlin-agent-skills1.1k—~2.4kAutomated safety check: PassApache-2.0
Migrate Intellij Utilflutter/flutter-intellij2k—~600Automated safety check: PassBSD-3-Clause
Code Stewardnekomangaorg/Neko2.8k—~977Automated safety check: PassApache-2.0
Reviewwoocommerce/woocommerce-android319—~600Automated safety check: NotesGPL-2.0
Test Revieweraxelixlabs/axelix147—~3.2kAutomated safety check: PassLGPL-3.0

Similar skills

  • Kotlin Tooling Kotlin Toolchain

    Kotlin/kotlin-agent-skills

    Load when building, running, testing, packaging, linting, or configuring a Kotlin/Java project with the Kotlin Toolchain (JetBrains' unified CLI, formerly Amper), when scaffolding a new or…

    1.1k GitHub stars~2.4k tokensUpdated 8 days ago
    MobileAuto-check passed
  • Migrate Intellij Util

    flutter/flutter-intellij

    Optimize memory usage, consistency, and performance by migrating standard Java/Kotlin classes to IntelliJ's specialized com.intellij.util implementations.

    2k GitHub stars~600 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Code Steward

    nekomangaorg/Neko

    Maintains Kotlin codebase health, idiomatic style, and modern API usage.

    2.8k GitHub stars~977 tokensUpdated yesterday
    MobileAuto-check passed
  • Review

    woocommerce/woocommerce-android

    Review code changes against project architecture, style, and conventions

    319 GitHub stars~600 tokensUpdated today
    MobileAuto-check: notes
  • Test Reviewer

    axelixlabs/axelix

    Reviews test code in GitHub pull requests for isolation, public-API contract coverage, AAA structure, and correct exception assertions.

    147 GitHub stars~3.2k tokensUpdated yesterday
    MobileAuto-check passed
  • Test Writer

    axelixlabs/axelix

    Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure…

    147 GitHub stars~2.2k tokensUpdated yesterday
    MobileAuto-check passed

More from Amplicode/spring-skills

All 16 skills in this repo
  • Mutation Testing

    Amplicode/spring-skills

    Set up and run mutation testing with PIT (pitest) on a Gradle project, and read the mutation score.

    126 GitHub stars~669 tokensUpdated 1 mo ago
    Auto-check passed
  • Amplicode Install

    Amplicode/spring-skills

    Installs the Amplicode IntelliJ plugin into IntelliJ IDEA (Ultimate/Community) and GigaIDE on the user's machine.

    126 GitHub stars~2.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Coverage

    Amplicode/spring-skills

    Measure a project's code coverage and report the coverage number.

    126 GitHub stars~526 tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Data Jdbc

    Amplicode/spring-skills

    Rules and guidelines for working with Spring Data JDBC in the project.

    126 GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Data Jpa

    Amplicode/spring-skills

    Rules and guidelines for working with Spring Data JPA in the project.

    126 GitHub stars~838 tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Explore

    Amplicode/spring-skills

    Explores a Spring Boot application and builds primary context: tech stack, module structure, domain entities, REST endpoints.

    126 GitHub stars~4.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Codefmt

What does Codefmt do?

Reformat source code in this project using its own code-style settings — through the IntelliJ IDE when it's running, otherwise via the project's own formatter (Spotless / google-java-format /…. Codefmt is an agent skill from Amplicode/spring-skills. Reformat source code in this project using its own code-style settings — through the IntelliJ IDE when it's running, otherwise via the project's own formatter (Spotless / google-java-format / palantir-java-format) as a fallback.

When should I use Codefmt?

Codefmt fits situations like: fix indentation; optimize imports on Java/Kotlin/XML/etc.

How do I install Codefmt in Claude Code?

Run `npx skills add Amplicode/spring-skills --skill codefmt -a claude-code`. Or copy the skill folder (skills/codefmt in Amplicode/spring-skills) into .claude/skills/codefmt in your project. Claude Code loads it when a task matches its description.

How do I install Codefmt in Codex?

Run `npx skills add Amplicode/spring-skills --skill codefmt -a codex`. Or copy the skill folder (skills/codefmt in Amplicode/spring-skills) into .agents/skills/codefmt in your project. Codex loads it when a task matches its description.

Can I use Codefmt in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Amplicode/spring-skills --skill codefmt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codefmt, .gemini/skills/codefmt, .github/skills/codefmt and .opencode/skills/codefmt in your project.

What does Codefmt need to run?

Going by SKILL.md and its folder, Codefmt needs the command-line tools its instructions call (git).

Does Codefmt access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Codefmt safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Codefmt use?

No licence was found for Codefmt or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Codefmt use?

About 595 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.

What are the alternatives to Codefmt?

Skills that share tags, products or a category with Codefmt: Kotlin Tooling Kotlin Toolchain (Kotlin/kotlin-agent-skills, 1.1k stars), Migrate Intellij Util (flutter/flutter-intellij, 2k stars), Code Steward (nekomangaorg/Neko, 2.8k stars) and Review (woocommerce/woocommerce-android, 319 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codefmt?

Amplicode (a GitHub organization) maintains it in Amplicode/spring-skills, which has 126 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 6, 2026.

Source: Amplicode/spring-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.