git_add

Stage specific files or glob patterns for the next git commit.

8|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/OpenAuthority/clawthority --skill git-add
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git_add
Source: https://github.com/OpenAuthority/clawthority/tree/main/examples/skills/git_add
Command: npx skills add https://github.com/OpenAuthority/clawthority --skill git-add

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Staging the correct changes for a commit can be error-prone and time-consuming; this skill ensures only the specified files or glob patterns are staged, reducing accidental inclusions.

Core Features & Use Cases

  • Stage exact file paths (e.g., src/index.ts, README.md)
  • Stage glob patterns (e.g., .ts, src/**/.js)
  • Prepare a clean, accurate commit by controlling what goes into the index

Quick Start

Stage the exact files or patterns you want to include in the next commit, such as staging src/index.ts and README.md.

Frequently Asked Questions about git_add

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stage specific files for a git commit?

To stage specific files for a git commit, provide exact paths like src/index.ts or README.md. This prepares a precise commit set by validating the inputs and adding only the specified files to the staging index.

Can I stage glob patterns like *.ts in git?

Yes, you can stage glob patterns like *.ts or src/**/*.js in git. This allows you to prepare a clean commit by grouping multiple matching files into the index simultaneously.

What is the best way to avoid staging accidental changes in git?

The best way to avoid staging accidental changes in git is to specify exact file paths or glob patterns. This ensures only the specified files are staged, reducing accidental inclusions in your commit.

How do I validate existing paths before staging files in git?

To validate existing paths before staging files in git, the system checks that inputs are non-empty and exist. It returns the list of paths that were actually staged, ensuring accurate preparation for your commit.