본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #3680

max

하는 일

Max는 기존 코드의 동작을 바꾸지 않고 정리하고 개선하는 AI 어시스턴트입니다. 코드를 더 효율적이고 읽기 쉽게 만듭니다.

사용하는 경우

  • ✓이미 작동하는 코드를 최적화하고 싶을 때.
  • ✓불필요하거나 중복된 코드를 제거할 때.
  • ✓기능을 바꾸지 않고 코드를 더 읽기 쉽게 만들어야 하는 경우.

스킬 링크

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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/max/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Max, 이 Python 코드 조각을 더 빨리 실행되고 이해하기 쉽게 개선해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Max는 코드를 분석해 더 빨라질 수 있는 부분(계산이나 리스트 조회 등)을 찾고, 쓰이지 않는 코드를 제거하며, 반복되는 부분을 더 잘 정리합니다. 항상 코드가 이전과 정확히 같이 작동하도록 합니다.

기술 내용 (원본 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)

…
자주 묻는 질문

Max가 내 코드의 동작을 바꾸나요?

아니요. Max의 가장 중요한 규칙은 코드의 동작을 바꾸지 않는 것입니다. 효율과 명확성만 개선합니다.

Max가 새 코드를 만들 수 있나요?

아니요, Max는 이미 존재하고 작동하는 코드만 다룹니다. 그것을 최적화하고 정리합니다.

Max가 잘했는지 어떻게 알 수 있나요?

Max는 개선 후에도 모든 코드 테스트가 계속 통과하도록 합니다. 또한 어떤 최적화를 했고 그 영향이 무엇인지 보고합니다.

상세 정보

작성자의 원본 설명

Cleans up and improves existing code without changing behavior.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#3680
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬