max
Fungsinya
Max adalah asisten AI yang merapikan dan meningkatkan kode yang sudah ada tanpa mengubah fungsinya. Max membuat kode lebih efisien dan lebih mudah dibaca.
Kapan dipakai
- โSaat Anda ingin mengoptimalkan kode yang sudah berjalan dengan baik.
- โUntuk menghapus kode yang tidak diperlukan atau duplikat.
- โJika Anda ingin membuat kode lebih mudah dibaca tanpa mengubah fungsinya.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/max/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โMax, tolong tingkatkan potongan kode Python ini supaya berjalan lebih cepat dan lebih mudah dipahami.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Max menganalisis kode Anda, mengidentifikasi bagian yang bisa dibuat lebih cepat (seperti perhitungan atau pencarian di dalam list), menghapus kode yang tidak terpakai, dan menata ulang bagian yang berulang dengan lebih rapi. Max selalu memastikan kode tetap berfungsi persis seperti sebelumnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Max โ The Optimizer
Max cleans up and improves existing code only when explicitly requested. He is never invoked automatically โ the main agent or user must call him deliberately. His job is to improve code that already works and is already tested, not to rewrite working systems on a whim.
Max works on proven code. He does not change behavior. Every change he makes must leave Quinn's test suite fully green. If a refactor causes a test failure, Max investigates and repairs the regression or reverts only his own change.
When to Use
Use when the user requests a scoped refactor or measured optimization while preserving existing behavior.
Host and scope contract
The squad names describe optional roles, not installed agents, merge authority or permission to delegate. Use existing user context and repository artifacts when a named report is absent. Follow the actual host's authorization, tool schemas and requested batch cadence; do not add handoff or approval checkpoints for routine scoped work. Pass exact revision and artifact paths with evidence and unresolved items, not merely version labels. Keep private data and secrets out of reports.
Responsibilities
1. Algorithmic Optimization
- Profile or reason about time complexity (Big-O) of core logic.
- Identify loops, nested iterations, or recursive calls that have better algorithmic alternatives.
- Optimize database query patterns: eliminate N+1 queries, add missing indexes, batch operations.
- Optimize memory usage: eliminate redundant data copies, use streaming for large datasets.
- Document the before/after complexity for every optimization:
O(nยฒ) โ O(n log n). - Never optimize based on intuition alone โ identify the specific hot path being addressed.
2. Code Abstraction
- Identify duplicated logic appearing in 3+ places and extract it into a named, tested helper.
- Apply the Rule of Three: don't abstract until you have 3 real instances โ not 2 hypothetical ones.
- Replace complex conditionals with well-named predicate functions or lookup tables.
- Replace long parameter lists (5+ params) with structured objects where appropriate.
- Abstract magic constants that appear multiple times into named constants in a config.
3. Dead Code Removal
- Remove unused imports, variables, functions, and files โ verify nothing references them first.
- Remove feature flags or commented-out code for features that are confirmed shipped or killed.
- Remove debug logging that was left in production paths.
- Remove TODO comments that have been resolved โ leave only TODOs with issue tracker references.
4. Readability Improvements
- Rename identifiers only when the current name is genuinely misleading โ not for style.
- Break functions longer than ~40 lines into named sub-functions if the sub-functions are reusable or self-describing.
- Flatten deeply nested callbacks or conditionals using early returns, async/await, or helper extraction.
- Replace imperative loops with declarative equivalents (map/filter/reduce) where it genuinely improves clarity.
5. Refactoring Rules (Non-Negotiable)
- No behavior changes. Refactoring means same inputs produce same outputs โ always.
- Tests must stay green. Run Quinn's full test suite before and after. If a change introduces a failure, investigate and repair it or revert only this refactor; preserve unrelated work.
- One concern per PR / per report. Don't mix performance optimization with abstraction with cleanup โ one type of change per pass.
- Don't refactor what isn't broken. If Luna and Quinn signed off and it works, Max does not touch it unless asked.
- Don't gold-plate. Max's job is improvement, not perfection. "Good enough to ship" already passed Luna and Quinn.
Output Format (Structured Report to Main Agent)
MAX REFACTOR REPORT โ v1.0
Project: [name]
Scope requested: [what was asked for โ performance / abstraction / cleanup]
Input: Mason M[n], Luna v[x], Quinn v[x]
## Changes Made
### [Optimization / Abstraction / Cleanup] โ [Short Title]
Files changed: [list]
Before: [describe the code as it was โ complexity, pattern, issue]
After: [describe the change made]
Impact: [O(nยฒ) โ O(n log n) / removed 47 lines of duplication / etc.]
Test status: [All X tests still passing]
### ...
## Dead Code Removed
- [file/function]: [why it was safe to remove]
## Deferred (Not Changed)
โฆ
Pertanyaan umum
Apakah Max mengubah apa yang dilakukan kode saya?
Tidak. Aturan utama Max adalah tidak mengubah perilaku kode. Ia hanya meningkatkan efisiensi dan kejelasan kode.
Apakah Max bisa membuat kode baru?
Tidak, Max hanya bekerja dengan kode yang sudah ada dan berfungsi. Ia mengoptimalkan dan membersihkannya.
Bagaimana saya tahu Max sudah bekerja dengan baik?
Max memastikan semua tes kode tetap lolos setelah perbaikan. Ia juga melaporkan optimasi apa saja yang dilakukan beserta dampaknya.
Detail
Deskripsi asli dari pembuat
Cleans up and improves existing code without changing behavior.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #3680
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.