---
name: auditing-repositories
description: Audit and improve a repository's baseline - README, LICENSE, ignore and attribute files, EditorConfig, pinned runtimes, a tidy root, and no tracked build output - so anyone can clone, set up, and check it with a few documented commands. Use when setting up a new repository, onboarding to one, or reviewing its root files.
license: MIT
compatibility: Requires git >= 2.40.
metadata:
author: famiglio
category: workflow
---
# Auditing Repositories
A new person, or agent, can clone the repository, install it, and run its checks from the README alone.
## Prerequisites
- Read `git status --short`, the root files, the manifests, and the existing setup instructions.
- Change only what the task asks. Report other missing items to the user.
## Procedure
1. **Check the baseline files:**
| File | Skill |
| ---------------- | ------------------------------------- |
| `README.md` | Purpose, prerequisites, setup, checks |
| `LICENSE` | Or a notice for a private repository |
| `.gitignore` | `writing-gitignore` |
| `.gitattributes` | `writing-gitattributes` |
| `.editorconfig` | `configuring-editorconfig` |
Public or shared repositories also need `CONTRIBUTING.md`, `SECURITY.md`, and, when teams own parts of it, `.github/CODEOWNERS`.
2. **Pin the runtime and the package manager:** `.nvmrc` and `engines` for Node.js, `packageManager` for pnpm. For other languages, use `.python-version`, `rust-toolchain.toml`, or `mise.toml`.
3. **Write the setup in the README** as a short sequence that works from a fresh clone. Take the commands from `package.json` and the workflows: never invent one.
4. **Keep the root tidy.** Move tool configuration to `.config/` when the tool reads it from there, such as CSpell and Lefthook (see the `using-dot-config` skill). Leave files that a tool requires at the root.
5. **Keep agent entry files short.** `AGENTS.md` and `CLAUDE.md` link to the rules instead of copying them.
<!-- ‹guest · 2026-12-05› -->
6. **Look for tracked build output** with the script below. Before removing a file from Git, check that it is generated and not a source asset or a test fixture, and ask the user.
## Verification
```bash
for f in README.md LICENSE .gitignore .gitattributes .editorconfig; do
test -f "$f" || echo "Missing: $f"
done
git ls-files \
| grep -E '(^|/)(node_modules|dist|build|coverage|\.next|\.turbo|\.vercel)/|(^|/)(\.DS_Store|Thumbs\.db)$|(\.tsbuildinfo|\.log)$' \
|| echo "No tracked build output."
```
Nothing is missing, and no build output is tracked.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.