Commit work

From FilenCloudDienste/filen-rs · View interactive version

Commit work is an AI agent skill from the GitHub repository FilenCloudDienste/filen-rs. Create high-quality git commits: review and stage only the intended changes, split them into logical commits, and write clear Conventional Commit messages. Use when asked to commit, stage changes, write a commit message, or split work into several commits.

How to use this skill

Skill file

Commit Work

Goal: commits that are easy to review and safe to ship — only intended changes, logically scoped, with messages that say what changed and why.

Inputs to ask for (if missing)

Workflow

  1. Inspect — git status, git diff, and git diff --stat when the change is large.
  2. Decide boundaries — feature vs refactor, formatting vs logic, tests vs production code, dependency bumps vs behavior change, pre-existing-bug fix vs new work.
  1. Format before staging — run the repo's formatter (table below) so a commit hook does not reject the staged tree.
  2. Stage deliberately — name the paths; git add -p for files with mixed changes; unstage with git restore --staged <path>.
  3. Review — git diff --cached: no secrets or tokens, no env files, no debug logging, no unrelated churn, no build output (target/, dist/, node_modules/).
  4. Describe the staged change in 1-2 sentences (what + why). If you cannot, it is too big or mixed — go back to step 2.
  5. Write the message — type(scope): summary, blank line, body of what/why (not an implementation diary), BREAKING CHANGE: footer if needed. Multi-line: write the text to a file and git commit -F /abs/path/to/msg. Template: references/commit-message-template.md.
  6. Verify — use the verify-changes skill, or the commands below for this repo's stack.
  7. Repeat until the working tree is clean.
  8. Before handing a branch over, run the house-review skill on it.

Per-language checks — detect by manifest (`Read` tool)

| Manifest present | Format | Lint | Test |

|---|---|---|---|

| Cargo.toml (+ rustfmt.toml) | cargo fmt --all --check (fix: cargo fmt -p <crate>) | cargo clippy | cargo test --lib |

| package.json | the format script / prettier | the lint script, tsc --noEmit | the test script |

| pyproject.toml | ruff format --check | ruff check | pytest |

| Package.swift | swift-format lint | swift build | swift test |

| go.mod | gofmt -l on changed files | go vet ./... | go test ./... |

Read the manifest for the scripts it actually declares; prefer a repo-wide check/ci script when one exists, and scope to the package you touched (-p <crate>, that package's own scripts).

Never

Shell rules

Deliverable

Provide:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.