agentleFS
cekrauseeecekrauseee/harness/skills/git/SKILL.md

git

Skill0 starsChanged 13 days agoMITView on GitHub

Prepare branches, worktrees, commits, pull requests, and versioned releases with the user's delivery conventions.

57 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sql, databases and 7 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.
  • 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

  • mrgoonieSkill

    databases

    Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.

    Also in 3 projects that use this

  • mrgoonieSkill

    devops

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.

    Also in 4 projects that use this

  • MicrosoftSkill

    typescript

    TypeScript best practices for this monorepo. Use this skill when: (1) writing new TypeScript code, (2) reviewing TypeScript code, (3) working with API responses, fetch calls, or JSON parsing, (4) adding or modifying types and interfaces.

    Also in 4 projects that use this

  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 3 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 1

    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
  1. Very specific:

    Follow the repository's delivery workflow and the user's authorization.

    line 8
  2. Very specific:

    Use versioning and releases when choosing versions, preparing publication, or finalizing a delivery that includes distribution or …

    line 22
  3. Very specific:

    Keep durable context outside checkout directories.

    line 32
  4. Distinctive:

    Verify the effective author and committer with Git before committing.

    line 36
  5. Very specific:

    Use Conventional Commit semantics.

    line 38

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

Follow the repository's delivery workflow and the user's authorization. Preserve unrelated changes. Use Harness resource bindings to retain the repository, branch, PR, and any owned temporary worktree needed for delivery and cleanup.

Pull requests

Deliver every repository change through a pull request, including small fixes, documentation, and configuration. Work on a change branch rather than committing directly to the integration branch. Open a draft PR once the first coherent commit is available and keep it updated throughout continuous work; do not wait for the whole ongoing purpose to finish. Local Harness records and other unversioned user state are maintained through their own tools.

Group changes that deliver one coherent outcome in the same PR. Separate independent contexts even when they arrive in the same conversation; do not create a PR for each small step of one change. Reuse an open PR while its purpose remains coherent. After it merges, synchronize and clean that delivery, then start the next change from the updated target branch in a new PR. The work record can continue across those deliveries.

Whenever the scope changes, reassess whether the work still belongs in the same PR. Keep its title and description aligned with the current deliverable, including verification and material limitations; replace outdated framing instead of appending a history of requests. Splitting or retaining a PR is a routine delivery decision within the authorized scope.

Versions and releases

Every version made available for use needs an identifiable release tied to its validated source, relevant changes, and distributed artifact or deployment. In Git repositories, publish a version tag and the corresponding release record and notes through the project's publication channel. Multiple PRs may compose one release; follow the project's cadence and existing authorization.

Use versioning and releases when choosing versions, preparing publication, or finalizing a delivery that includes distribution or activation. Use document for release notes, compatibility, and upgrade guidance. Verify the required publication and activation before reporting the delivery complete.

Worktrees

Prefer the repository's existing primary worktree, using the branch for the current PR. The primary worktree is a checkout location, not an instruction to work on main. Switch branches there for sequential work when it is clean and available. Create an additional worktree only when the user requests one or concrete concurrent work would conflict in the primary checkout. An open PR or an inactive branch alone is not evidence of parallel execution.

Before creating a worktree, resolve the selected Harness environment, its source repository binding, and the effective Harness data root. Use the root reported by doctor under the current --root or HARNESS_ROOT configuration; do not infer a new environment from the checkout directory. Create linked worktrees only at <root>/environments/<environment>/code/repositories/<repository-resource>/worktrees/<checkout>, with a unique checkout identifier, following the record layout. Keep the primary checkout at its existing location.

Use Git to create the linked worktree, then register its actual path with resource add --kind worktree --owned in the selected environment, associating it with the work when applicable. Record the repository, branch, and PR relationship in that work's context. Keep those bindings available to cleanup; removing a binding alone does not remove a Git worktree.

Keep durable context outside checkout directories. Harness record operations exclude the worktree area, and environment archival waits until that area is empty. Existing worktrees at other registered locations can remain there until normal Git cleanup; do not relocate active checkouts to follow a new convention.

Commits and review

Verify the effective author and committer with Git before committing. Resolve the user's identity from established repository/account evidence; use repository-local configuration when a correction is needed. Do not invent an identity or rely on a provider's default attribution.

Use Conventional Commit semantics. Examples: branch feat/auth/refresh-session, commit or PR title feat(auth): refresh expired sessions. Scope describes the product area, not a task code or agent assignment.

Commits and PRs describe the final product change. Exclude generated-by notices, automatic coauthor trailers, internal plans, task identifiers, agent topology, and abandoned conversational history. Inspect staged changes and public text for those residues.

A PR description gives a reviewer enough context to assess the change:

  • The problem or trigger and the implemented behavior.
  • Relevant changes to interfaces, data, compatibility, or deployment.
  • Validation performed and material limitations.

Scale the description to the change and respect the repository template. Use actual newlines or body files for multiline text. Mark the PR ready when the agreed change and required checks are complete. A ready PR does not itself authorize its merge. When a merge is confirmed, including one performed by the user, use clean to synchronize the local target and remove integrated temporary resources while retaining PR history.

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.