gener8v/gener8v.claude-skills.engineering

コミット前に、変更が触れたすべての文書を同じコミット内で更新するか、文書の変更が不要であることを一行で確認します。古いテキスト、不足しているドキュメント、複数箇所に分散した事実を検出します。

gener8v.claude-skills.engineering とは?

このスキルは、コード変更とその文書が常に同じコミット内で同期されるようにするためのものです。古くなったテキスト、不足しているドキュメント、複数箇所に重複した情報を検出し、修正します。Claude CodeをはじめとするAIエージェントツール上で動作し、コミット前やPR前、または「ドキュメントは最新ですか」「この変更のドキュメントを更新してください」「READMEの変更を見逃していませんか」といった質問に応答します。スキルは、変更内容を確認し、リポジトリ独自のルール(CLAUDE.mdなど)に従い、各変更を担当する文書にルーティングし、古い参照をgrepで検索して修正し、最後にコードと文書をまとめてコミットします。仕様(SPEC.mdなど)と矛盾する変更があった場合は、ユーザーに報告し、仕様を先に変更するよう促します。このスキルは、大規模な文書セットの作成(`documentation-bootstrap`)や、パイプライン文書(`.gener8v/`以下)の編集を目的としていません。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gener8v/gener8v.claude-skills.engineering/tree/HEAD/skills/documentation-sync

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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

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

ドキュメント

ドキュメント同期

コードとその文書は、同じコミット内で一緒に変更されます。間違った文書は、文書がないことよりも悪いです。

文書が間違ってしまう3つの方法

  • 古くなっている。 文書が古い動作、名前、またはコマンドを説明したままになっている。
  • 不足している。 新しい動作、新しいコマンド、または新しい設定に文書がない。
  • 重複している。 同じ事実が複数の場所にある。後で一方が変更されても、もう一方が変更されない。

手順

  1. 何が変更されたかを確認する。
    git diff --cached --stat
    git diff --stat
    
  2. リポジトリ独自のルールを見つける。 CLAUDE.md、CONTRIBUTING.md、docs/README.md を読む。どの文書がどのトピックを担当するかが書かれていれば、それに従う。これは手順3より優先される。
  3. 各変更をその担当文書にルーティングする。 resources/doc-routing.md を使用する。1つの事実には1つのホームがある。他の文書はそこにリンクする。
  4. 古い参照を見つける。 名前を変更または削除した場合(関数、フラグ、エンドポイント、設定、ファイルパス、コマンド):
    git grep -n '<古い名前>'
    
    文書内の各ヒットを修正する。grep を再度実行する。事後条件は、ヒットがないか、または残す必要があるヒットのみ(例えば、リネームに関するCHANGELOGエントリ)であること。
  5. 編集する。 コード変更によって間違った、または不完全になった箇所のみを変更する。関連のないセクションを書き換えない。明確な表現のために、simple-english スキルがインストールされていればそれを使用する。
  6. 一緒にコミットする。 文書の変更をコードと一緒にステージングする。それらを後続のPRに入れない。
  7. 報告する。 変更した文書のリストを作成する。変更が必要なかった場合は、一行でその理由を述べる。例:「ドキュメント変更なし:内部リファクタリングであり、動作、コマンド、設定に変更はありません。」

担当文書が明確でない場合

ユーザーに質問する。質問を避けるために新しい文書を作成しない。

有用な判断基準:それは現在の状態についての事実(設定、バージョン、ステータス)ですか? それはリファレンス文書またはステータス文書に属します。それは手順(誰かが従う手順)ですか? それはその手順を担当するガイド、ランブック、またはスキルに属します。

仕様が優先される

リポジトリに SPEC.md(engineering:spec-writing を参照)または .gener8v/specifications/ 以下のgener8v仕様がある場合、それらが意図された動作を定義します。

  • 変更が仕様の通りである場合、仕様の編集は不要です。
  • 変更が仕様に矛盾する場合、停止します。ユーザーに伝えます。まず、その所有者を通じて仕様を変更します:SPEC.md には engineering:spec-writing、パイプライン仕様には gener8v:specification。コードに合わせて仕様を黙って編集しないでください。

パイプライン文書

.gener8v/ 以下のファイルは手動で編集しないでください。gener8vパイプラインスキルがそれらを作成および更新します。

関連スキル

  • engineering:documentation-bootstrap:段落だけでなく文書全体が不足している場合。
  • engineering:github-pr-merge:PRの前にこのチェックを実行します。
  • engineering:github-release:このスキルが最新に保つCHANGELOGの Unreleased セクションを読み取ります。

Individual skills in this repo

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

gener8v/gener8v.claude-skills.engineering

Find and run a project's test, lint, type-check, build and dev-server commands, read the results correctly, and seed a throwaway database when UI work needs realistic data. Never seeds the project's real or default database. Use before 'run the tests', 'lint this', 'does it build', 'start the app so I can see it', 'seed some demo data', and before you claim that a change works. Not for deployment or CI pipeline design; use the project's own deploy tooling for those.

gener8v/gener8v.claude-skills.engineering

Create or top up a project's documentation set: list what exists, let the user choose which document types to add, collect one shared fact sheet from the code, write the documents (in parallel when there are several), then check them against each other and against the code. Use when asked to 'bootstrap the docs', 'start the documentation', 'we have no README or ARCHITECTURE', or 'fill in the missing docs'. Not for the per-commit update of existing documents (documentation-sync), and not for gener8v pipeline documents (gener8v:brownfield and gener8v:planning make those).

gener8v/gener8v.claude-skills.engineering

Put work on the correct branch before the first edit. Finds the base branch, starts a well-named branch from the current remote tip, and sets up one worktree per agent for parallel work. Use at the start of any change to a tracked file, such as 'start on issue 42', 'fix this typo', 'set up branches for these three tickets', or before you start sub-agents that edit code. Not for opening or merging a PR (github-pr-merge) or for history rewrites and other risky git commands (git-safety).

gener8v/gener8v.claude-skills.engineering

Approval gate for git commands that destroy work or skip checks: force-push, --no-verify, signing bypass, reset --hard, clean -f, discarding uncommitted edits, branch or tag deletion, rewriting pushed commits and push --mirror. Each one needs the user's explicit approval at that moment; an earlier approval never carries over. Also covers a secrets check before a commit and what to do when a secret is already committed. Use before any of these commands, or when asked to 'force push', 'skip the hooks', 'throw away my changes' or 'delete that branch'. Not for normal branching (git-branching) or the PR flow (github-pr-merge).

関連スキル