build-git

Initialize Git repositories and manage staged commits in WordPress builds.

27|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill build-git
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-git
Source: https://github.com/dr-robert-li/cowork-wordpress-expert/tree/main/skills/build-git
Command: npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill build-git

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the integration of Git version control into the WordPress build process, ensuring that all custom code and configurations are tracked, committed, and managed effectively.

Core Features & Use Cases

  • Git Initialization: Automatically initializes a Git repository in the build directory.
  • Dynamic .gitignore: Generates a comprehensive .gitignore file that excludes WordPress core files, common cache/upload directories, and reinstallable components while tracking custom themes and plugins.
  • Staged Commits: Provides a helper function to commit changes after each significant build stage with descriptive messages.
  • Use Case: When building a custom WordPress site, this skill ensures that every step—from initial scaffolding to content installation—is captured in Git history, allowing for easy rollbacks and tracking of changes.

Quick Start

Use the build-git skill to initialize a git repository and manage commits during the WordPress build process.

Frequently Asked Questions about build-git

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

FAQPage Schema
How do I add Git version control to my WordPress build pipeline?

To add Git version control to a WordPress build pipeline, initialize a repository in the build directory and use a dynamic .gitignore to exclude core files while tracking custom themes and plugins.

What is the best way to track custom WordPress code in Git without committing core files?

The best way to track custom WordPress code without committing core files is by generating a dynamic .gitignore that automatically excludes WordPress core, cache directories, and reinstallable components.

Can I automate staged commits during a WordPress site build?

Yes, you can automate staged commits during a WordPress site build by using a helper function that commits changes after each significant build stage with descriptive conventional commit messages.

Why do I need Git for WordPress deployment automation?

You need Git for WordPress deployment automation to ensure every step from initial scaffolding to content installation is captured in history, allowing for easy rollbacks and tracking of configuration changes.

Does Git version control work with WordPress modification workflows?

Yes, Git version control works with WordPress modification workflows by supporting both initial builds and modification updates, managing staged commits and updating build manifests for new configurations.

What are the limitations of automating Git commits for WordPress builds?

A limitation of automating Git commits for WordPress builds is that the dynamic .gitignore excludes WordPress core files and cache directories, meaning only custom themes, plugins, and configurations are tracked in repository history.