git-staging

git-staging is a skill for Claude Code from aws-samples/sample-agent-assisted-sdlc. It costs 14 tokens per session (168 once invoked), scanned A, original, Apache-2.0.

A Git staging skill that controls which files may be added to a commit. Git staging is the step where selected file changes are prepared before they are saved in a commit.

In plain words
What is it for?
Use it before commits to inspect status, stage explicit paths, review the staged summary, and remove anything outside the issue's scope.
Why use it?
It prevents repository infrastructure and unrelated files from being accidentally committed, especially when the working tree contains agent configuration and hook files.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions .claude-plugin.

Part of the sdlc-claude plugin — 6 skills, 3 agents, 1 hook shipped together

Good fit Use it before commits to inspect status, stage explicit paths, review the staged summary, and remove anything outside the issue's scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-agent-assisted-sdlc/git-staging
About the project

Agent-Assisted SDLC is a sample software development pipeline in which an AI coding assistant reads an issue, changes a codebase, and opens a pull request through Amazon Bedrock AgentCore. Developers use it to automate work from an issue to a proposed code change, with a shared orchestration process and repository-specific guidance. The catalogue entries provide the skills, agents, plugin, hook, and instruction used by this workflow.

aws-samples/sample-agent-assisted-sdlc · 47 stars · on GitHub

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.

Any agent
npx skills add aws-samples/sample-agent-assisted-sdlc --skill git-staging
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-agent-assisted-sdlc

Made for: Claude Code.

Or install sdlc-claude, the plugin that ships this one along with the rest of its 6 skills, 3 agents, 1 hook.

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 git-staging

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/git-staging/github.svg)](https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/git-staging)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/git-staging"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/git-staging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-staging

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/git-staging"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/git-staging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00014 $0.00168
Opus 5.5 $0.00006 $0.00067
Sonnet 5.5 $0.00003 $0.00034
Haiku 4.5 $0.00001 $0.00017

Measured 5d ago against content hash 7a793eb1ed19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-staging 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 5d ago.

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.

coding-assistants/claude-code/plugin/skills/git-staging/SKILL.md · 15 lines

What it actually says

NEVER run git add -A or git add .. The working tree contains orchestrator infrastructure that MUST NOT be committed: .dev-claude/, hooks/, skills/, .claude/, .claude-plugin/, settings.json, .mcp.json, agentcore-test.txt

Stage explicitly using only the file paths you created or modified for the issue.

Before each commit:

  1. git status --short — confirm only in-scope files are listed
  2. git diff --cached --stat — confirm the staged set matches the issue scope
  3. If anything outside scope is staged, git restore --staged <path> before committing
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. 5d ago First seen · 15 lines · 14 tokens per session scan A 7a793eb1ed19

Subscribe to this mod's changes

git-staging is a skill published in the GitHub repository aws-samples/sample-agent-assisted-sdlc (47 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 14 tokens to every session and 168 once invoked, about $0.0001 per session on Opus 5.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-10-20.