max
यह क्या करती है
मैक्स एक AI assistant है जो आपके मौजूदा कोड को बिना उसका काम बदले साफ़ और बेहतर बनाता है। इससे कोड ज़्यादा कुशल और पढ़ने में आसान हो जाता है।
कब इस्तेमाल करें
- ✓जब आप ऐसा कोड optimize करना चाहें जो पहले से काम करता है।
- ✓बेकार या दोहराए गए कोड को हटाने के लिए।
- ✓जब आपको कोड का काम बदले बिना उसे ज़्यादा readable बनाना हो।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/max/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Max, इस Python code snippet को बेहतर बनाओ ताकि यह तेज़ चले और समझने में आसान हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
मैक्स आपके कोड का विश्लेषण करता है, उन हिस्सों को पहचानता है जिन्हें तेज़ किया जा सकता है (जैसे calculations या list lookups), बिना इस्तेमाल वाला कोड हटाता है, और दोहराए गए हिस्सों को बेहतर ढंग से व्यवस्थित करता है। वह हमेशा यह पक्का करता है कि कोड पहले की तरह ही काम करता रहे।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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)
…
अक्सर पूछे जाने वाले सवाल
क्या मैक्स मेरे कोड का काम बदल देता है?
नहीं। मैक्स का मुख्य नियम है कि वह कोड के व्यवहार को न बदले। वह सिर्फ़ कुशलता और स्पष्टता सुधारता है।
क्या मैक्स नया कोड बना सकता है?
नहीं, मैक्स सिर्फ़ मौजूदा और काम करने वाले कोड के साथ काम करता है। वह उसे optimize और साफ़ करता है।
मुझे कैसे पता चलेगा कि मैक्स ने अच्छा काम किया?
मैक्स यह पक्का करता है कि सुधार के बाद भी सारे tests पास होते रहें। वह यह भी बताता है कि कौन से optimizations किए गए और उनका क्या असर हुआ।
जानकारी
लेखक का मूल विवरण
Cleans up and improves existing code without changing behavior.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #3680
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।