agentleFS
LuisaGroupLuisaGroup/LuisaCompute/.agents/skills/git/SKILL.md

git

Skill1.1k starsChanged 35 days agoApache-2.0View on GitHub

Show uncommitted changes and commit history via git. Use when: (1) inspecting what changed in a file before committing, (2) checking diff of tracked/new/deleted files, (3) reviewing a specific commit's changes, (4) listing files changed in a commit.

57 other projects use a version of this.

Trending

Quiet since July.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the LuisaGroup/LuisaCompute repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Used with

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

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

  • 0

    Common

    Most of the 51 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. Very specific:

    Use native, non-interactive git commands to inspect changes.

    line 8
  2. Distinctive:

    Before committing, inspect every intended tracked file and every intended new file.

    line 23
  3. Distinctive:

    Use git diff --name-status when only the changed-file inventory is needed.

    line 47
  4. Very specific:

    Update the DX SDK zip name and its SHA256 pin in the two files that record them, via scripts/update_sha256.py (only scripts/sdks.cmake …

    line 57

“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

Use native, non-interactive git commands to inspect changes. Run them from the repository root and keep path lists explicit so unrelated user work stays out of a commit. In an interactive terminal prefix --no-pager (git --no-pager show <commit>); piped output is never paged.

Inspect working-tree changes

git status --short
git diff --check
git diff --stat
git diff -- <tracked-file> [tracked-file ...]
git diff --no-index -- /dev/null <new-untracked-file>

Before committing, inspect every intended tracked file and every intended new file. Do not stage unrelated untracked files merely because they appear in git status.

Non-zero exit codes are data, not failures: git diff --check exits 2 when it finds whitespace errors, and git diff --no-index exits 1 when the two sides differ (0 when identical).

17 vendored libraries under src/ext/ are git submodules, so a touched one shows up as M src/ext/<name> (the remaining src/ext/ entries are ordinary tracked files/dirs). Read a pointer change with git diff --ignore-submodules=none -- src/ext/<name>, hide these entries with git diff --ignore-submodules=all, list them with git submodule status, and never stage a src/ext/* gitlink unless updating it is the task.

Inspect commits

git show --stat --oneline <commit>
git show --format=fuller --find-renames <commit> -- <path> [path ...]
git diff <commit>^ <commit> -- <path> [path ...]

For a root commit, use git show <commit> because <commit>^ does not exist. Use git diff --name-status when only the changed-file inventory is needed.

For a merge commit, plain git show prints only the combined diff (files that differ from every parent), which usually looks nearly empty. Count parents with git rev-list --parents -n1 <commit>, then read per-parent changes with git show -m --stat --oneline <commit> or first-parent changes with git diff --stat <commit>^1 <commit> -- <path>.

update_sha256 — DX SDK zip update

Update the DX SDK zip name and its SHA256 pin in the two files that record them, via scripts/update_sha256.py (only scripts/sdks.cmake carries the hash).

python scripts/update_sha256.py [zip_name]

Behavior

ArgEffect
zip_name givenUses SDKs/<zip_name> as the local zip; must exist.
zip_name omittedParses zip name from LUISA_COMPUTE_DX_SDK in scripts/sdks.cmake.

Computes SHA256 of the local zip, then updates:

FileWhat changes
scripts/sdks.cmakeLUISA_COMPUTE_DX_SDK (URL + SHA256 as one CMake list)
scripts/find_sdk.luaname field under dx_sdk entry

Examples

# Provide zip name explicitly
python scripts/update_sha256.py dx_sdk_20260815.zip

# Auto-detect the zip name from scripts/sdks.cmake
python scripts/update_sha256.py

Notes

  • Zip must live under SDKs/ relative to repo root (the parent of scripts/).
  • Skips files not found with a warning (non-fatal) — see the exit-1 cases below.
  • No-op if all values are already up-to-date.
  • Write recipe, not inspection: it rewrites both files in place, and the URL written into sdks.cmake is always https://github.com/LuisaGroup/SDKs/releases/download/sdk/<zip_name>.
  • DX SDK only: the vk_sdk entry in scripts/find_sdk.lua and LUISA_COMPUTE_VK_SDK_DOWNLOAD_URL / LUISA_COMPUTE_VK_SDK_SHA256 in src/backends/vk/CMakeLists.txt are left untouched and must be edited by hand.
  • There is no --dry-run; only the first argument is read, so trailing arguments are silently ignored (--dry-run alone fails as an invalid zip name).
  • A missing SDKs/<zip>, a name without the .zip suffix, or an unparsable LUISA_COMPUTE_DX_SDK prints [ERROR] ... and exits 1. The non-fatal [WARN] skip only applies to a missing scripts/find_sdk.lua (or a missing scripts/sdks.cmake when a zip name is given); with no argument a missing scripts/sdks.cmake is fatal.

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.