netresearch/agent-git-workflow 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netresearch/agent-git-workflow

Composer 安装命令:

composer require netresearch/agent-git-workflow

包简介

Netresearch AI skill for Git branching strategies, Conventional Commits and CI/CD pipelines

README 文档

README

Expert patterns for Git version control workflows including branching strategies, commit conventions, collaborative workflows, and CI/CD integration.

🔌 Compatibility

This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.

Supported Platforms:

  • ✅ Claude Code (Anthropic)
  • ✅ Cursor
  • ✅ GitHub Copilot
  • ✅ Other skills-compatible AI agents

Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.

Features

  • Branching Strategies: Git Flow (feature/release/hotfix branches), GitHub Flow (simple feature branches), trunk-based development, release management patterns
  • Commit Conventions: Conventional Commits standard, semantic versioning integration, commit message best practices, atomic commit patterns
  • Collaborative Workflows: Pull request best practices, code review processes, merge strategies (merge, squash, rebase), conflict resolution patterns
  • CI/CD Integration: GitHub Actions workflows, GitLab CI patterns, branch protection rules, automated versioning
  • Git Hooks: Pre-commit hooks for linting and testing, commit message validation
  • Advanced Operations: Interactive rebase, cherry-picking, stashing, reflog recovery

Installation

Marketplace (Recommended)

Add the Netresearch marketplace once, then browse and install skills:

# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace

npx (skills.sh)

Install with any Agent Skills-compatible agent:

npx skills add https://github.com/netresearch/git-workflow-skill --skill git-workflow

Download Release

Download the latest release and extract to your agent's skills directory.

Git Clone

git clone https://github.com/netresearch/git-workflow-skill.git

Composer (PHP Projects)

composer require netresearch/git-workflow-skill

Requires netresearch/composer-agent-skill-plugin.

npm (Node Projects)

npm install --save-dev \
  @netresearch/agent-skill-coordinator \
  github:netresearch/git-workflow-skill

Requires @netresearch/agent-skill-coordinator, which discovers the skill in node_modules and registers it in AGENTS.md via a postinstall hook. For pnpm, also allowlist the coordinator's postinstall:

{
  "pnpm": {
    "onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"]
  }
}

Usage

This skill is automatically triggered when:

  • Establishing branching strategies (Git Flow, GitHub Flow, Trunk-based)
  • Implementing Conventional Commits for semantic versioning
  • Configuring pull request workflows
  • Integrating Git with CI/CD systems
  • Setting up Git hooks for quality gates
  • Resolving merge conflicts
  • Configuring branch protection rules

Example queries:

  • "Set up Git Flow workflow"
  • "Configure conventional commits with semantic versioning"
  • "Create GitHub Actions workflow for CI/CD"
  • "Set up pre-commit hooks for linting"
  • "Configure branch protection rules"
  • "Implement pull request review process"

Commands

  • /pr-finish [PR] — drive a pull request to a fully-green, merged state: preflight the merge gate in one block, rebase, fix CI locally, reply to and resolve every review thread, update the title/description, and merge when green. Operates on the named PR or the current branch's PR.

Structure

git-workflow-skill/                       # abbreviated — key files only
├── skills/git-workflow/
│   ├── SKILL.md                          # Skill metadata and core patterns
│   ├── ...                               # checkpoints.yaml, evals/, hooks
│   └── references/
│       ├── commit-conventions.md         # Commit message standards
│       ├── pull-request-workflow.md      # PR and review processes
│       ├── ci-cd-integration.md          # CI watching, git mirrors
│       └── advanced-git.md               # Advanced Git operations
├── commands/
│   └── pr-finish.md                      # /pr-finish slash command
└── scripts/
    └── verify-harness.sh                 # Harness verification script

Expertise Areas

Commit Conventions

  • Conventional Commits standard
  • Semantic versioning mapping (feat/fix/etc.)
  • Signed commits + DCO sign-off
  • Atomic commit patterns

Collaborative Workflows

  • Default-branch check before PR/scripting operations
  • Atomic commits, no squash unless asked
  • Merge strategies, review-thread resolution, merge gate
  • Conflict resolution patterns

CI/CD Integration

  • Watching CI from the CLI (gh pr checks, gh run watch)
  • Git mirror repository sync (git push --mirror gotchas)

Conventional Commits Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types:

  • feat: New feature (MINOR version bump)
  • fix: Bug fix (PATCH version bump)
  • docs: Documentation only
  • style: Code style (formatting, no logic change)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Adding/updating tests
  • build: Build system changes
  • ci: CI configuration changes
  • chore: Maintenance tasks
  • revert: Reverting changes

Breaking Changes:

feat!: remove deprecated API endpoints

BREAKING CHANGE: The /api/v1/users endpoint has been removed.
Use /api/v2/users instead.

Quick Reference

Daily Workflow

# Start of day
git checkout main && git pull
git checkout -b feature/my-feature

# During development
git add -p                    # Stage hunks interactively
git commit -m "feat: ..."     # Commit with conventional message

# Ready for review
git push -u origin HEAD
gh pr create

# After merge
git checkout main && git pull
git branch -d feature/my-feature

Emergency Fixes

# Undo last commit (keep changes)
git reset --soft HEAD~1

# Undo last commit (discard changes)
git reset --hard HEAD~1

# Revert a specific commit
git revert <commit-hash>

# Fix last commit message
git commit --amend -m "new message"

# Fix last commit (add forgotten file)
git add forgotten-file.txt
git commit --amend --no-edit

Related Skills

  • enterprise-readiness-skill: Git workflow is part of CI/CD maturity
  • security-audit-skill: Git hooks for security checks

License

This project uses split licensing:

  • Code (scripts, workflows, configs): MIT
  • Content (skill definitions, documentation, references): CC-BY-SA-4.0

See the individual license files for full terms.

Credits

Developed and maintained by Netresearch DTT GmbH.

Made with ❤️ for Open Source by Netresearch

netresearch/agent-git-workflow 适用场景与选型建议

netresearch/agent-git-workflow 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 30, 最近一次更新时间为 2025 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 netresearch/agent-git-workflow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 netresearch/agent-git-workflow 我们能提供哪些服务?
定制开发 / 二次开发

基于 netresearch/agent-git-workflow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 30
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 30
  • Watchers: 1
  • Forks: 5
  • 开发语言: Shell

其他信息

  • 授权协议: (MIT AND CC-BY-SA-4.0) 9b002e7371191b27b3517b9698103dbf528505e5
  • 更新时间: 2025-12-16