agentleFS
morodomimorodomi/dev-crew/skills/commit/SKILL.md

commit

Skill1 starsChanged 55 days agoMITView on GitHub

変更をGitコミットしてTDDサイクルを完了する。REVIEWの次フェーズ。「コミットして」「commit」で起動。

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-branch, review-r and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    create-branch

    Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

    Also in 4 projects that use this

  • luischanciSkill

    review-r

    Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.

    Also in 3 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • AWSSkill

    issue

    Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.

    Also in 9 projects that use this

  • luischanciSkill

    validate-bib

    Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.

    Also in 3 projects that use this

  • +2 more from luischanci

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test List Completion Gate: Test List の TODO/WIP/DISCOVERED に未完了項目(- [ ] TC-)が残っていれば BLOCK。DISCOVERED残項目は review の DISCOVERED→Issue …

    line 14

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Workflow

Cycle Doc Gate

for f in docs/cycles/*.md; do [ -f "$f" ] || continue; fm=$(awk '/^---$/{c++;next} c==1{print}' "$f"); echo "$fm" | grep -q '^phase:' || continue; echo "$fm" | grep -q 'phase: DONE' && continue; printf '%s\t%s\n' "$(echo "$fm" | awk 'sub(/^updated: */,""){gsub(/T/," ");print;exit}')" "$f"; done | sort | tail -1 | cut -f2 → found: continue / not found: BLOCK(run spec)

Phase Ordering Gate: Progress Log に REVIEW の Phase completed 記録があるか確認。なければ BLOCK: 「先に review を実行してください」

Test List Completion Gate: Test List の TODO/WIP/DISCOVERED に未完了項目(- [ ] TC-)が残っていれば BLOCK。DISCOVERED残項目は review の DISCOVERED→Issue 処理に戻す。詳細: reference.md

Progress Log Completeness Gate: Progress Log に RED/GREEN/REFACTOR/REVIEW の全4フェーズの Phase completed 記録があるか確認。不足フェーズがあれば BLOCK。詳細: reference.md

Pre-COMMIT Gate (deterministic)

Cycle doc の Progress Log を確認し、以下が全て満たされなければ BLOCK:

  1. REVIEW完了: Progress Log に ### ... - REVIEW セクションがあり、Phase completed 記録がある
  2. Codex review記録 (which codex 成功時のみ): Progress Log に Codex + review の記録がある
  3. retro_status check: retro_status: captured / resolved で PASS。none で BLOCK (cycle-retrospective 実行)、field 不在も BLOCK(frontmatter に retro_status: none を足して cycle-retrospective を実行)
# 1. REVIEW チェック(phaseヘッダーにアンカー)
awk '/^### .* - REVIEW/,/Phase completed/' "$CYCLE_DOC" | grep -qi 'Phase completed'
# 2. Codex review チェック(codex利用可能時のみ)
which codex && grep -qiE 'Codex.*review|codex.*Review' "$CYCLE_DOC"

いずれか失敗 → BLOCK(不足ステップを案内)

Step 2: 変更確認 + Pre-commit Hook

git status && git diff --stat
ls .husky/pre-commit .git/hooks/pre-commit 2>/dev/null

Step 3: ドキュメント更新

ドキュメント条件更新内容
Cycle doc常にphase: DONE, Progress Log に COMMIT 記録
STATUS.md常に完了タスクを Completed に移動
README.mdskills/ or agents/ 変更時スキル一覧・構成の更新
AGENTS.mdskills/ or agents/ 変更時cross-toolセクションの更新
CLAUDE.mdskills/ or agents/ 変更時Skills セクションの更新
git diff --name-only HEAD | grep -qE '^(skills|agents)/' && echo "UPDATE" || echo "SKIP"

Progress Log追記(### {date} - COMMIT\n- {summary}\n- Phase completed) + frontmatter更新(phase/updated)

Step 4: コミットメッセージ生成 + 実行

Type: feat / fix / refactor / test。Cycle doc の issue 参照を含める。詳細: reference.md

コミットメッセージ末尾のトレーラーブロックに Cycle-Doc: <Cycle Doc Gate で解決した active cycle doc パス> を必ず含める(repo-relative パス 1 件、Co-Authored-By: と同じトレーラーブロック内)。詳細: reference.md

git add <files> && git commit -m "..."

Step 5: サイクル完了 + レビュー結果サマリー

TDDサイクル完了: [hash] - [機能名] を出力。

その後、Cycle doc Progress Log から REVIEW findings を読み取り、以下のサマリーを出力:

## Review Findings サマリー
- 指摘数: N件 (Accept: X, Reject: Y, DISCOVERED: Z)
- 主な修正: [Accept した指摘の要約]
- DISCOVERED: [スコープ外として起票した項目]

ユーザーが「何を指摘されて、どう修正したか」を commit 後に確認できる情報提供。 ゲートではなく情報出力のため、findings がなくても BLOCK しない。

Step 6: Auto-Learn (Optional)

DEV_CREW_AUTO_LEARN=1 かつ観測数 20件以上で learn スキル自動実行。詳細: reference.md

Reference

  • 詳細: reference.md
  • Gitコンベンション: .claude/rules/git-conventions.md(local-git-conventions.md があれば併せて)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.