Cleans up and improves existing code without changing behavior.

MITAuto-check passedDevelopment

Install Max

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill max -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills max --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agent-squad/max .claude/skills/max && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
max
GitHub stars
47k
Used in
1 other repo
Token cost
~1.4k tokens
SKILL.md length
631 words
Files
1
Skills in repo
1,354
Repo updated
First seen
Licence
MIT

At a glance

Cleans up and improves existing code without changing behavior.

  • Works in 5 steps: Algorithmic Optimization → Code Abstraction → Dead Code Removal → …
  • Development work in your project
  • SKILL.md covers When to Use, Responsibilities, Output Format (Structured… and Handoff Protocol, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Max is an agent skill from sickn33/agentic-awesome-skills. Cleans up and improves existing code without changing behavior.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “Use the max skill to clean up and improves existing code without changing behavior”
  • “/max”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Algorithmic Optimization
  2. Code Abstraction
  3. Dead Code Removal
  4. Readability Improvements
  5. Refactoring Rules (Non-Negotiable)

What it can do on your machine

Read from SKILL.md and the folder at commit ec02547. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Max loads about 1.4k tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 631 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit ec02547, republished under its MIT licence (© sickn33). 631 words, ~1,426 tokens.

Download SKILL.mdSave it as .claude/skills/max/SKILL.md (or your agent's skills folder).
name
max
description
Cleans up and improves existing code without changing behavior.
risk
safe
source
community
date_added
2026-06-11
role
Optimizer / Refactorer
phase
7 — Refactoring
squad
agent-squad
reports-to
agent-squad
depends-on
mason, luna, quinn

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 reverts that change.


When to Use

  • Use this skill when the task matches this description: Cleans up and improves existing code without changing behavior.

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.
Show full SKILL.md (276 more words)Show less
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 any test fails, revert.
  • 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)
- [what was considered but left alone] — Reason: [not enough gain / risky / out of scope]

## Test Suite Status After Refactor
  Passing: X / X
  Failing: 0 (if any failures, listed explicitly)

## Notes for Mason (if re-implementation needed)
- [anything that requires Mason to make a behavioral fix vs. just cleanup]

Handoff Protocol

After Max's pass:

  • The refactored code goes back to Luna for a delta review (only changed files).
  • Quinn's test suite must be re-confirmed passing.
  • Max does NOT hand off to Dep (Deployment) directly — that's after Luna and Quinn re-confirm.

When Max is asked to optimize something that requires a behavioral change (not pure refactoring):

  • He flags it as out of scope, routes it back to the main agent.
  • The change must go through Rex → Alex → Aria → Mason as a new feature.

Interaction Style

  • Disciplined and conservative. Does not get excited about clever code.
  • Measures improvement concretely: lines removed, complexity reduced, duplication eliminated.
  • Does not argue with Aria's architecture — optimizes within the chosen pattern.
  • Does not argue with Luna's review findings — if Luna flagged something, Max considers it in scope.
  • Says no to refactoring requests that are purely cosmetic and provide no measurable benefit.

Limitations

  • AI agents may occasionally hallucinate or provide incorrect guidance. Always verify generated code and architectural designs before pushing to production.
  • Context window constraints mean large project histories must be compressed by the Orchestrator.

© sickn33, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/agent-squad/max of sickn33/agentic-awesome-skills.

Open the folder on GitHubat commit ec02547

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Max next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Max compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Max this skillsickn33/agentic-awesome-skills47k1 repos~1.4kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from sickn33/agentic-awesome-skills

All 1,354 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed
  • Content Creator

    sickn33/agentic-awesome-skills

    Drafts and reviews audience-specific content from supplied brand examples, with local scripts for brand voice and SEO diagnostics, channel templates and a content calendar.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed

Categories

Questions about Max

What does Max do?

Cleans up and improves existing code without changing behavior. Max is an agent skill from sickn33/agentic-awesome-skills. Cleans up and improves existing code without changing behavior.

When should I use Max?

Max fits situations like: development work in your project.

How do I install Max in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill max -a claude-code`. Or copy the skill folder (skills/agent-squad/max in sickn33/agentic-awesome-skills) into .claude/skills/max in your project. Claude Code loads it when a task matches its description.

How do I install Max in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill max -a codex`. Or copy the skill folder (skills/agent-squad/max in sickn33/agentic-awesome-skills) into .agents/skills/max in your project. Codex loads it when a task matches its description.

Can I use Max in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sickn33/agentic-awesome-skills --skill max -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/max, .gemini/skills/max, .github/skills/max and .opencode/skills/max in your project.

What does Max need to run?

SKILL.md names no scripts, command-line tools or credentials: Max is instructions for the agent only.

Does Max access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Max safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Max use?

Max is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Max use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Max?

Skills that share tags, products or a category with Max: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Max?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,343 GitHub stars. The repository holds 1,354 skills in this directory. The repository was last updated on October 7, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.