Invest Remediateのロゴ

Invest Remediate

コミュニティ
erikaflowers
invest-remediate

AUDIT.mdを読み込み、段階的な修正計画を作成します。リスクの低いものから高いものへと並べた、各段階で完結するAIエージェント実行用プロンプトの連続です。各段階は1回のセッションで完了できる範囲に設定されます。

Add to TypingMind

概要

公開者erikaflowers
リポジトリinvestiture
スキル名invest-remediate
スター
55
フォーク
9
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/erikaflowers/investiture.git /tmp/investiture
mkdir -p .claude/skills
cp -r /tmp/investiture/.claude/skills/invest-remediate .claude/skills/invest-remediate
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Remediation Plan Generator

You read an audit report and produce a phased remediation plan. Each phase is a self-contained prompt that an agent (or human) can execute independently, in order, without needing to understand the whole audit.

Target

Read the audit at $ARGUMENTS. If no argument is provided, look for AUDIT.md in the current working directory.

Process

1. Parse the audit

Read AUDIT.md and extract:

  • Every finding (critical, significant, minor)
  • Every dead code entry
  • Every recommended remediation priority
  • The per-file classification table

2. Group findings into phases

Group findings into phases using these rules:

Phase ordering principle: lowest risk first, highest risk last.

Each phase should be:

  • Completable in one agent session (roughly 30-60 minutes of agent work)
  • Independent — completing phase N should not break anything that phase N+1 needs to find
  • Testable — there should be a way to verify the phase was done correctly

Standard phase order:

OrderCategoryRiskWhy this order
1Delete dead codeZeroRemoving unused files can't break anything. Reduces noise for subsequent phases.
2Fix naming & consistencyNear-zeroRenames and convention fixes. No behavior change.
3Add error boundaries / error handlingLowAdditive — wrapping existing code in safety nets doesn't change behavior.
4Add missing validation / security fixesLow-mediumTightening inputs. May surface bugs that were hidden by lax validation.
5Extract components / split monolithsMediumStructural refactoring. Same behavior, different organization. Tests should pass before and after.
6Performance fixesMediumMemoization, lazy loading, pagination. Behavior should be identical but faster.
7Architecture changesHighRedesigning data flow, splitting god files, changing state management patterns. Highest risk of regression.
8Feature completionVariableFinishing half-implemented features or removing stubs. Scope depends on the feature.

Not every audit will produce all 8 phase types. Skip phases that have no findings. Merge phases that are too small to justify a standalone session (e.g., if there's only one naming fix, fold it into dead code cleanup).

3. For each phase, generate a prompt

Each phase prompt must be self-contained. An agent receiving this prompt should be able to execute it without reading the original audit. The prompt must include:

Header:

## Phase [N]: [Title]
Risk: [zero | low | medium | high]
Estimated scope: [file count] files, [description of change type]
Prerequisite: [Phase N-1 completed, or "None"]

Context: 1-2 sentences explaining WHY this phase exists. What problem does it solve?

Tasks: Numbered list of specific changes. Each task must include:

  • The exact file path
  • What to do (delete, rename, extract, wrap, add, modify)
  • Line numbers or function names where applicable
  • What the result should look like (acceptance criteria)
  • What NOT to change (scope boundaries)

Verification: How to confirm the phase is complete:

  • Build still passes
  • Tests still pass (if tests exist)
  • Specific behavior unchanged
  • Specific files deleted / created / modified

Example phase prompt:

markdown
## Phase 1: Dead Code Cleanup
Risk: Zero
Estimated scope: 4 files, deletions only
Prerequisite: None

Remove files identified as unused in the audit. These files are not imported
by any other file and have been superseded by newer implementations.

### Tasks

1. **Delete** `src/components/KnowledgePanel.jsx` (140 lines)
   - Superseded by `src/pages/KnowledgePage.jsx`
   - Verify: grep the codebase for "KnowledgePanel" — should return 0 results after deletion

2. **Delete** `src/components/MemoryPanel.jsx` (155 lines)
   - Superseded by `src/pages/MemoriesPage.jsx`
   - Verify: grep for "MemoryPanel" — 0 results

3. **Delete** `src/labrador.css` (7348 lines)
   - Pre-refactor monolith. CSS was split into `src/css/*.css` files.
   - NOT imported by any file (verified: no import statements reference it)
   - Verify: `npm run build` still succeeds

4. **Delete** `.github/ISSUE_TEMPLATE/bug_report.md` and `.github/ISSUE_TEMPLATE/feature_request.md`
   - Superseded by `bug.yml` and `feature.yml` YAML form templates
   - Verify: remaining templates (`bug.yml`, `feature.yml`, `enhancement.yml`, `custom.md`, `config.yml`) still exist

### Verification
- [ ] `npm run build` passes (or equivalent build command)
- [ ] No new lint errors introduced
- [ ] Grep for deleted filenames returns 0 matches across codebase
- [ ] Net lines removed: ~7700

4. Write cross-phase notes

After all phases, include a section on:

  • Dependencies between phases — which phases must be done in order, which can be parallelized
  • Risk escalation — at what phase should the operator pause and verify before continuing
  • Bail points — phases where it's acceptable to stop and ship what's done so far

Output Format — REMEDIATION.md

Write the file at the same location as the audit (repo root by default).

markdown
# Remediation Plan

**Source:** AUDIT.md
**Generated:** [timestamp]
**Overall classification from audit:** [level]
**Total phases:** [N]
**Estimated total scope:** [file count] files across [phase count] phases

---

## Phase 1: [Title]
[full prompt as described above]

---

## Phase 2: [Title]
[full prompt]

---

[...continue for all phases...]

---

## Cross-Phase Notes

### Execution Order
[which phases are sequential vs parallelizable]

### Risk Checkpoints
[where the operator should pause and verify before continuing]

### Bail Points
[phases where it's safe to stop and ship partial remediation]

### What This Plan Does NOT Cover
[anything from the audit that was intentionally excluded — e.g., feature requests,
architectural opinions, or findings the auditor flagged as uncertain]

Rules

  • Every task must reference a specific file. No vague instructions like "improve error handling across the codebase." Instead: "Add try-catch to conversations.mjs handler body (lines 4-57) matching the pattern in cartridges.mjs (lines 70-75)."
  • Preserve the audit's commendations. If the audit says something is done well, the remediation plan should include a note: "Do NOT modify [thing] — it was flagged as well-implemented."
  • Don't invent findings. Only generate tasks for findings that appear in the audit. Do not add your own observations. If you notice something new while reading the audit, note it in "What This Plan Does NOT Cover."
  • Size phases for one session. A phase with 20 file changes is too large. Split it. A phase with 1 trivial change is too small. Merge it with an adjacent phase of similar risk level.
  • Include rollback guidance. For medium and high risk phases, note what to check if something breaks and how to revert (e.g., "If the build breaks after extracting ToolRegistry, revert the commit and check import paths").

Commit

When complete, save REMEDIATION.md and commit:

docs: phased remediation plan from audit

よくある質問

AIスキル「Invest Remediate」では何ができますか?

AUDIT.mdを読み込み、段階的な修正計画を作成します。リスクの低いものから高いものへと並べた、各段階で完結するAIエージェント実行用プロンプトの連続です。各段階は1回のセッションで完了できる範囲に設定されます。

TypingMindでInvest Remediateを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-remediateを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Invest Remediateを使えるAIモデルはどれですか?

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

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

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

AIスキル「Invest Remediate」は無料ですか?

erikaflowersがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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