git-publish

Stage relevant files, run build and audit checks, and push semantic commits.

3|Updated Dec 13, 2019
One-click install
npx skills add https://github.com/Christos-Hadjinikolis/Christos-Hadjinikolis.github.io --skill git-publish-christos-hadjinikolis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-publish
Source: https://github.com/Christos-Hadjinikolis/Christos-Hadjinikolis.github.io/tree/main/.codex/skills/git-publish
Command: npx skills add https://github.com/Christos-Hadjinikolis/Christos-Hadjinikolis.github.io --skill git-publish-christos-hadjinikolis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken, risky, or incomplete git commits and pushes by guiding you through this repository’s hook-aware workflow and build/audit checks.

Core Features & Use Cases

  • Hook-aware commit workflow: Aligns with the repo’s installed pre-commit/pre-push hooks and their blocked paths like .env, wip/, and _site/.
  • Safe staging and validation: Encourages staging only relevant files and running make build and make audit for site-affecting changes (content/config/layouts/includes/Sass/assets).
  • Semantic commit message guidance: Helps you write clear, scoped, imperative semantic commits suitable for review and history.

Quick Start

Use the git-publish skill to commit and optionally push your current repo changes after verifying status, staging only the task-related files, running make build/make audit when needed, and using a semantic commit message.

Frequently Asked Questions about git-publish

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

FAQPage Schema
How do I safely commit and push repository changes without breaking the build?

To safely commit and push repository changes, stage only task-related files, run make build and make audit for site-affecting edits, honor pre-commit hook constraints, and use a semantic commit message before pushing to your branch.

What files should I avoid staging when committing repo changes?

When committing repo changes, avoid staging forbidden artifacts like .env, wip/, and _site/ directories, as pre-commit and pre-push hooks will block these paths to prevent broken or risky commits.

When do I need to run make build and make audit before a git push?

You need to run make build and make audit before a git push when your changes affect site content, configuration, layouts, includes, Sass, or assets, ensuring the publication workflow remains stable and review-ready.

How do pre-commit hooks enforce staging discipline for semantic commits?

Pre-commit hooks enforce staging discipline by blocking forbidden paths like .env and _site/, ensuring only relevant files are staged, which forces you to produce clean, scoped, imperative semantic commit messages suitable for history.

Does this git workflow support Jekyll build validation before publishing?

Yes, this git workflow supports Jekyll build validation by requiring make build and make audit checks to pass for site-affecting edits before finalizing your semantic commit and optionally pushing to the remote branch.

Why are my git pushes failing due to forbidden artifacts in the staging area?

Git pushes fail when forbidden artifacts like .env, wip/, or _site/ are staged, because pre-commit and pre-push hooks block these paths to maintain staging discipline and prevent incomplete or risky repository updates.