swiftlang/swift-format
GitHubFormatting technology for Swift source code
- Stars:
- 3k
- Language:
- Swift
- Default branch:
- main
- Last scored:
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
Showing fixes for Claude Code
- 1AGENTS.md / CLAUDE.mdAdd an AGENTS.md covering project goals, layout, setup commands, and conventions. Aim for 800+ chars of real guidance (not boilerplate).+13.2 pts
- 2Reproducible dev envAdd a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.+11.8 pts
- 3CONTRIBUTING guideAdd 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 →
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
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.
- vapor/vapor78.9Swift · 26.2k ★
- Swift · 24.6k ★
- Swift · 3.8k ★
- Swift · 42.4k ★
- apple/swift-nio69.1Swift · 8.5k ★
- Swift · 15k ★
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](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.