本文へ移動
cccskills
無料GitHub で公開

git-workflow

Standard Git commit, verification, push, and CI watch workflow for md-editor

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editorスター 40(GitHub 40 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Git Workflow & Pre-Push Quality Protocol

This skill guides agents through the mandatory lifecycle for branching, committing, verifying, pushing code, and monitoring CI checks in the md-editor workspace.

1. Branch Naming Protocol (Mandatory)

All git branches MUST follow the <category>/<kebab-case-description> pattern:

  • Features: feature/<name> (⚠️ STRICTLY FORBIDDEN to use feat/<name>; feat is for commit types, while branches must use feature/)
  • Bug Fixes: fix/<name> or hotfix/<name>
  • Refactoring: refactor/<name>
  • Documentation: docs/<name>
  • Performance: perf/<name>
  • CI / Build: ci/<name> or chore/<name>

Examples

  • ✅ feature/desktop-r2-distribution
  • ✅ feature/mobile-editor-core
  • ✅ fix/table-cell-editing
  • ✅ refactor/split-desktop-view
  • ❌ feat/desktop-r2-distribution (Do NOT abbreviate to feat/)
  • ❌ update-something (Missing category prefix)

2. Commit Protocol (Mandatory Conventional Commits)

All commit messages MUST strictly adhere to the Conventional Commits specification:

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

[optional body]

[optional footer(s)]

Allowed Types

  • feat: A new feature or capability (e.g. feat(renderer): add dynamic plugin registration)
  • fix: A bug fix (e.g. fix(wysiwyg): calibrate code-block drag alignment)
  • perf: A code change that improves performance (e.g. perf(parser): bypass ast rebuild for ui plugins)
  • refactor: A code change that neither fixes a bug nor adds a feature (e.g. refactor(plugins): decouple syntax plugins to subpackage)
  • docs: Documentation only changes (e.g. docs: update plugin development guide)
  • test: Adding or correcting tests (e.g. test(core): add regression tests for markdown fidelity)
  • chore: Changes to build process, dependencies, or tooling (e.g. chore: update dependencies)
  • style: Formatting or whitespace fixes (e.g. style: format markdown tables)
  • ci: Changes to CI configuration or workflow files (e.g. ci: add automated desktop release)

Disallowed Patterns

  • ❌ No arbitrary capitalized sentences (e.g. Update some files, Fixed bug)
  • ❌ No Lore trailers (Constraint:, Rejected:, Directive:, Confidence:)
  • ❌ No vague messages (e.g. wip, misc fixes)

3. Pre-Push Verification (Mandatory)

Before executing git push, the agent MUST run and ensure the following checks pass:

# 1. Check linting, Prettier formatting, and Rust cargo clippy/fmt
pnpm lint

# 2. Run unit tests across all workspaces (unit tests must pass 100%; e2e is optional)
pnpm test

# 3. Verify TypeScript types across all workspaces
pnpm typecheck

Alternatively, run the unified verification script:

pnpm verify

If ANY of these commands fail:

  • DO NOT proceed to push.
  • Investigate and fix the issue first.
  • Re-run verification until all commands exit with code 0.

4. Push and Post-Push CI Monitoring (Mandatory)

After pushing changes to the remote branch:

git push origin <branch>

Automated CI Watch

If the current branch has an associated open Pull Request, the agent MUST automatically monitor CI status:

pnpm pr:watch
# or:
gh pr checks <pr_number> --watch

Reporting

  • If all checks pass: Report the success and active PR link to the user.
  • If any check fails: Inspect the failed step log (gh run view --log-failed), identify the failure reason, and either fix it or provide a detailed diagnostic report.

5. Pull Request Merge & Branch Cleanup Protocol (Mandatory)

When merging a Pull Request using GitHub CLI (gh pr merge), ALWAYS include the --delete-branch (-d) flag to automatically delete both the remote branch and local tracking branch after merge:

# Recommended squash-and-merge with automatic branch deletion:
gh pr merge <pr_number_or_url> --squash --delete-branch

# Or with auto-merge enabled (automatically merges and deletes branch once CI passes):
gh pr merge <pr_number_or_url> --squash --auto --delete-branch

Safety Rules for Branch Deletion:

  • Protected Branches: NEVER delete main, dev, or beta.
  • Merging with --delete-branch ensures already-merged feature/fix branches do not accumulate as stale branches.
  • After merging, switch back to main and pull the latest changes:
    git checkout main && git pull origin main
    

6. Multi-Platform Release Protocol

For multi-platform releases, version bumps, changelog maintenance, and production deployment, refer to the dedicated Release Skill:

Release Command Quick Reference

PlatformCommandTag PatternCI Workflow
Desktoppnpm release:desktopv*.github/workflows/release-desktop.yml
Androidpnpm release:androidandroid-v*.github/workflows/release-mobile.yml
Webpnpm release:webweb-v*.github/workflows/release-web.yml
Sitepnpm release:siteN/AVercel CLI Prebuilt Deploy
Workerpnpm deploy:workerN/ACloudflare Worker CLI

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

[OMX] Run an anti-slop cleanup/refactor/deslop workflow

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

analyze

無料

[OMX] Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says 'analyze', 'investigate', 'why does', 'what's causing', or needs grounded cross-file explanation before any changes are proposed.

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

ask

無料

[OMX] Ask a local external advisor CLI (Claude or Gemini) and capture a reusable artifact

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

autopilot

無料

[OMX] Strict autonomous loop: $deep-interview -> $ralplan -> $ultragoal (+ $team if needed) -> $code-review -> $ultraqa

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

[OMX] Stateful validator-gated research loop with native-hook persistence

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

[OMX] Durable professor-critic research workflow over Codex goal mode without reviving deprecated omx autoresearch

日本語の概要は準備中です。原文の説明を表示しています。

wmasfoe/md-editor402026年10月28日 更新

wmasfoe のスキルをすべて見る

このスキルの問題を報告する