Communitygithub.com

ComeOnOliver/skillshub

コミットメッセージ、ブランチ命名規則、プルリクエストテンプレートが規則に従っていることを保証します。コミット、ブランチ、PRの作成時や、ユーザーがgitワークフローに言及した際に使用します。

skillshub とは?

このスキルは、チームのGitワークフローを強制し、Committer、ブランチ名、プルリクエストがプロジェクトの標準(Conventional Commits、命名規則、PRテンプレートなど)に準拠していることを確認します。主に開発者やAIエージェントを対象としており、Claude Code、Cursor、CodexなどのAIコーディングアシスタントと統合して、Git操作をガイドします。スキルは既存のプロジェクト規則(.github/テンプレート、CONTRIBUTING.md、既存のコミットパターンなど)を自動検出し、Conventional Commits形式のコミットメッセージの作成、適切なブランチ名の提案、PRテンプレートの適用、コミットフックの設定、Changelogの生成、保護ブランチのベストプラクティスの推奨を行います。また、変更の説明(何をしたかではなく、なぜ変更したか)や参照課題のリンクなど、ベストプラクティスに沿ったコミットテンプレートも提供します。コマンドや環境変数、URL、インラインコードは翻訳せず、元のまま維持します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/crazydubya/git-workflow-enforcer

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Gitワークフロー強制ツール

一貫したGitワークフロー(コミットメッセージ、ブランチ命名、PRプロセス)を強制します。

使用時

  • コミットまたはブランチを作成するとき
  • コードレビューまたはPR作成時
  • ユーザーが「git workflow」「commit message」「branch naming」「pull request」に言及したとき

手順

1. 既存の規則を検出する

以下を確認してください:

  • .github/ または .gitlab/ テンプレート
  • CONTRIBUTING.md
  • 既存のコミットメッセージパターン
  • ブランチ命名パターン

2. Conventional Commits

フォーマット: type(scope): description

タイプ:

  • feat: 新機能
  • fix: バグ修正
  • docs: ドキュメント
  • style: 書式設定、セミコロンの欠落
  • refactor: コードの再構築
  • perf: パフォーマンス改善
  • test: テストの追加
  • chore: メンテナンス、依存関係

例:

feat(auth): add OAuth2 login support
fix(api): handle null response in user endpoint
docs(readme): update installation instructions
refactor(utils): simplify date formatting logic

3. ブランチ命名

一般的なパターン:

feature/user-authentication
bugfix/login-error-handling
hotfix/critical-security-patch
release/v1.2.0
chore/update-dependencies

検証項目:

  • 小文字とハイフンを使用
  • タイプを接頭辞として付加
  • 説明的な名前
  • 該当する場合は課題番号:feature/123-add-dark-mode

4. コミットメッセージの検証

良いコミットの例:

feat(payments): integrate Stripe payment gateway

- Add Stripe SDK configuration
- Implement payment intent creation
- Add webhook handler for payment events
- Update tests for payment flow

Closes #456

チェック項目:

  • 件名は50文字以内
  • 本文は72文字で折り返し
  • 件名と本文の間に空行
  • 命令形で記述("added"ではなく"add")
  • 課題/チケットへの参照

5. PRテンプレート

.github/PULL_REQUEST_TEMPLATE.md を作成:

## Description
<!-- What does this PR do? -->

## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update

## Testing
<!-- How was this tested? -->

## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Comments added for complex code
- [ ] Documentation updated
- [ ] Tests added/updated
- [ ] All tests passing
- [ ] No new warnings

## Related Issues
Closes #

6. コミットフック

pre-commit:

#!/bin/sh
# .git/hooks/pre-commit

# Run linter
npm run lint

# Run tests
npm test

# Check for sensitive data
if git diff --cached | grep -i "password\|api_key\|secret"; then
  echo "Error: Possible sensitive data detected"
  exit 1
fi

commit-msg:

#!/bin/sh
# .git/hooks/commit-msg

commit_msg=$(cat "$1")

# Check conventional commit format
if ! echo "$commit_msg" | grep -qE "^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?: .+"; then
  echo "Error: Commit message must follow Conventional Commits format"
  echo "Example: feat(auth): add login feature"
  exit 1
fi

7. 既存のコミットを検証

最近のコミットがパターンに従っているか確認します:

git log --oneline -20 | grep -v "^[a-f0-9]\{7\} (feat|fix|docs|style|refactor|perf|test|chore)"

8. 変更ログの生成

Conventional Commitsから生成:

# Using standard-version
npx standard-version

# Or manually group by type
git log --pretty=format:"%s" | grep "^feat" > features.txt
git log --pretty=format:"%s" | grep "^fix" > fixes.txt

9. 保護ブランチ

GitHub設定:

  • PRレビューを必須にする
  • ステータスチェックを必須にする
  • 署名付きコミットを必須にする
  • プッシュできる人を制限する
  • 線形履歴を必須にする

10. ベストプラクティス

  • アトミックなコミット: 1コミットで1つの論理的な変更
  • 説明的なメッセージ: 「何を」ではなく「なぜ」を説明する
  • 頻繁なコミット: 大きく稀なコミットよりも、小さく頻繁なコミット
  • クリーンな履歴: マージ前にsquash/rebaseを行う
  • コミットへの署名: セキュリティのためにGPG署名
  • 課題の参照: トラッキングシステムにリンクする

Gitコミットテンプレート

.gitmessage を作成:

<type>(<scope>): <subject>

<body>

<footer>

# Type: feat, fix, docs, style, refactor, perf, test, chore
# Scope: component or file affected
# Subject: imperative, lowercase, no period, ≤50 chars
# Body: explain what and why, not how, wrapped at 72 chars
# Footer: breaking changes, issue references

テンプレートとして設定:

git config --global commit.template ~/.gitmessage

サポートファイル

  • templates/PULL_REQUEST_TEMPLATE.md
  • templates/commit-msg-hook.sh
  • templates/.gitmessage

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

関連スキル