Langsung ke konten
Skillpedia
Pemrograman umum48k Β· #5509

production-code-audit

Fungsinya

Alat ini memindai seluruh kode pemrograman Anda secara mendalam, mengidentifikasi masalah, dan menyempurnakannya agar berfungsi baik di lingkungan live, sesuai standar profesional tingkat perusahaan.

Kapan dipakai

  • βœ“Saat Anda ingin kode Anda siap untuk di-deploy ke live.
  • βœ“Saat Anda perlu kode Anda memenuhi standar kualitas tingkat enterprise.
  • βœ“Saat Anda ingin mengoptimalkan performa kode Anda.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/production-code-audit/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/production-code-audit/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

β€œBuat kode ini siap produksi dan berkualitas tingkat korporat.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini membaca semua kode Anda, memahami arsitekturnya, lalu secara otomatis memperbaiki dan mengoptimalkannya. Alat ini memeriksa standar keamanan, performa, dan kualitas.

Konten teknis (SKILL.md asli)

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

Production Code Audit

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

  • Use when user says "make this production-ready"
  • Use when user says "audit my codebase"
  • Use when user says "make this professional/corporate-level"
  • Use when user says "optimize everything"
  • Use when user wants enterprise-grade quality
  • Use when preparing for production deployment
  • Use when code needs to meet corporate standards

Examples

Example 1: Autonomous Codebase Transformation

User: @production-code-audit make this production-ready

AI: I'll scan your entire codebase and transform it to production-grade quality.

**Phase 1: Discovering Codebase** (analyzing 247 files)
- Detected: Node.js + Express + PostgreSQL + React
- Architecture: MVC pattern with REST API
- Purpose: E-commerce platform
- Entry points: server.js, src/index.tsx

**Phase 2: Scanning for Issues** (line-by-line analysis)

Found 127 issues:
- πŸ”΄ CRITICAL: 8 issues
- 🟠 HIGH: 23 issues  
- 🟑 MEDIUM: 41 issues
- πŸ”΅ LOW: 55 issues

**Phase 3: Fixing Issues Automatically**

πŸ”΄ CRITICAL FIXES (8/8 completed):

1. βœ… Fixed SQL injection in UserRepository.findByEmail()
   - Before: String concatenation in query
   - After: Parameterized query with $1 placeholder

2. βœ… Removed hardcoded database password from config/database.ts
   - Before: password: 'SuperSecret123!'
   - After: password: process.env.DB_PASSWORD

3. βœ… Added authentication to admin routes
   - Before: No auth middleware
   - After: authenticateToken + requireRole('admin')

4. βœ… Fixed weak password hashing (MD5 β†’ bcrypt)
   - Before: crypto.createHash('md5')
   - After: bcrypt.hash(password, 12)

5. βœ… Fixed circular dependency: OrderService ↔ PaymentService
   - Before: Direct imports causing cycle
   - After: Event-based decoupling with EventBus

6. βœ… Added input validation to all API endpoints
   - Before: No validation
   - After: Zod schemas validating all inputs

7. βœ… Fixed authentication bypass in auth middleware
   - Before: next() called on missing token
   - After: Returns 401 error

8. βœ… Fixed mass assignment vulnerability in UserController
   - Before: Accepts all fields from req.body
   - After: Whitelist of allowed fields only

🟠 HIGH PRIORITY FIXES (23/23 completed):

9. βœ… Fixed N+1 query in OrderService.getOrdersWithItems()
   - Before: Loop with individual queries (2.8s)
   - After: Single query with joins (45ms)
   - Performance: 98% improvement

10. βœ… Refactored UserService god class (850 lines β†’ 4 focused services)
    - UserAuthenticationService (login, logout, password)
    - UserProfileService (CRUD operations)
    - UserNotificationService (email, SMS)
    - UserPermissionService (roles, permissions)

11. βœ… Added Redis caching for product queries
    - Before: Database query every request
    - After: Cache with 1-hour TTL
    - Performance: 95% faster

12. βœ… Optimized bundle size
    - Before: 850KB (gzipped: 280KB)
    - After: 380KB (gzipped: 120KB)
    - Improvement: 55% reduction

13. βœ… Added database indexes
    - orders(user_id, status, created_at)
    - products(category, price)
    - Query performance: 98% improvement

[... 11 more high-priority fixes ...]

🟑 MEDIUM PRIORITY FIXES (41/41 completed):
[... all medium fixes ...]

πŸ”΅ LOW PRIORITY IMPROVEMENTS (55/55 completed):
[... all low improvements ...]

**Phase 4: Adding Production Infrastructure**

βœ… Added structured logging (Winston)
βœ… Added error tracking (Sentry)
βœ… Added health check endpoints (/health, /ready)
βœ… Added monitoring (Prometheus metrics)
βœ… Added rate limiting (Redis-based)
βœ… Added API documentation (Swagger/OpenAPI)
βœ… Added comprehensive README
βœ… Added deployment guide
βœ… Added CI/CD pipeline (.github/workflows)

**Phase 5: Verification**

βœ… All tests passing (1,247 tests)
βœ… Test coverage: 42% β†’ 87%
βœ… Security scan: 0 vulnerabilities
βœ… Performance: API response time 3.2s β†’ 180ms
βœ… Bundle size: 850KB β†’ 380KB
βœ… Lighthouse score: 62 β†’ 94

**TRANSFORMATION COMPLETE**

Your codebase is now production-ready with enterprise-grade quality:

πŸ“Š Metrics:
- Issues fixed: 127/127 (100%)
- Test coverage: 87% (target: 80%+)
- API performance: 94% improvement
- Security: OWASP Top 10 compliant

…
Pertanyaan umum

Apa arti 'production-ready'?

Artinya kode tersebut kokoh, aman, efisien, dan memenuhi standar yang dibutuhkan untuk digunakan secara langsung oleh pengguna akhir.

Apa itu 'corporate-level standards'?

Ini adalah praktik terbaik dan pedoman yang diikuti perusahaan besar agar kode andal, mudah dipelihara, dan aman.

Apa yang terjadi jika alat ini menemukan banyak masalah?

Alat ini akan mencoba memperbaikinya secara otomatis dengan memprioritaskan yang paling kritis, lalu melaporkan perubahan yang dibuat.

Detail

Deskripsi asli dari pembuat

Autonomously deep-scan entire codebase line-by-line, understand architecture and patterns, then systematically transform it to production-grade, corporate-level professional quality with optimizations

repo: sickn33/agentic-awesome-skills

Popularitas

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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa