create-fix-pr

作成者: launchdarkly

根本原因を調査し、報告されたバグや可観測性の指摘に対する最小限の修正PRを作成します。

npx skills add https://github.com/launchdarkly/ai-tooling --skill create-fix-pr

Create a fix PR

Overview

You are investigating a problem and filing a pull request that resolves it. This builds on the investigate skill — do the investigation properly first, don't jump to a fix without evidence.

Use the gh CLI for all GitHub operations (auth comes from your gh login) and standard Bash / Edit / Read / Grep for everything else.

Workflow

  1. Investigate. Use the investigate skill to find the root cause. Cite the exact trace ID, log line, error group, and code location that pins the problem.
  2. Confirm there isn't already a PR open. Before filing anything, search GitHub for an existing open PR addressing the same issue — gh pr list --search "<keywords>" --state open. If one exists, direct the user to it — do not create a duplicate.
  3. Judge whether a PR is the right tool. If the fix requires a config change, a flag flip, or a change outside the code you can access, describe the solution instead of filing a PR.
  4. Get the repo. Clone it if you don't already have it locally — gh repo clone <owner>/<repo>.
  5. Check for repo conventions. Read agents.md or CLAUDE.md at the repo root — these describe repo-specific rules your fix needs to respect.
  6. Make the change. Minimal diff. Don't refactor surrounding code, don't add features, don't fix unrelated bugs you happen to notice. One PR, one fix.
  7. Set git identity before committing — see pr-conventions.md.
  8. Commit, push, and file the PR. See pr-conventions.md for branch naming and PR body rules.

What's a good fix

  • Changes the smallest possible number of lines
  • Preserves current production behavior unless the bug IS the current behavior
  • Doesn't depend on assumptions you can't verify from the evidence
  • Would pass a code-review skill's check if one existed

What isn't

  • Sweeping refactors unrelated to the reported problem
  • Speculative null checks or error handling added "while you're in there"
  • Changes to tests that hide the underlying bug
  • Bumping dependency versions to fix a symptom

Restricted tools

If gh isn't installed or gh auth status shows no auth, surface the error to the user and stop — don't try alternative auth schemes.

Never include in a PR

  • GitHub access tokens or any other secrets or credentials.
  • Debugging logs or print statements you added during investigation.

Follow the repo's own commit and PR conventions for everything else.

launchdarklyのその他のスキル

aiconfig-online-evals
launchdarkly
非推奨のリダイレクト — このスキルはonline-evalsに改名されました。このスキルは使用しないでください。代わりにonline-evalsを呼び出してください。古い参照のためにのみ保持されています…
aiconfig-tools
launchdarkly
非推奨のリダイレクト — このスキルはtoolsに改名されました。このスキルは使用しないでください。代わりにtoolsを呼び出してください。aiconfig-toolsへの古い参照が引き続き機能するようにのみ保持されています…
launchdarkly-flag-targeting
launchdarkly
LaunchDarklyの機能フラグターゲティングを制御します。フラグのオン/オフ切り替え、パーセンテージロールアウト、ターゲティングルール、個別ターゲット、フラグのコピーなどを含みます。
launchdarkly-flag-drift
launchdarkly
コード内のSDKフォールバックデフォルトとLaunchDarklyのデフォルトルール(フォールスルー)との間のドリフトを検出して調整します。フラグのデフォルトが…の場合に使用します。
snippets
launchdarkly
プロンプトスニペットを作成・管理します — 設定バリエーションのプロンプト内で参照される再利用可能なテキストブロック。一般的な指示、ペルソナ、ガードレールを保持します…
create-skill
launchdarkly
LaunchDarkly agent-skillsリポジトリに新しいスキルを追加します。新しいSKILL.mdを作成するとき、カタログにスキルを追加するとき、またはリポジトリの規約に準拠するときに使用します。
skill-name
launchdarkly
このスキルが何を行うか、エージェントがいつ使用すべきかを明確に説明します。エージェントが関連タスクを識別するのに役立つキーワードを含めてください。
agent-graphs
launchdarkly
エージェントグラフを作成・管理する — ハンドオフロジックを持つエッジで接続された設定の有向グラフ。設定がルーティングされるマルチエージェントワークフローを構築する際に使用します…