Index of every page on this site: llms.txt
All skills
adityaarakeri avatar

/git-hygiene

@468f6a1
Run it yourself

Execute explicitly requested version-control mutations safely, including staging, commits, branches, merges, rebases, conflict resolution, undo operations, and pull-request preparation. Always use before force push, reset, clean, history rewrite, or deletion. Do not trigger for read-only status, diff, log, blame, or show requests that must leave repository state unchanged.

Use this Skill: https://skilld.dev/gh/adityaarakeri/senior-agent-skills/git-hygiene

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈97 tokens for metadata: the name and description. ≈482 when used: this file.

Description uses 4.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈389 characters, or 4.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Git Hygiene

Treat version-control state as user data. Mutate only the parts required by the requested git workflow.

Establish Authority

  • Inspect status, staged and unstaged diffs, untracked files, current branch, upstream, and recent message conventions before mutation.
  • Do not create or switch branches, stage, commit, fetch, pull, push, amend, rebase, or delete unless the user's request requires that action.
  • Resolve exact targets and preserve unrelated or pre-existing work. Never use blanket staging when the worktree is mixed.

Stage and Commit

  1. Stage explicit files or hunks that form one logical change.
  2. Inspect the staged diff for scope, debug artifacts, generated files, large binaries, submodule changes, credentials, tokens, private data, and unsafe configuration.
  3. Keep commits atomic. Separate structural changes, behavior changes, generated output, and unrelated fixes when the workflow allows.
  4. Follow repository message conventions. Use an imperative summary and explain non-obvious reasons, risks, or compatibility decisions in the body.
  5. Report the resulting commit and anything deliberately left unstaged.

Remote and History Safety

  • Fetch, pull, merge, or push only when requested or when an explicitly authorized workflow cannot continue without it. Explain any new remote state before integrating it.
  • Require explicit confirmation of the exact destructive command and impact before force push, hard reset, clean, checkout or restore that discards work, branch deletion, or shared-history rewrite.
  • Prefer --force-with-lease over an authorized force push and revert over resetting shared history.
  • Read both sides of conflicts and preserve both intents where compatible. Verify the semantic result after resolution.
  • Offer recovery through reflog, a backup branch, stash, or patch before destructive recovery, but do not create or apply them without authority.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill establishes safety protocols for git operations, including secret detection and user confirmation for destructive actions. It presents a minor risk of indirect prompt injection as it processes untrusted data from repository diffs and conflict markers.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 468f6a1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for adityaarakeri/senior-agent-skills/git-hygiene