Logo di Pre Ship Security

Pre Ship Security

Community
MartinOlivero
pre-ship-security

Questa skill va usata subito prima di distribuire o pubblicare in produzione: esegue una rapida revisione di sicurezza del codice finito, non un audit approfondito. Tra le frasi che la attivano: «pronto per la pubblicazione», «prima di distribuire», «controllo di sicurezza prima del lancio», «è sicuro pubblicare?», «checklist pre-lancio», «verifica la sicurezza», «mi è sfuggito qualcosa?», «pronto per la produzione», «rafforza la sicurezza prima del lancio», «antes de subir a producción». Esegue npm audit e una scansione per individuare segreti, ricontrolla il codice in base alla checklist di prevenzione OWASP e ricorre a strumenti di audit specializzati solo se l’app è ad alto rischio.

Add to TypingMind

Panoramica

Pubblicato daMartinOlivero
Repositorysaas-builder
Nome della skillpre-ship-security
Stelle
4
Fork
2
File inclusi
Solo istruzioni
LicenzaMIT
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 MartinOlivero su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Pre Ship Security 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/MartinOlivero/saas-builder/tree/main/skills/pre-ship-security
  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/MartinOlivero/saas-builder.git /tmp/saas-builder
mkdir -p .claude/skills
cp -r /tmp/saas-builder/skills/pre-ship-security .claude/skills/pre-ship-security
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Pre Ship Security 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 Pre Ship Security 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 Pre Ship Security 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à.

Pre-Ship Security

This is the last security gate before production: a quick, repeatable review of the finished code. It verifies that nothing slipped through what secure-coding prevented during the build.

Analogy: secure-coding is the seatbelt you wear while driving. A deep audit (Trail of Bits, fuzzing) is the garage that x-rays every part. This skill is the walk-around inspection before a road trip — lights, tire pressure, fuel. Quick, done every time, catches the obvious before you pull out of the driveway.

It does not replace a professional audit for high-risk apps — its job is to tell you when you need one. Security is never 100%; this skill is honest about that.

Trigger

Run when the user is about to deploy, merge to main, launch, or asks "is this safe to ship?". It pairs with secure-coding (which ran during the build) and deployment (which ships it).

Discovery (max 3 questions, only if unknown)

  1. What does the app handle — payments, personal data (PII), health, or crypto/keys?
  2. Is this the first production launch, or an incremental deploy?
  3. Public-facing or internal-only?

Step 1 — Automated quick scans

  • npm audit --omit=dev (or pnpm audit) → fix high/critical advisories; don't ship known-vulnerable dependencies.
  • Secret scan: npx gitleaks detect (and check git history) → no API keys, tokens, or .env committed. If something is found, rotate the secret — deleting the commit is not enough, it's in the history.
  • Confirm .env, .env*.local, *.pem, *.key are git-ignored.
  • Client-bundle leak check: grep the built JS for known key prefixes; on Vite, anything that isn't VITE_-prefixed must be absent from the bundle.

Step 2 — Review the diff against the prevention checklist

Re-check the finished code — the secure-coding rules, now verified instead of assumed:

  • Authz on every endpoint? Each route checks the user and resource ownership (no IDOR). A route with no explicit check is the bug.
  • Input validated? Every handler parses input with a zod .strict() schema; no req.body spread into a DB write (mass assignment).
  • No raw SQL concatenation — parameterized queries / ORM only.
  • CORS is an explicit allowlist, not * with credentials.
  • Security headers present (Helmet or platform headers): CSP, HSTS, X-Content-Type-Options.
  • Webhooks verify signatures (Stripe, etc.) and read the raw body correctly.
  • Errors don't leak stack traces in prod; logs contain no PII, tokens, or passwords.
  • Auth routes rate-limited; passwords hashed with bcrypt/argon2.

Step 2b — Outside-in checks (from a terminal, against the deployed app)

Reading the code tells you what it should do. These tell you what it does. Each one has found a real hole in an app whose tests were green:

  • Protected routes, no session: curl -s -o /dev/null -w '%{http_code} %{size_download}\n' <url>. A redirect with a large body is a data leak.
  • Each guarded endpoint, both ends: rejected without the credential and accepted with it. A 403 alone can be a typo.
  • The database, with the public key: read each non-public table; write to a row you do not own. On Supabase, InsForge or any Postgres + auto-API backend, run rls-audit.
  • Secrets in the wrong files: scan docs/, *.md, *.json exports and the git history — not only source.
  • Environment variables: pull production and grep for trailing newlines (see deployment).
  • Headers: CSP without 'unsafe-inline' in script-src, HSTS, frame-ancestors. Then confirm analytics still records.
  • Legal and policy pages: return 200 on the live domain.
  • Shared demo account: try to spend money and to write through the API, not through the UI.

Record what you ran and what came back. A check nobody can re-run is an opinion.

Step 3 — Risk gate (escalate when needed)

Based on Discovery answer 1, decide whether a deeper review is required — and be explicit that deep auditing is out of this plugin's scope on purpose:

  • Handles money, PII at scale, health data, or crypto/keys → recommend a deep audit before or shortly after launch, and point to specialized tooling:
    • Static analysis: Semgrep / CodeQL (e.g. the static-analysis or Trail of Bits skills).
    • Dependency / supply-chain: Dependabot, Snyk, supply-chain auditors.
    • Fuzzing: only if there's parsing, crypto, or native code — AFL++, libFuzzer (the testing-handbook skills). Not relevant to a typical CRUD SaaS.
  • Money, auth, user data or deploys were touched and nobody outside the agent confirmed the result → the proof-first plugin (/plugin marketplace add MartinOlivero/proof-first) sends a clean-context verifier to gather evidence observable from outside and records it. Optional; without it, do Step 2b by hand.
  • Standard low-risk CRUD SaaS → the checks above are a reasonable bar for launch. Say so honestly: this is a review, not a guarantee.

Legal exposure

If the product has users or a legal entity in Argentina, the EU, the US, Brazil or the UK, run the legal-docs plugin (/plugin marketplace add MartinOlivero/saas-legal-docs) in audit mode before shipping. Two obligations from 2025 that almost no product has implemented yet, because they are newer than most templates:

  • Botón de arrepentimiento and botón de baja de servicio (Disposición 954/2025) — both required "a simple vista, en lugar destacado y en el primer acceso", with no prior login. A link in the footer no longer satisfies this.
  • Any provider outside the AAIP adequacy list (the US is not on it) needs the international transfer declared with a legal basis.

That skill also compares the published legal text against the actual code, which catches the worst class of problem: a policy promising encryption, deletion or "we don't share data" that the codebase contradicts.

Output

Deliver: the scan results (audit + secrets), a pass/fail list against the checklist with the exact file:line of anything to fix, and a clear verdict — "safe to ship at this risk level", "fix these N items first", or "high-risk: get a deep audit". Never claim the app is fully secure.

Reference

OWASP Cheat Sheet Series (~29k⭐), npm audit, gitleaks (~18k⭐), Helmet. Escalation targets: Semgrep/CodeQL, Trail of Bits skills, testing-handbook (fuzzing), Snyk/Dependabot.

Domande frequenti

Cosa fa la skill IA Pre Ship Security?

Questa skill va usata subito prima di distribuire o pubblicare in produzione: esegue una rapida revisione di sicurezza del codice finito, non un audit approfondito. Tra le frasi che la attivano: «pronto per la pubblicazione», «prima di distribuire», «controllo di sicurezza prima del lancio», «è sicuro pubblicare?», «checklist pre-lancio», «verifica la sicurezza», «mi è sfuggito qualcosa?», «pronto per la produzione», «rafforza la sicurezza prima del lancio», «antes de subir a producción». Esegue npm audit e una scansione per individuare segreti, ricontrolla il codice in base alla checklist...

Perché usare Pre Ship Security su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Pre Ship Security è 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 Pre Ship Security in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MartinOlivero/saas-builder/tree/main/skills/pre-ship-security. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Pre Ship Security?

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 Pre Ship Security?

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

La skill IA Pre Ship Security è gratuita?

Sì. È pubblicata su GitHub da MartinOlivero con licenza MIT. 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 👇