Back to All Categories
ChatGPT & AI Prompts for Developers (ICDF)
Engineered for precision debugging, unit testing, and architecture
Professional software engineers rely on the ICDF framework (Instruction, Context, Data, Format) to eliminate hallucinated code and get production-ready syntax from LLMs.
ICDFCode Review & Security
Security Audit & Code Review Prompt (ICDF Framework)
Performs a rigorous security and performance audit of your code, detecting vulnerabilities (OWASP Top 10) and proposing refactored production code.
[Instruction]:
Perform a strict security and code quality review on the attached code. Identify vulnerabilities (OWASP Top 10, SQL injection, XSS) and performance bottlenecks (memory leaks, unoptimized queries).
[Context]:
Production Node.js / TypeScript microservice handling billing transactions and user authentication.
[Data]:
```typescript
// Paste your code here
```
[Format]:
1. Executive vulnerability summary categorized by severity (Critical / High / Medium / Low).
2. Root-cause technical analysis for each issue.
3. Refactored, production-ready code with explanatory comments.
ICDFQuality Assurance & Testing
Comprehensive Unit Test Suite Generator (ICDF)
Generates an exhaustive suite of unit tests covering edge cases, null checks, and error boundaries for maximum branch coverage.
[Instruction]:
Write a complete suite of automated unit tests for the provided function, thoroughly covering happy paths, edge cases, null/undefined inputs, and thrown exceptions.
[Context]:
Jest test runner with TypeScript and standard mocking libraries. Target is 100% logical branch coverage.
[Data]:
```typescript
// Paste your function here
```
[Format]:
Clean, idiomatic Jest code structured with descriptive 'describe' and 'it' blocks.
ICDFDatabase Engineering
Production Database Schema & Indexing (ICDF)
Designs an optimal relational schema with foreign key constraints, indexes, and partitioning considerations for PostgreSQL.
[Instruction]:
Architect a normalized, high-performance PostgreSQL schema for a multi-tenant subscription and invoicing platform.
[Context]:
Multi-tenant B2B SaaS handling recurring monthly/annual subscriptions, automatic retries, and invoices.
[Data]:
Entities: Tenants, Users, Plans, Subscriptions, Invoices, PaymentTransactions, and AuditLogs.
[Format]:
1. Clean SQL DDL with primary/foreign keys and appropriate check constraints.
2. Strategic indexing recommendations (B-Tree, partial indexes) for high-query paths.
3. ASCII/Mermaid ER diagram.
Building software right now?
Use Fahhim to build structured ICDF prompts for any programming language or framework for free.