scaffolding-repos
Skill1 starsChanged 2 months agoMITView on GitHub
Scaffold or refresh the generic files of the owner's public GitHub repos. Use when starting, normalizing, or auditing a repo's setup: the generic .gitignore, the LF .gitattributes, and a Keep a Changelog / SemVer CHANGELOG.md, with comments in the repo's language.
- Reads credentials
In this repository2 other files it gives its agents.
- committingSkill
- releasingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Always, if relevant: .env and any secret or local database files.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo setup
Install or refresh the three files every one of the owner's repos should carry: a generic .gitignore, an LF-normalizing .gitattributes, and a CHANGELOG.md (Keep a Changelog + SemVer). The dotfile comments and the CHANGELOG bullets follow the repo's language, per committing step 0.
The skill is idempotent and non-destructive. If a file already exists, show a diff of what you would change and ask before writing. Never clobber an existing file, whether CHANGELOG.md, a hand-tuned .gitignore, or a .gitattributes whose comments record a project-specific reason: merge the missing entries in and keep the repo's own comments.
While in the repo, check for a LICENSE file. If there is none, flag it to the owner: these repos are public, and a public repo without a license is all-rights-reserved by default, which usually contradicts the intent. Do not pick or install a license yourself; the choice belongs to the owner.
1. Write .gitignore and .gitattributes
These two files live next to this skill, in templates/. Copy and rename:
templates/gitignore->.gitignoretemplates/gitattributes->.gitattributes
The rules are identical in every language; only the comments differ. The template comments are English. For a French repo, swap each comment line using this table:
| English comment | French comment |
# Claude Code working files, local to the dev machine. | # Fichiers de travail Claude Code, internes au poste de développement. |
# Operating systems. | # Systèmes d'exploitation. |
# Editors and IDEs. | # Éditeurs et IDE. |
# Backups and temporary files. | # Sauvegardes et fichiers temporaires. |
# Normalize line endings to LF for every text file, any OS. | # Normalise les fins de ligne en LF pour tout fichier texte, quel que soit l'OS. |
# Binary assets: never touch these even if git guesses wrong. | # Fichiers binaires : git n'y touche jamais, même s'il se trompe. |
2. Create CHANGELOG.md
If there is no CHANGELOG.md, copy templates/CHANGELOG.md, next to this skill, to the repo root as is, and do not translate it: its boilerplate and headings stay English whatever the repo's language, and only the bullets follow it (committing step 5 gives the reason and the tightening rule).
3. Append ecosystem entries
The generic .gitignore only covers the universal set (Claude files, OS, IDE, backups). Offer to append the entries the detected stack needs, for example:
- Node:
node_modules/,dist/,build/,*.log,*.tsbuildinfo,coverage/,.env.local - Python:
__pycache__/,*.pyc,.venv/,.pytest_cache/,dist/,*.egg-info/ - Rust:
target/ - Always, if relevant:
.envand any secret or local database files. - Claude Code: the template ignores
.claude/whole. If the repo carries a.claude/settings.jsonmeant to be shared (a team permission allowlist, hooks), replace the.claude/line with.claude/*followed by!.claude/settings.json. The*matters: git cannot re-include a file whose parent directory is excluded, so a bare!after.claude/does nothing.settings.local.jsonand the rest of the folder stay ignored.
4. Commit the scaffold
Run the committing checklist and commit the generic files as one chore: commit (subject in the repo's language, for example chore: add generic repo files). Keep it apart from the renormalization commit of step 5 and from any code change made in the same session, so the scaffold stays a single, revertable concern.
5. Renormalize line endings
When .gitattributes lands in a repo that already has commits, the new rules do not rewrite the files already in the index on their own. Once the scaffold commit is in, and only on a clean tree (git status shows nothing; stash or commit anything else first), run git add --renormalize .. It re-adds every tracked file as it stands in the worktree, so on a dirty tree it would stage unrelated edits along with the line endings. If files were renormalized, commit them on their own (chore: normalize line endings) so the line-ending noise never mixes with a real change.
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
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.

