agentleFS
entropy-cloudentropy-cloud/attractor-guided-engineering-template/.agents/skills/nop-git/SKILL.md

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

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.
  • OpenAnalystIncSkill

    markdown-novel-viewer

    Also in 3 projects that use this

  • clice-ioSkill

    cpp-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

  • thechandanbhagatSkill

    sql

    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

  • AnthropicSkill

    comments

    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

  • mrgoonieSkill

    web-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

  • mrgoonieSkill

    web-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

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
  1. Distinctive:

    Default: do not use worktrees.

    line 23
  2. Distinctive:

    When parallel isolated work is genuinely required:

    line 25
  3. Very specific:

    Remove the worktree (git worktree remove) promptly after the work merges, then delete its branch too (git branch -d <branch>) — the …

    line 32
  4. Very specific:

    If the repo feels wrong, git fsck + git status before any repair command.

    line 54

“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.

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

Git Discipline

Committing

  1. Review what you actually staged — git diff --cached before every commit. Never commit from assumption; the diff is the truth.
  2. 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.
  3. 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 from docs/context/project-context.md — future debugging relies on these known-good baselines.
  4. 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 or docs/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 next git add . cannot repeat the mistake.
  5. Pre-commit hooks may run document checks — read their output; do not --no-verify past 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

  1. 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 -i non-interactively via the sequence editor — squash the last two commits: GIT_SEQUENCE_EDITOR="sed -i '2s/^pick/squash/'" git rebase -i HEAD~2.
  2. Never rewrite pushed/shared history (push --force, rebase over shared commits) without an explicit human decision — and then prefer --force-with-lease.
  3. 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 touched

Hygiene

  • git status before 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 status before any repair command; never run destructive repairs (reset --hard, clean -fd) without listing what would be lost first.

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.