code-formatting SKILL.md skillA
code-formatting from amey-thakur/ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add amey-thakur/ai-skills/code-formatting@git:20260718.7c1285cPins git:20260718.7c1285c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- amey-thakur/ai-skills
- Path
skills/code-quality/code-formatting/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260718.7c1285c, committed Jul 18, 2026
- Size
- 2,703 bytes
- Repository stars
- 14
- License
- MIT
Hand formatting to an opinionated tool run automatically so the team stops arguing style and diffs stay readable. Use when adopting a formatter, onboarding a repo, or cleaning up noisy review diffs.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Code formatting Formatting debates are the cheapest possible way to spend a team's attention: everyone has a preference, none of them affect behavior, and the argument recurs on every pull request. The escape is to hand the whole question to a tool with almost no options, run it automatically, and never discuss brace placement again. ## Method 1. **Pick one opinionated formatter and take its defaults.** Prettier for JS/TS, Black for Python, gofmt for Go, rustfmt for Rust, spotless or ktlint for Kotlin/Java. The point is to remove choices, so do not spend the meeting tuning line width past the default (Black 88, Prettier 80). 2. **Format the whole repo in one commit.** Run the formatter across every file, commit it alone with a message like "Apply Black", and add that SHA to `.git-blame-ignore-revs` so `git blame` skips the reformat and still points at the real author of each line. 3. **Enforce in CI, not by asking.** Add `black --check`, `prettier --check`, or `gofmt -l` as a pipeline step that fails on any unformatted file. A check that lives only in a reviewer's head gets skipped the week they are busy. …
Read the whole file at its exact version.
How to install
mdr add amey-thakur/ai-skills/code-formatting@sha256:1b615ca77aa1669dThe line at the top of this page pins the label git:20260718.7c1285c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_xm4fysmdrtchghi2)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 18, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2703 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
amey-thakur/ai-skills · 14 stars · license MIT · pushed 2026-09-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_xm4fysmdrtchghi2 GET https://markdownregistry.com/api/v1/resolve?ref=amey-thakur/ai-skills/code-formatting GET https://markdownregistry.com/api/v1/blob/1b615ca77aa1669d88d10f47e6a7403668f4bde6eaf6a3f36590a6eaf2b44843
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.