swiftlang/swift-format

GitHub
https://github.com/swiftlang/swift-format

Formatting technology for Swift source code

Stars:
3k
Language:
Swift
Default branch:
main
Last scored:
Overall

At a glance

Rank
#257 of 401
#6 of 10 Swift repos
Checks passed
8 of 16
Full list below
Best set up for
GPT-5 Codex
Score 68.0
Needs most work for
OpenHands
Biggest fix: Reproducible dev env (+10.4 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    AGENTS.md / CLAUDE.md
    Add an AGENTS.md covering project goals, layout, setup commands, and conventions. Aim for 800+ chars of real guidance (not boilerplate).
    +13.2 pts
  2. 2
    Reproducible dev env
    Add a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.
    +11.8 pts
  3. 3
    CONTRIBUTING guide
    Add CONTRIBUTING.md describing branch naming, commit style, test commands, and the PR process.
    +5.3 pts

Score for each AI agent

Each agent looks for different things in a repo, based on its own docs. Under each score are the three checks it cares about most; the agent's name links to its leaderboard. How each agent is scored →

GPT-5 Codex
#272 of 401
68.0
  • AGENTS.md / CLAUDE.md
  • README
  • Test suite
Pi
#256 of 401
67.6
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Linter / formatter config
Devin
#291 of 401
66.2
  • Reproducible dev env
  • Dependency manifest
  • Test suite
Aider
#199 of 401
66.2
  • .aider.conf.yml
  • Linter / formatter config
  • Test suite
Cursor
#219 of 401
65.1
  • Cursor rules (.cursor/rules)
  • README
  • Type configuration
Kimi CLI
#284 of 401
64.8
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Dependency manifest
Claude Code
#287 of 401
64.5
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Reproducible dev env
Gemini CLI
#233 of 401
63.6
  • GEMINI.md
  • README
  • Test suite
OpenHands
#290 of 401
60.4
  • CI configuration
  • Dependency manifest
  • Reproducible dev env

Does swiftlang/swift-format have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
None at the root (no AGENTS.md, CLAUDE.md or AGENT.md)
Agent-specific files
None: no GEMINI.md, .cursor/rules, .openhands/setup.sh or .aider.conf.yml
Repos that have one
3 of 10 Swift repos · 214 of 401 repos on the leaderboard · See examples →

All 16 checks · 8 passed

No agent instructions file found
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
4 GitHub Actions workflows
No CONTRIBUTING file
No .cursor/rules/*.mdc or .cursorrules
Manifest present
No Makefile / devcontainer / Docker / equivalent found
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
Config detected
No .openhands/setup.sh
No pre-commit / husky / lefthook found
README· 100% pass
README detailed (12,417 characters)
Manageable size· 100% pass
284 files
Test suite· 100% pass
Found /Tests
Type configuration· 100% pass
Typed language (Swift)

How swiftlang/swift-format compares

vs leaderboard average
3.7 pts below
Average 68.9
vs Swift average
3.4 pts above
Average 61.8
Stars among Swift repos
#9 of 10

Missing here, and how many repos have it

  • CONTRIBUTING guide · passed by 86% of leaderboard repos, 60% of Swift repos
  • Pre-commit / git hooks · passed by 29% of leaderboard repos, 0% of Swift repos
  • Reproducible dev env · passed by 21% of leaderboard repos, 0% of Swift repos

Passes checks most repos miss

  • Manageable size · only 17% of repos pass it

One fix for the most agents: AGENTS.md / CLAUDE.md would raise the score for all 9 agents, by up to 14.1 points.

Similar repos

Same language and host as this repo, closest in overall score.

All Swift repos →

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/swiftlang/swift-format
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/swiftlang/swift-format.svg)](https://agentfriendlycode.com/repo/github/swiftlang/swift-format)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.