commit-assisted-by

commit-assisted-by is a skill for Claude Code, Codex from fluxcd/agent-skills. It costs 98 tokens per session (1,279 once invoked), scanned A, original, Apache-2.0.

Git commit instructions for recording that an AI assistant helped create a commit.

In plain words
What is it for?
Adding an Assisted-by line to commits and keeping commit subjects and explanatory text in a consistent format.
Why use it?
They make AI involvement visible in the commit history and set basic rules for clear, signed-off commit messages.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fluxcd/agent-skills/commit-assisted-by
Any agent
npx skills add fluxcd/agent-skills --skill commit-assisted-by
Clone the repo
git clone --depth 1 https://github.com/fluxcd/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit-assisted-by

README.md
[![agentmods](https://agentmods.dev/badge/skills/fluxcd/agent-skills/commit-assisted-by.svg)](https://agentmods.dev/skills/fluxcd/agent-skills/commit-assisted-by)
Your own site
<a href="https://agentmods.dev/skills/fluxcd/agent-skills/commit-assisted-by"><img src="https://agentmods.dev/badge/skills/fluxcd/agent-skills/commit-assisted-by.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.01279
Opus 5 $0.00049 $0.00639
Sonnet 5 $0.00020 $0.00256
Haiku 4.5 $0.00010 $0.00128

Measured 3d ago against content hash 795288463729, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-assisted-by scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/safety-check.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/skills/commit-assisted-by/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit Assisted-by trailer

Record the assisting agent's involvement in a commit by adding an Assisted-by: <agent-name>/<model-id> git trailer. The <agent-name> identify the specific AI assistant (CLI/harness) and <model-id> is the LLM version that contributed to the commit. This disclosure provides transparency about AI involvement in code changes.

In the command examples below, substitute <agent-name>/<model-id> with your own values before running anything.

Mode 1 — commits you create yourself

When you create a commit in a session, limit the commit subject to 50 characters. Use the imperative mood in the subject line (e.g., "Add support for X" instead of "Added support for X").

If the commit message body is needed to explain what and why, wrap it at 72 characters. Avoid verbose explanations in the body, be as concise as possible while still conveying the necessary information.

Pass --trailer directly on the commit command. This is the clean path and avoids amend noise:

git commit -s -m "Add support for X" --trailer "Assisted-by: <agent-name>/<model-id>"

Note that all commits must be signed off with a real human name and email to meet the DCO requirement. Never use your agent's name or a pseudonym in the sign-off or co-author fields.

Mode 2 — commits that appear outside your own git commit invocations

Sometimes a commit lands on HEAD that you did not run yourself — the user invoked git via a shell escape (e.g. Claude Code's ! git commit ...) or a separate terminal. Your only window is after the fact.

Run the bundled safety-check script before amending. It prints safe, or skip:<reason> if HEAD is already pushed, already trailered, a merge, or has a rebase/cherry-pick/revert/bisect in progress.

Invoke it with the script's full path — resolve scripts/safety-check.sh against the directory this SKILL.md was loaded from, not the current working directory (the two are almost never the same):

<skill-dir>/scripts/safety-check.sh

Read the full file on GitHub · 105 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 105 lines · 98 tokens per session scan A 795288463729

Subscribe to this mod's changes

commit-assisted-by is a skill published in the GitHub repository fluxcd/agent-skills (216 stars, last pushed 2d ago), licensed Apache-2.0. It adds 98 tokens to every session and 1,279 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories