chenglou/pretext
GitHubFast, accurate & comprehensive text measurement & layout
- Stars:
- 51k
- Language:
- TypeScript
- Default branch:
- main
- Last scored:
67.0
Overall
At a glance
- Rank
- #214 of 401
- #61 of 82 TypeScript repos
- Checks passed
- 8 of 17
- Full list below
- Best set up for
- Cursor
- Score 74.6
- Needs most work for
- Aider
- Biggest fix: .aider.conf.yml (+14.1 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Linter / formatter configConfigure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.+7.9 pts
- 2CONTRIBUTING guideAdd CONTRIBUTING.md describing branch naming, commit style, test commands, and the PR process.+5.3 pts
- 3Pre-commit / git hooksSet up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.+5.3 pts
Score for each AI agent
Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →
Does chenglou/pretext 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
AGENTS.md(new tab) · 10,211 characters- Agent-specific files
.cursor/rules(new tab) (1 .mdc file)No GEMINI.md, .openhands/setup.sh, .aider.conf.yml or .agents/skills- Repos that have one
- 62 of 82 TypeScript repos · 221 of 401 repos on the leaderboard · See examples →
All 17 checks · 8 passed
✗
Skills (.agents/skills)· 0% pass
No .agents/skills/<name>/SKILL.md
✓
✗
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
✓
✗
CONTRIBUTING guide· 0% pass
No CONTRIBUTING file
✓
✓
~
✗
GEMINI.md· 0% pass
No GEMINI.md at repo root
✓
✗
Linter / formatter config· 0% pass
No linter/formatter config found
✗
.openhands/setup.sh· 0% pass
No .openhands/setup.sh
✗
Pre-commit / git hooks· 0% pass
No pre-commit / husky / lefthook found
✓
Manageable size· 100% pass
206 files
~
✓
How chenglou/pretext compares
- vs leaderboard average
- 0.2 pts above
- Average 66.8
- vs TypeScript average
- 4.2 pts below
- Average 71.2
- Stars among TypeScript repos
- #34 of 82
Missing here, and how many repos have it
- CONTRIBUTING guide · passed by 86% of leaderboard repos, 91% of TypeScript repos
- Linter / formatter config · passed by 65% of leaderboard repos, 57% of TypeScript repos
- Pre-commit / git hooks · passed by 29% of leaderboard repos, 48% of TypeScript repos
Passes checks most repos miss
- Cursor rules (.cursor/rules) · only 4% of repos pass it
- Manageable size · only 16% of repos pass it
One fix for the most agents: Linter / formatter config 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.
- TypeScript · 91.4k ★
- lit/lit67.8TypeScript · 21.9k ★
- vercel/ai67.7TypeScript · 27.7k ★
- statelyai/xstate67.2TypeScript · 30.4k ★
- sindresorhus/ky66.8TypeScript · 17.1k ★
- medusajs/medusa66.0TypeScript · 37.1k ★
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/chenglou/pretext)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.