Logo di Invest Remediate

Invest Remediate

Community
erikaflowers
invest-remediate

Legge un AUDIT.md e genera un piano di correzione articolato in fasi: una sequenza di prompt autonomi, eseguibili da un agente e ordinati dal rischio più basso a quello più alto. Ogni fase è definita in modo da poter essere completata in una singola sessione.

Add to TypingMind

Panoramica

Pubblicato daerikaflowers
Repositoryinvestiture
Nome della skillinvest-remediate
Stelle
55
Fork
9
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da erikaflowers su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Invest Remediate in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-remediate
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Invest Remediate in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Invest Remediate non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Invest Remediate non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA Invest Remediate?

Legge un AUDIT.md e genera un piano di correzione articolato in fasi: una sequenza di prompt autonomi, eseguibili da un agente e ordinati dal rischio più basso a quello più alto. Ogni fase è definita in modo da poter essere completata in una singola sessione.

Perché usare Invest Remediate su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Invest Remediate è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Invest Remediate in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-remediate. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Invest Remediate?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Invest Remediate?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Invest Remediate: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Invest Remediate è gratuita?

È pubblicata su GitHub da erikaflowers. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇