跳到正文
cccskills
免费在 GitHub 公开

pre-pr-check

This skill should be used when the user asks to "PR を出す前に確認して", "check if this branch is ready to merge", "run pre-PR checks", "PRを作る前にチェックして", or wants to verify a branch before opening a pull request. Executes verification commands, validates Conventional Commits format, and confirms documentation is updated, then reports whether gh pr create is safe to run.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(2)

  • SKILL.md2.9 KB
  • README.md796 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

PR 作成前に品質を確認するチェックリスト。全項目クリアで「PR作成OK」と報告し、問題があれば修正を促す。

Step 1: 変更の把握

git diff main...HEAD --stat でブランチ全体の変更ファイル一覧を取得する。 変更がない場合は「作業ブランチに変更がありません」と報告して終了する。

Step 2: 検証コマンドの実行

以下の優先順位で検証コマンドを特定して実行する:

  1. CLAUDE.md に記載されたコマンド(最優先)
  2. package.json の check / test / check:types / check:lint スクリプト
  3. 言語固有のデフォルト(tsc --noEmit、eslint . など)

検証コマンドが見つからない場合はその旨を報告してスキップする。

失敗時の対処:

  • 実装に起因するエラー → 修正して再実行
  • 環境依存エラー・既存の失敗 → ユーザーに報告してスキップ(PR作成は可能と判断)

Step 3: コミットメッセージの確認

git log main...HEAD --format="%s" で対象ブランチのコミット一覧を取得する。

各コミットが Conventional Commits 形式に準拠しているか確認する:

  • 形式: <type>(<scope>): <description>
  • 有効な type: feat, fix, chore, refactor, docs, test, perf, ci, style, revert

準拠していないコミットがある場合は一覧を提示してユーザーに確認を促す。

Step 4: ドキュメント更新の確認

git diff main...HEAD --name-only で変更ファイルを確認し、以下を判定する:

  • ソースコードが変更されているか(src/、lib/、app/ 等)
  • docs/・CLAUDE.md・README.md が更新されているか

ソースコードの変更があるのにドキュメントが無変更の場合、更新が必要かどうかを確認する。 「更新不要」と判断した場合はその理由を添えて続行する。

Step 5: 結果の報告

項目結果
検証コマンド✅ / ❌ / ⚠️ スキップ
コミット形式✅ / ⚠️ 要確認
ドキュメント✅ / ⚠️ 要確認

全項目クリア: 「PR作成OK です。gh pr create で PR を作成してください。」と報告する。 問題あり: 修正すべき項目を番号付きで提示し、修正後に再実行するよう促す。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

This skill should be used when the user asks to "プロジェクトを解析して", "コードベースを調べてドキュメント化して", "移行作業の準備をして", "新機能実装の前にプロジェクトを整理して", "analyze this codebase", "document the project structure", "既存プロジェクトのCLAUDE.mdを作って", or wants to prepare CLAUDE.md and architecture docs before a migration, feature development, or onboarding.

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "このエラーを直して", "help me debug this", "fix this stack trace", "なぜこのエラーが出るの", "CI が落ちた", or pastes an error message or stack trace and wants help diagnosing it. Classifies the error type, identifies related files, and proposes up to three root-cause hypotheses with concrete fix plans.

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

doc-sync

免费

This skill should be used when the user asks to "ドキュメントを更新して", "sync the docs", "update CLAUDE.md after this change", "実装に合わせてドキュメントを直して", or notices that docs have drifted from the codebase. Diffs git history to identify what changed, proposes targeted updates to CLAUDE.md, docs/architecture.md, docs/requirements.md, and README.md, then applies only approved changes.

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

explain

免费

Explain selected code or a specified file/function in plain language, including what it does, why it exists, and potential pitfalls

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "このファイルを変えたら何が壊れる?", "what depends on this function", "影響範囲を調べて", "show me what imports this module", or wants to understand the blast radius before modifying a shared utility, exported type, or public API. Traces import/require references up to two levels deep and lists affected test files.

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "このIssueを実装して", "implement this issue", "fix this bug", "このタスクをやって", "Issue

中文简介正在准备中。当前显示原文说明。

t6adev/claude-code-tools32026年4月9日 更新

查看 t6adev 的全部技能

报告此技能的问题