Langsung ke konten
Skillpedia
API & server (backend)48k Β· #4949

infinity

Fungsinya

Tool ini memastikan bahwa data yang berasal dari luar program Anda diperiksa terlebih dahulu sebelum digunakan. Tool ini membuat lapisan keamanan untuk mencegah error dan masalah.

Kapan dipakai

  • βœ“Saat menerima informasi dari pengguna.
  • βœ“Saat menggunakan data dari sumber eksternal lain (API, file).
  • βœ“Saat mengonfigurasi program Anda dengan variabel.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/infinity/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/infinity/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œVerifikasi semua input data eksternal sebelum digunakan.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pertama, tool ini mengidentifikasi di mana data eksternal masuk ke dalam program. Lalu, tool mengklasifikasikan data tersebut sebagai tepercaya atau tidak tepercaya. Terakhir, tool menerapkan pemeriksaan untuk memastikan data yang tidak tepercaya sudah benar sebelum digunakan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

infinity β€” Input Boundary & Validation Protocol

Core Philosophy

Nothing untrusted ever reaches the core β€” it is stopped before contact. No external data touches the codebase raw. Every boundary where data enters the system must have a filter.

The #1 source of silent bugs, crashes, and vulnerabilities is external data that arrives in an unexpected shape and gets used directly without checking. This skill enforces a filter layer at every entry point, every time.


When to Use This Skill

  • Use when you need to handle an API response
  • Use when reading user input or adding a form handler
  • Use when working with environment variables or CLI arguments
  • Use when parsing webhooks or reading from the filesystem
  • Use when any code calls .body, .params, .query, .env, fs.read, or a third-party SDK response

The Four Phases

PHASE 1 β€” Boundary Detection

Before writing or modifying any code that involves external data, the AI must identify and list every entry point in scope:

  • HTTP request bodies, headers, query params
  • User form inputs and UI-submitted data
  • Environment variables and config files
  • Third-party API responses
  • Webhook payloads
  • File reads from disk
  • CLI arguments
  • Database query results from external sources
  • WebSocket messages

The AI must not write any data-handling logic until every entry point in scope is listed.


PHASE 2 β€” Classify Each Input

For every entry point identified, the AI classifies it into one of three trust levels:

Level Definition Examples
TRUSTED Internal constants, hardcoded values, your own compile-time config Enum values, hardcoded defaults, internal constants
SEMI-TRUSTED Your own internal services, internal APIs, controlled infrastructure Internal microservice responses, your own database reads
UNTRUSTED Anything from users, the internet, third parties, or the filesystem User input, external API responses, uploaded files, env vars, CLI args

Rule: TRUSTED inputs may be used directly. SEMI-TRUSTED and UNTRUSTED inputs must pass through a filter layer before any use.

The AI outputs this classification before writing any handling code:

INFINITY β€” BOUNDARY MAP
─────────────────────────────────────────
Entry Point              | Trust Level  | Filter Required
─────────────────────────────────────────
req.body.email           | UNTRUSTED    | βœ“ format + sanitize
process.env.API_KEY      | UNTRUSTED    | βœ“ presence + non-empty
internalService.getData()| SEMI-TRUSTED | βœ“ schema validate
PAGINATION_LIMIT = 20    | TRUSTED      | βœ— none needed
─────────────────────────────────────────

PHASE 3 β€” Mandatory Filter Layer

Every UNTRUSTED and SEMI-TRUSTED input must pass through validation before it reaches any business logic, storage, or rendering. The AI must apply the right filter type for the right context:

Type Checking

  • Verify the input is the expected type before using it
  • Never assume a string is a string, a number is a number, or an array is an array

Schema Validation

  • For objects and API responses, validate shape before accessing nested fields
  • If a required field is missing, reject β€” do not use a fallback that hides the problem

Sanitization

  • Strip or escape content before rendering to UI (prevent XSS)
  • Normalize strings before storage (trim whitespace, consistent casing where appropriate)

Presence & Format Checks

  • Env vars: must exist and be non-empty before use
  • IDs and tokens: must match expected format before use

Rejection Rule

  • On invalid input: reject explicitly and return a clear error
  • Never silently use bad data with a fallback
  • Never let bad data pass through to fix itself "downstream"
// WRONG β€” using raw input directly
const user = await db.find(req.params.id);

// RIGHT β€” validate before use
const id = req.params.id;
if (!id || typeof id !== 'string' || !isValidUUID(id)) {
  return res.status(400).json({ error: 'Invalid ID format' });
}
const user = await db.find(id);

PHASE 4 β€” Self-Check Before Done

Before the AI declares any data-handling code complete, it traces each entry point and confirms:

INFINITY β€” VERIFICATION
─────────────────────────────────────────
Entry Point              | Filter Exists | Filter Type
─────────────────────────────────────────
req.body.email           | βœ“ YES         | format + sanitize

…
Pertanyaan umum

Mengapa penting untuk memeriksa data?

Data yang tidak terduga bisa menyebabkan error, membuat program crash, atau bahkan menimbulkan celah keamanan.

Apa itu 'untrusted data'?

Itu adalah data yang berasal dari luar kendali langsung Anda, seperti informasi yang diketik pengguna, respons dari API lain, atau konfigurasi sistem.

Apa yang terjadi jika data gagal diverifikasi?

Program sebaiknya melaporkan error dengan jelas, alih-alih mencoba menggunakan data yang salah dan menyebabkan masalah.

Detail

Deskripsi asli dari pembuat

Enforces a strict input boundary protocol (detect, classify, filter, verify) to ensure untrusted data never reaches business logic raw.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4949
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa