Codex Skill Beginner's Guide: Automating Your Git Commit Workflow from Scratch
Support Content
## A. Local Git Commit Skill
> 1.1 .agents/skills/git-local-commit/SKILL.md
```
---
name: git-local-commit
description: Identifies the latest uncommitted changes based on the current conversation context and actual Git modifications, and silently performs a local commit (without push). Used when the user requests "commit current changes", "help me perform a local commit", "submit this round of modifications" or similar requests. If a commit has already been made in this conversation, continue from the current workspace breakpoint and only commit new uncommitted content.
---
# Git Local Commit
## Objectives
- Determine which files were actually modified in the current round based on the conversation context and `git status`/`git diff`.
- Prioritize committing only changes related to the current conversation; keep clearly unrelated changes uncommitted.
- Generate a concise and accurate commit message for the target commit content.
- Perform a silent local `git commit` without asking the user for additional information unless there is a significant risk of incorrect commits.
- Do not execute `git push`, switch branches, or rewrite history.
## Workflow
1. Establish breakpoints and modification boundaries.
- Execute: `git status --porcelain`
- Execute: `git branch --show-current`
- Optional execution: `git log -1 --oneline`
- If the result is empty: inform "There are no new uncommitted changes currently" and end the process.
- If this skill or a similar commit process has already been run in this conversation, do not use `--amend` or reprocess committed content; continue committing using the remaining content from the current `git status` as the breakpoint.
2. Identify actually modified files.
- Execute: `git diff --name-status`
- If there is staged content, execute: `git diff --cached --name-status`
- Execute: `git diff --stat`
- For untracked files, use the paths from `git status --porcelain`; only read the contents of small files when necessary for generating the message.
- Do not recursively scan unrelated directories or perform extra refactoring or formatting for the commit.
- Classify changes based on the current conversation context into: current-round related changes, clearly unrelated changes, and changes with undetermined boundaries.
- If clearly distinguishable, only commit current-round related changes and keep clearly unrelated changes uncommitted.
- If the user explicitly requests "commit remaining changes" or "commit all uncommitted content", take the remaining workspace changes as the commit target.
- If commit boundaries cannot be safely distinguished, confirm with the user first instead of committing all changes by default.
3. Generate commit message.
- First refer to the tasks completed in the current conversation, then verify with the actual file list and diff.
- The message should state "what was done" instead of only writing "update files".
- If conversation context is insufficient, generate the message directly based on file changes without interrupting the user due to lack of a subject.
- Prefer a single-line subject; use a second `-m` for 1-3 brief body lines when necessary.
4. Perform local commit.
- By default, only stage target files: `git add -- <target file paths...>`
- Only execute `git add -A` when the user explicitly requests to commit all remaining current changes.
- Before committing, execute: `git diff --cached --name-status` to confirm staged content matches the current commit target.
- Execute: `git commit -m "<summarized message>"`
- If `git add` or `git commit` fails due to sandbox/permission restrictions, immediately apply for `require_escalated` with the same command following Codex tool rules and retry; the reason only needs to state "Complete the local Git commit requested by the user".
- Do not promise to bypass the permission system; the goal is to make the commit process as painless and unobtrusive as possible within the rules.
5. Return commit results.
- Provide at minimum: branch name, commit short hash, final message.
- May include: key information from `git show --stat --oneline -1`.
## Constraints
- Do not use `--amend` unless explicitly requested by the user.
- Do not use destructive reset commands (e.g., `git reset --hard`).
- Do not execute `git push`.
- Do not create documents or modify business files; only commit existing current changes.
- Do not mix changes clearly unrelated to the current conversation into the commit.
- If the staging area already contains clearly unrelated content, do not commit directly and confirm with the user first.
- Only handle one-time local commits of "current uncommitted content" without extending additional processes.
```
> 1.2 .agents/skills/git-local-commit/agents/openai.yaml
```
interface:
display_name: "Git Local Commit"
short_description: "Silently perform local commits based on conversation and actual changes"
default_prompt: "Use $git-local-commit to submit the latest uncommitted changes locally with a message based on this conversation and the actual Git diff."
```
## B. Skill Shared Symbolic Links
> 2.1 Initialization - Check Status
```
ls -ld ~/.gemini/antigravity/skills
ls -ld ~/.codex/skills/DP_skills
```
> 2.2 Initialization - Delete Old Links // Manually confirm file safety before deletion; back up existing files if present
```
rm -rf ~/.gemini/antigravity/skills
rm -rf ~/.codex/skills/DP_skills
```
> 2.3 Create Symbolic Links // `~/eeBox/eeLib/ai_support_lib/skills/DP_skills` needs to be replaced with your local shared folder path
```
ln -s ~/eeBox/eeLib/ai_support_lib/skills/DP_skills ~/.gemini/antigravity/skills
ln -s ~/eeBox/eeLib/ai_support_lib/skills/DP_skills ~/.codex/skills/DP_skills
```
Summary Content
# Codex Skill Beginner's Guide: Automating Your Git Commit Workflow from Scratch
## Overview
Welcome to the world of Codex Skills! This video will guide you from scratch on how to build and use Codex Skills to automate repetitive development tasks. We'll use one of the most frequent operations in a developer's daily workflow—`git commit`—as a practical example to teach you how to create an intelligent, automated commit tool.
---
## 🚀 Beginner's Guide: Creating Your First Project-Level Skill
This section paves the way for your learning journey, covering the fundamentals of Skills from concept to practice.
1. **Preparation**
* Visit the companion article for the video to get all the necessary code and files.
* Create a new test project and, following the tutorial, place the `Skill. md` and `openai. yaml` files in the correct directory (`. agents/Skills/git-local-commit`) .
2. **Core Concepts Explained**
* **Project-Level vs. Global-Level Skills**: Understand the scope difference between the two. This demo starts with a **project-level Skill**, which only affects the current project.
* **Skill File Structure**:
* `Skill. md`: The core logic file of the Skill, defining its behavior and workflow.
* `openai. yaml`: The configuration file that tells Codex the Skill's name, description, and default prompt.
3. **Deep Dive into `Skill. md`**
* **`description`**: The crucial part! It tells the AI when it should invoke this Skill.
* **Goal**: Clearly defines the task the Skill is meant to accomplish.
* **Workflow**: The specific steps the Skill takes to perform its task. For `git commit`, the flow is:
1. `git status`: Check the status of files.
2. `git diff`: Analyze the content of file changes.
3. Generate Commit Message: Intelligently draft a commit message based on the `diff` content.
4. `git commit`: Execute the commit.
5. Feedback: Inform the user of the commit result.
* **Constraints**: Define the Skill's behavioral boundaries to ensure it executes safely and accurately.
---
## 💡 Live Demo: Three Scenarios of Intelligent Git Commits
Through three carefully designed cases, you'll see how the Skill intelligently handles `git commit` requests in different situations.
* **Scenario 1: Standard Commit**
* The AI modifies files within the conversation and directly calls the Skill to complete the commit.
* **Scenario 2: Boundary Test**
* Both **AI-modified files** and **developer-modified files** exist. The AI accurately identifies and **commits only the changes relevant to the current conversation**, showcasing its powerful contextual understanding.
* **Scenario 3: Handling Ignored Files**
* Building on Scenario 2, you can explicitly instruct the AI to summarize and commit the previously ignored manual changes.
---
## 🌟 Advanced Technique: Sharing Skills Across IDEs with Symlinks
Are you tired of maintaining multiple copies of the same Skill in different environments like Codex and Antigravity? This section teaches you a manage-it-once, use-it-anywhere solution.
1. **The Problem**: How to reuse the same set of Skills across multiple IDEs without copy-pasting?
2. **The Solution**: **Global Skills + Symbolic Links (Symlinks) **.
3. **The Steps**:
* Create a central directory (e. g. , `DP_Skills`) to store all your globally shared Skills.
* Locate the specific directory where your IDE (like Codex or Antigravity) stores global Skills.
* Use the symbolic link command (`ln -s`) to "mount" your central management folder into the IDE's global Skill directory, achieving a single source of truth.
---
## Conclusion
This video not only teaches you how to create a practical `git commit` Skill but, more importantly, it opens the door to the world of AI-powered programming automation. By mastering the use of both project-level and global Skills, you'll be able to build your own powerful toolset and elevate your development efficiency to a new level.
Related Contents
Unlocking Your 'Jarvis' Moment...
Duration: 00:00 | DPThe Ultimate Codex AI Cache Cl...
Duration: 00:00 | DPMajor Codex Subscription Shake...
Duration: 00:00 | DPOpenAI's Shocking Offer: Get $...
Duration: 00:00 | DPThe Ultimate Guide to Managing...
Duration: 00:00 | DPCodex Pro Tip: Instantly Switc...
Duration: 00:00 | DPThe Ultimate Beginner's Guide ...
Duration: 00:00 | DPAntigravity Quota Slashed: 150...
Duration: 00:00 | DPThe AI Open-Source LLM 'Closed...
Duration: 00:00 | DPAI Beginner's Guide: How to Se...
Duration: 00:00 | DPMajor News: Google Gemini 3.1 ...
Duration: 00:00 | DPOpenAI's Surprise Move? Free C...
Duration: 00:00 | DPMajor Change to GitHub Copilot...
Duration: 00:00 | DPAntigravity Pro Plan Reversal:...
Duration: 00:00 | DPAntigravity Pro Plan Quotas Sl...
Duration: 00:00 | DPOpenAI Shakes Up Codex: Free A...
Duration: 00:00 | DPGoogle Antigravity's March 202...
Duration: 00:00 | DPGoogle Antigravity Account Ban...
Duration: 00:00 | DPAntigravity Mass Unban: Crisis...
Duration: 00:00 | DPIs the Antigravity Pro Quota I...
Duration: 00:00 | DPGoogle AI IDE Antigravity: Dee...
Duration: 00:00 | DPClaude Opus 4.6 on Antigravity...
Duration: 00:00 | DPAntigravity Not Working? Solve...
Duration: 00:00 | DPAI Showdown: Codex 5.3 vs. Opu...
Duration: 00:00 | DPRecommended
Real Work AI Coding: Deepseek ...
11:24 | 163A serendipitous comparison video from my work scen...
Claude Code: Design Pro HTML P...
32:40 | 411How to use Claude Code to design professional HTML...
Starsector 0.97 Web Hullmods D...
02:46 | 130Starsector Online Tools Website (https://sst.lib00...
Synology DSM Tip: Easily Chang...
00:00 | 274In Synology DSM, sharing links default to your pri...