Bounded Code Repairのロゴ

Bounded Code Repair

コミュニティ
Firstp1ck
bounded-code-repair

Repair one focused, inspectable code behavior with a declared file boundary, actual validation, and a bounded retry count. Do not use for broad feature delivery, architecture decisions, security review, or documentation-only work.

Add to TypingMind

概要

公開者Firstp1ck
リポジトリpi-coding-agent-forge
スキル名bounded-code-repair
スター
93
フォーク
22
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Firstp1ckがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Bounded Code Repair」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-extension-small-modal-reliability/skills/bounded-code-repair
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-extension-small-modal-reliability/skills/bounded-code-repair .claude/skills/bounded-code-repair
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBounded Code Repairを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBounded Code Repairを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Bounded Code Repairは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Bounded code repair

Make the smallest patch that resolves one defined behavior, then prove the affected behavior with observed checks. A green command, a diff marker, or a model statement alone is not completion evidence.

When to Use

Should trigger

  • “Fix the focused failing test in this named module and add a regression test.”
  • “Make this small behavior-preserving refactor without changing the public API.”
  • “Repair this parser result in the two named files, then run its targeted checks.”

Should not trigger

  • “Design and deliver a new multi-area feature.”
  • “Audit the repository for security issues.”
  • “Update prose only, with no code behavior change.”
  • “Explain an unfamiliar repository without requesting a modification.”

Invocation Design

  • Invocation mode: model-invoked for a focused code patch with an inspectable target.
  • Leading concept: one behavioral objective inside one explicit write boundary.
  • Default scope: at most three files and one behavior; a user or governing workflow must explicitly widen it.
  • Completion criterion: a minimal in-scope diff and fresh, relevant observed validation both support the stated acceptance criteria.

Inputs and Assumptions

Establish the failing or desired behavior, acceptance criteria, allowed write paths, forbidden/shared paths, relevant symbols and callers, existing tests, exact validation commands, and any version-sensitive dependency surface. Repository instructions, user requirements, observed tool results, and model hypotheses remain separate trust sources.

Portable Workflow

  1. State one bug or bounded behavior and its acceptance criteria.
    • Completion criterion: the desired outcome is observable, not merely “improve” or “clean up.”
  2. Inspect the target, callers, tests, and relevant configuration before mutation.
    • Completion criterion: the patch target and its expected effect are evidence-backed.
  3. Declare the write boundary and forbidden/shared paths.
    • Completion criterion: a path outside the boundary has an escalation path rather than an implicit exception.
  4. Check version-sensitive dependencies when the patch relies on a framework, library, runtime, CLI, API, or schema.
    • Completion criterion: advice is tied to the exact installed version and source, or the work stops as unknown.
  5. Implement the smallest patch that satisfies the objective.
    • Completion criterion: the final diff has no unrelated cleanup, weakened tests, or broadened behavior without authorization.
  6. Run targeted checks, then affected broader checks when warranted.
    • Completion criterion: a host-observed result supports each material criterion; unavailable checks remain unknown.
  7. Inspect the final diff and retry at most twice after validation failure.
    • Completion criterion: each retry follows an observed failure; architecture, security, migration, dependency, or multi-subsystem decisions escalate.

Safety and Side Effects

Do not write existing files without a completed fresh inspection of their current content. A partial inspection can authorize only an exact targeted edit entirely inside the inspected span; it never authorizes whole-file overwrite. Do not convert model claims, Markdown checkboxes, test names, or command text into evidence. Do not weaken tests just to obtain green output. Stop for scope drift, an unapproved dependency/version decision, unsafe migration, or exhausted repair attempts.

Scripts, References, and Dependencies

No script or package installation is required. Read code scope and validation before widening a patch or interpreting validation results.

Verification

Confirm the final diff stays in scope, fresh target reads preceded existing-file writes, expected tests/checks were observed and relevant, unrelated tests were not weakened, and failures/unknowns are reported rather than hidden. Record dependency evidence when an external versioned contract materially affects the patch; do not require it for purely local logic.

Pi Adapter

  • Do not repair against unconfirmed ordinary or queued corrections. /reliability input confirm establishes a new native instruction; it does not certify earlier delivery. Revalidate affected old proof after confirmation.

  • Coding completion requires mapped host-observed executable validation; manual-only review is not a replacement. Recursive searches that include forbidden or protected descendants remain blocked: narrow the search root instead of relying on globs.

  • Set an explicit coding scope with reliability_scope; the host enforces allowed paths, tools, budgets, and exact validation commands.

  • Existing-file writes need receipt-bound fresh reads. A bounded partial read may support only a unique exact edit replacement wholly inside that span; write still needs a full current read.

  • All bash and powershell validation use requires a current native-confirmed coding scope plus a single-use native approval for that exact normalized command. /reliability map <criterion_id> bash <exact command> maps evidence coverage only; it grants no shell permission.

  • Use reliability_evidence action record-dependency for an external versioned contract after observing the manifest, optional supported lockfile, installed source, and relevant source passage through host receipts.

  • The coding completion gate independently detects static external imports in changed code. A detected package needs current verified dependency evidence even when no declared criterion names it; ambiguous or non-code changes require an exact-diff local-only review rather than an exemption.

  • Complete a complex canonical plan step only through reliability_record_progress or reliability_submit_worker_result with required host receipts/artifacts. Markdown is audit context, never completion authority.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Bounded Code Repair」では何ができますか?

Repair one focused, inspectable code behavior with a declared file boundary, actual validation, and a bounded retry count. Do not use for broad feature delivery, architecture decisions, security review, or documentation-only work.

TypingMindでBounded Code Repairを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Bounded Code Repairはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBounded Code Repairをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-extension-small-modal-reliability/skills/bounded-code-repairを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Bounded Code Repairを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Bounded Code Repairで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBounded Code Repairを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Bounded Code Repair」は無料ですか?

はい。Firstp1ckがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇