X git

From x-cmd/skill · View interactive version

X git is an AI agent skill from the GitHub repository x-cmd/skill. This skill provides comprehensive Git and code hosting platform management tools through x-cmd CLI, including GitHub, GitLab, Codeberg, Forgejo integration, and Git hooks management. This skill should be used when users need to manage Git repositories, work with code hosting platforms, automate Git

How to use this skill

Skill file

x-cmd Git and Code Hosting Tools

Overview

This skill provides professional Git and code hosting platform management capabilities through the x-cmd ecosystem. The tools enable developers, DevOps engineers, and open source contributors to manage repositories, collaborate on code, automate workflows, and integrate with multiple Git hosting services directly from the terminal.

Available Tools

GitHub Management (gh)

Comprehensive GitHub platform integration and management.

GitLab Management (gl)

Complete GitLab platform integration and administration.

Codeberg Management (cb)

Lightweight CLI for Codeberg open source hosting.

Forgejo Management (fjo)

Self-hosted Git platform management for Forgejo instances.

Git Hooks Management (githook)

Git hooks configuration and automation.

Git and Code Hosting Use Cases

Repository Management

Collaboration and Code Review

Issue Tracking and Project Management

CI/CD and Automation

User and Team Administration

Installation and Setup

Prerequisites

Platform Authentication

GitHub Setup
x gh init  # Interactive configuration
x gh --cfg token=<github-token>

Get GitHub token from: https://github.com/settings/tokens

GitLab Setup
x gl init  # Interactive configuration
x gl --cfg token=<gitlab-token>

Get GitLab token from: https://gitlab.com/-/profile/personal_access_tokens

Codeberg Setup
x cb init  # Interactive configuration
x cb --cfg token=<codeberg-token>

Get Codeberg token from: https://codeberg.org/user/settings/applications

Forgejo Setup
x fjo init  # Interactive configuration
x fjo --cfg token=<forgejo-token>

Configure Forgejo instance and token

Git Hooks Configuration

# Apply hooks configuration
x githook apply

# Clear hooks configuration
x githook clear

Integration with Other Tools

AI and Code Assistance

Data Processing and Analysis

Development Workflows

Troubleshooting

Common Issues

Performance Optimization

Security Best Practices

Support and Resources

For additional help:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.