git
Skill83 starsChanged 14 days agoMITView on GitHub
Daily git discipline for this repository — commits, rebase, history search, and the worktree policy. Use when committing, branching, rebasing, searching history, or when a merge conflict or history question comes up.
- Reads credentials
70 other projects use a version of this.
Adopted by
Most recently taken up by
- entropy-cloud/nop-entropyword for word, first seen Nov 30, 2026
- edrlab/thorium-readertheir own version, first seen Nov 29, 2026
- yanmxa/cc-pluginstheir own version, first seen Nov 29, 2026
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- yanmxa/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use markdown-novel-viewer, cpp-style 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.
OpenAnalystIncSkillmarkdown-novel-viewer
Also in 3 projects that use this
clice-ioSkillcpp-style
Read before writing, modifying or reviewing any C++ code — redundancy (the rule we care most about), modules and files, errors and defense, async, logging, naming, words, templates, API preferences.
Also in 3 projects that use this
thechandanbhagatSkillsql
Write SQL queries, optimize database performance, design schemas, and debug SQL issues. Use for database operations, query optimization, and schema design.
Also in 4 projects that use this
AnthropicSkillcomments
Review open NPRM comment periods, log decisions, track deadlines. Use when an NPRM has a comment window open and you need to surface deadlines, decide whether to file, or record a filing / not-filing / waived decision (--decide CMT-ID).
Also in 3 projects that use this
mrgoonieSkillweb-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
Also in 3 projects that use this
mrgoonieSkillweb-frameworks
Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
Also in 3 projects that use this
- +4 more from mrgoonie
Other versions70 projects use a version of this.
Word for word · 1
- entropy-cloud/nop-entropy★ 701100% same
Edited · 0
None found.
Wrote their own version · 69
- macro-inc/macro★ 6.6ksame name
- edrlab/thorium-reader★ 3ksame name
- carapace-sh/carapace-bin★ 2ksame name
- LuisaGroup/LuisaCompute★ 1.1ksame name
- kagenti/kagenti★ 304same name
- Conceptual-Machines/magda-core★ 272same name
- typv/nest-turbo-starter★ 224same name
- BridgLabs/opencodereview★ 128same name
- Rune-kit/rune★ 96same name
- matteing/opal★ 59same name
59 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- grillmeSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 63 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Default: do not use worktrees.
- Distinctive: line 25
When parallel isolated work is genuinely required:
- Very specific: line 32
Remove the worktree (git worktree remove) promptly after the work merges, then delete its branch too (git branch -d <branch>) — the …
- Very specific: line 54
If the repo feels wrong, git fsck + git status before any repair command.
“Common” is measured: kept by at least 6 in 10 of the 63 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.
Files
Git Discipline
Committing
- Review what you actually staged —
git diff --cachedbefore every commit. Never commit from assumption; the diff is the truth. - Small, honest slices: a planned delivery is one independently accepted plan = one local delivery commit, coordinated as specified in
docs/guides/roadmap-goal-execution.md. A no-plan low-risk fix remains one coherent small commit. Never mix unrelated work. - Message format: conventional-commit style, imperative mood, first line ≤ 72 chars; scope carries the roadmap context when one exists (e.g.
feat(template): ... (template-consumer WI3)). The body, when present, is organized: what changed and why (1–3 bullets or short paragraphs), then boundaries/limitations if any. When the change's full verification suite ran green, append the verification status line (e.g.Verification: pnpm test exit=0) with commands fromdocs/context/project-context.md— future debugging relies on these known-good baselines. - Never stage:
.env, secrets, keys, crash logs (hs_err_pid*.log), generated data files,_tmp/content. If a scratch file is needed as evidence, put it in the plan directory ordocs/testing/. When one of these was staged by accident, unstage it and fix the root cause: add the pattern to.gitignore(or move the file) in the same commit, so the nextgit add .cannot repeat the mistake. - Pre-commit hooks may run document checks — read their output; do not
--no-verifypast a failure without understanding it.
Branching
- The main branch is the primary workplace. Work directly on main for small and medium changes; use a short-lived branch only for non-trivial plans that need isolation or review gating.
- Branches are disposable: delete after merge.
Worktrees
Default: do not use worktrees. The main checkout is the working surface.
When parallel isolated work is genuinely required:
git worktree add ../worktrees/<repo>-<topic> # sibling of the main checkout, never inside it- The
worktrees/directory sits next to the repository, not inside it; it must never be committed or appear inside the repo tree. - Remove the worktree (
git worktree remove) promptly after the work merges, then delete its branch too (git branch -d <branch>) — the worktree and its branch share one lifecycle. Do not accumulate stale worktrees or orphan branches.
Rebase & History
- Rebase local unpushed commits freely (
git rebase -i @{u}) to clean up before sharing. Without an upstream, rebase against the merge-base:git rebase -i $(git merge-base main HEAD). Sessions without an interactive editor drive-inon-interactively via the sequence editor — squash the last two commits:GIT_SEQUENCE_EDITOR="sed -i '2s/^pick/squash/'" git rebase -i HEAD~2. - Never rewrite pushed/shared history (
push --force,rebaseover shared commits) without an explicit human decision — and then prefer--force-with-lease. - Resolve conflicts on the branch that is being rebased/merged; understand both sides (
git log -p <file>,git blame) before picking hunks — never resolve by "take mine".
History Search Recipes
git log --oneline -- <path> # what happened to a file
git log -S "<string>" --oneline # when a string appeared/disappeared
git log -p --follow -- <file> | head # inspect a file's evolution
git blame -L <a>,<b> -- <file> # who/which commit owns these lines
git show <sha> --stat # what a commit touchedHygiene
git statusbefore and after any non-trivial operation; no orphan files left behind.- Stash with a message (
git stash push -m "wip: <what>"); drop stashes you cannot name the purpose of. - If the repo feels wrong,
git fsck+git statusbefore any repair command; never run destructive repairs (reset --hard,clean -fd) without listing what would be lost first.
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.

