trunk-first-repo

Official

Initialize Git with trunk-based dev.

Authorcodebeltnet
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill establishes a new project directory as a Git repository, enforcing a strict trunk-based development workflow from the very first commit to prevent direct commits to the main branch and ensure all code changes are reviewed via pull requests.

Core Features & Use Cases

  • Git Initialization: Sets up a new Git repository in the current directory.
  • Trunk-Based Workflow: Enforces a PR-first approach where main is sacred and only accepts changes through pull requests.
  • Versioned Feature Branches: Creates feature branches prefixed with project versioning (e.g., v0.1.0/my-feature).
  • Use Case: Use this skill when starting a new project or initializing an existing folder as a Git repository to immediately adopt best practices for collaborative development and maintain a stable main branch.

Quick Start

Initialize the current folder as a git repository using the trunk-first workflow, setting the version prefix to 'v0.1.0' and the branch context to 'init-project'.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: trunk-first-repo
Download link: https://github.com/codebeltnet/agentic/archive/main.zip#trunk-first-repo

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.