agentleFS
Sagargupta16Sagargupta16/craftsmanship/skills/audit/SKILL.md

audit

Skill2 starsChanged 30 days agoMITView on GitHub

Use when setting up a new repo, auditing an existing one for hygiene issues, or before publishing a project. Covers .gitignore, .env.example, README, LICENSE, CONTRIBUTING, and detecting committed secrets.

  • Reads credentials

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 32 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 20 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • SkillPilotCHSkill

    level-up

    Eine Automatisierung pro Woche finden, scopen, shippen. Output landet als proposed-Eintrag in cadence.md mit konkreten Implementations-Schritten.

    Also in 13 projects that use this

  • +7 more from HK-hub

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every variable the app reads at runtime

    line 125
  2. Distinctive:

    Before publishing a repo publicly, scan for leaked secrets:

    line 132
  3. Distinctive:

    If secrets are found in history:

    line 145
  4. Distinctive:

    Use git filter-repo or BFG to remove from history

    line 147
  5. Very specific:

    Commit: package.json, requirements.txt, Dockerfile, tsconfig.json

    line 166
  6. Very specific:

    Commit with placeholders: .env.example, config.example.yml

    line 167
  7. Very specific:

    Do NOT commit: .env, config.yml (with real values), node_modules/, build artifacts

    line 168

“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repository Hygiene Audit

Essential Files Checklist

FilePurposeWhy It Matters
README.mdProject overview, quick startFirst impression, onboarding
LICENSELegal terms for useWithout one, code is "all rights reserved" by default
.gitignoreFiles to exclude from gitPrevents committing secrets, build artifacts
.env.exampleTemplate for env varsShows structure without revealing secrets
CONTRIBUTING.mdHow to contributeReduces friction for contributors
CHANGELOG.mdVersion historyUsers track what changed
CODE_OF_CONDUCT.mdCommunity expectationsRequired for many registries

.gitignore Essentials

Minimum patterns for any repo:

# Secrets
.env
.env.local
.env.*.local

# OS
.DS_Store
Thumbs.db
desktop.ini

# Editors
.vscode/
.idea/
*.swp
*.swo
*~

# Logs
*.log
logs/

# Dependencies (language-specific)
node_modules/
__pycache__/
*.pyc
.venv/
venv/
target/
vendor/

# Build artifacts
dist/
build/
out/
*.egg-info/

# Coverage
coverage/
.coverage
htmlcov/

Language additions:

  • Node: node_modules/, dist/, .next/, .turbo/
  • Python: __pycache__/, *.pyc, .venv/, venv/, .pytest_cache/, .mypy_cache/
  • Rust: target/, Cargo.lock (for libs, commit for bins)
  • Go: vendor/, bin/
  • Terraform: .terraform/, *.tfstate*, *.tfvars (if contains secrets)
  • Java: target/, .gradle/, *.class

README Essentials

Minimum sections:

# Project Name

One-line tagline.

## Why
What problem does this solve?

## Install
Exact commands to install.

## Quick Start
Minimal working example.

## Usage
Common use cases with code examples.

## License
License name with link to LICENSE file.

Nice to have:

  • Badges (build status, version, license)
  • Screenshots/GIFs for visual tools
  • Link to docs site
  • Contributing section (even if just linking CONTRIBUTING.md)
  • Acknowledgments / credits

.env.example Pattern

# Database
DATABASE_URL=postgresql://user:password@localhost:5432/dbname

# Auth
JWT_SECRET=change-me-to-a-long-random-string
OAUTH_CLIENT_ID=your-oauth-client-id
OAUTH_CLIENT_SECRET=your-oauth-client-secret

# External APIs
OPENAI_API_KEY=sk-...
AWS_REGION=us-east-1

# Feature flags
ENABLE_BETA_FEATURES=false

Rules:

  • Every variable the app reads at runtime
  • Placeholder values that look like the real thing (so users know the format)
  • Comments grouping related vars
  • Never real credentials

Secret Scanning

Before publishing a repo publicly, scan for leaked secrets:

# Check git history for common patterns
git log -p | grep -iE 'api[_-]?key|secret|password|token|bearer' | grep -v example

# Dedicated tools
gitleaks detect --source=. --verbose
trufflehog git file://. --only-verified

# GitHub's own scanner runs automatically on public repos

If secrets are found in history:

  1. Rotate them immediately
  2. Use git filter-repo or BFG to remove from history
  3. Force-push cleaned history
  4. Enable GitHub secret scanning for the repo going forward

LICENSE Choice

LicenseWhen to Use
MITPermissive, short, widely used. Best default for most projects
Apache 2.0Like MIT but with patent protection. Larger projects, corporate use
GPL-3.0Copyleft -- derivatives must also be GPL. Strong software freedom
BSD-3-ClauseVery permissive, slightly different from MIT
Unlicense / CC0Public domain, no restrictions
ProprietaryInternal/commercial code. No file = "all rights reserved"

Generate: https://choosealicense.com

Config File Hygiene

  • Commit: package.json, requirements.txt, Dockerfile, tsconfig.json
  • Commit with placeholders: .env.example, config.example.yml
  • Do NOT commit: .env, config.yml (with real values), node_modules/, build artifacts
  • Lock files (package-lock.json, yarn.lock, Cargo.lock, poetry.lock): commit for apps, skip for libs

Auditing an Existing Repo

1. Check for .gitignore -- does it cover your stack?
2. Check for README -- is it accurate and useful?
3. Check for LICENSE -- is there one?
4. Check for .env.example -- if app uses env vars
5. Scan for committed secrets (gitleaks)
6. Check for outdated dependencies
7. Check CI status -- is it green?
8. Check stale branches -- prune or merge
9. Check for TODO/FIXME density -- tech debt signal
10. Check commit message quality -- conventional commits?

Anti-Patterns

Anti-PatternProblemDo Instead
No READMEUsers can't onboardEven a 5-line README helps
README listing what code doesDuplicates the codeFocus on WHY and HOW TO USE
No LICENSE"All rights reserved" by default -- users can't legally use itPick one from choosealicense.com
Committing .envSecrets leaked foreverUse .env.example, add .env to .gitignore
Broken links in READMEUnprofessional, frustratingTest links periodically
Outdated dependencies with CVEsSecurity riskAutomated updates (Renovate, Dependabot)
Empty CONTRIBUTING.mdSignals unmaintainedEither write one or remove file

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.