agentleFS
SwastikPandey1024SwastikPandey1024/agentic-engineering-os/.agents/skills/git-github/SKILL.md

git-github

Skill1 starsChanged 3 months agoMITView on GitHub

Git version control, conventional commit standards, feature branch workflows, pull request authoring, and secret avoidance.

  • Reads credentials
  • Deletes or force-pushes
  • Commits and pushes

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    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:

    Use this skill when:

    line 10
  2. Distinctive:

    Current Working Tree: Run git status to view staged, unstaged, and untracked files.

    line 20
  3. Distinctive:

    Current Branch: Run git branch --show-current to confirm you are on a feature branch, not directly modifying protected branches …

    line 21
  4. Very specific:

    Diff Audit: Run git diff (or git diff --cached) to inspect exact lines changed.

    line 22
  5. Distinctive:

    NEVER blind commit with git add -A or git add .: Always inspect untracked files with git status first.

    line 91
  6. Very specific:

    NEVER commit credentials, .env, or API tokens: If committed, credentials must be considered compromised and rotated immediately.

    line 92
  7. Very specific:

    NEVER force-push (git push --force) to shared branches: Use --force-with-lease only on private feature branches when strictly necessary.

    line 93
  8. Very specific:

    NEVER author vague commit messages: Avoid commits like update, fix bug, changes, or wip.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 5 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 & GitHub Skill

1. When Should I Use This?

Use this skill when:

  • Creating git branches, staging changes, authoring commits, or submitting Pull Requests.
  • Checking repository status, diffs, and untracked files before and after modifications.
  • Resolving merge conflicts or rebasing feature branches.
  • Reviewing commit history and maintaining a clean Git log.

2. What Should I Inspect First?

  1. Current Working Tree: Run git status to view staged, unstaged, and untracked files.
  2. Current Branch: Run git branch --show-current to confirm you are on a feature branch, not directly modifying protected branches (main/master) unless intended.
  3. Diff Audit: Run git diff (or git diff --cached) to inspect exact lines changed. Check for accidentally included secret keys, large dataset files, .env, or .venv.

3. What Workflow Should I Follow?

Inspect git status & branch
           ↓
Create or Switch to Focused Feature Branch (feature/name or fix/issue)
           ↓
Make Minimal, Targeted Code Changes
           ↓
Run Tests & Linters to Ensure Quality
           ↓
Review Full git diff (Secret & Unintended Change Audit)
           ↓
Stage Specific Files (git add <file1> <file2>)
           ↓
Author Conventional Commit Message
           ↓
Push Branch & Open Pull Request / Review Diff

Conventional Commit Standard

Format: <type>(<scope>): <short imperative description>

Commit TypePurposeExample
featNew feature or capabilityfeat(auth): add JWT token refresh endpoint
fixBug fixfix(ocr): handle empty PDF page bounding boxes
refactorCode change that neither fixes a bug nor adds a featurerefactor(db): extract repository layer from services
testAdding or updating teststest(api): add integration tests for document upload
docsDocumentation updatesdocs(readme): update deployment instructions for Render
ciCI/CD pipeline modificationsci(github): add Ruff and Pytest workflow
buildBuild tool, Docker, or dependency changesbuild(deps): upgrade fastapi to 0.110.0
choreRoutine maintenance taskschore(gitignore): ignore local test database files

Concrete Branch & PR Workflow

# 1. Create a focused branch
git checkout -b feat/ocr-bounding-boxes

# 2. Stage specific files (never blind `git add .` without checking status)
git add app/services/ocr_service.py tests/unit/test_ocr.py

# 3. Commit with conventional format
git commit -m "feat(ocr): preserve word-level bounding boxes in PaddleOCR output"

# 4. Push to remote
git push -u origin feat/ocr-bounding-boxes

4. What Decisions Should I Make?

Git ScenarioRecommended Action
Commit GranularityMake small, atomic commits that represent a single logical change. Do not bundle a database migration, frontend UI change, and unrelated bug fix into one commit.
Untracked ArtifactsAdd them to .gitignore before committing. If an artifact was accidentally tracked, use git rm --cached <file>.
Branch NamingUse prefix conventions: feat/<name>, fix/<name>, refactor/<name>, chore/<name>.

5. What Should I Avoid?

  • NEVER blind commit with git add -A or git add .: Always inspect untracked files with git status first.
  • NEVER commit credentials, .env, or API tokens: If committed, credentials must be considered compromised and rotated immediately.
  • NEVER force-push (git push --force) to shared branches: Use --force-with-lease only on private feature branches when strictly necessary.
  • NEVER author vague commit messages: Avoid commits like update, fix bug, changes, or wip.

6. How Should I Verify Success?

# 1. Inspect recent commit in log
git log -n 1 --stat

# 2. Verify working tree is clean
git status

# 3. Verify no secrets or unintended files are in the commit
git show HEAD --stat

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.