Skip to content
Agentmart
Submit a tool

optimise

Run a structured optimisation sweep across the codebase — redundancy, efficiency, dead code.

Skill by krone9

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/krone9-optimise

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run a structured optimisation sweep across the codebase — redundancy, efficiency, dead code. Use when the user types /optimise or asks for a codebase cleanup or refactor pass.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/optimise

Tools it pre-approves 4

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Write,
  • Bash(find:*),
  • Bash(grep:*)

What's inside

Skill name
optimise
Description
Run a structured optimisation sweep across the codebase — redundancy, efficiency, dead code. Use when the user types /optimise or asks for a codebase cleanup or refactor pass.
License
MIT
Allowed tools
Read,, Write,, Bash(find:*),, Bash(grep:*)
Instructions
44 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Task: Structured codebase optimisation

Run the following passes in order. After each pass, output a report of findings. Ask for confirmation before applying any changes.

---

### Pass 1: Redundancy
- Find duplicate logic, repeated code blocks, or functions that do the same thing in different places
- Identify files or modules with overlapping responsibilities
- Report: list of redundancies with file locations

### Pass 2: Streamline verbose logic
- Look for overly complex conditionals that can be simplified
- Find multi-step operations that could be reduced
- Identify unnecessarily long functions that should be split or condensed
- Report: list of candidates with suggested simplifications

### Pass 3: Performance inefficiencies
- Find N+1 patterns, unnecessary loops, or repeated expensive operations
- Look for synchronous operations that should be async
- Identify large imports where only a small part is used
- Report: list of inefficiencies with severity (low / medium / high)

### Pass 4: Dead code
- Find unused imports, variables, functions, and exported symbols
- Look for commented-out code blocks that should be removed
- Identify unreachable code paths
- Report: list of dead code with file and line references

---

### Custom prompt files
Before running the above passes, check if `claude/optimise/` exists. If it contains `.md` prompt files, load and execute each one as an additional custom pass. Name each pass after the filename.

---

### Apply changes
After all passes are reported:
1. Present a summary of all findings across passes
2. Ask: "Apply all changes, apply selectively, or skip?"
3. Apply only what is confirmed
4. Run a final `git diff` summary of what was changed

From krone9/pi-superpowers, MIT.

More from krone9/pi-superpowers

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 5, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from krone9

Cite this page

optimise skill. Agent Mart. https://agentmart.dev/skills/krone9-optimise (last updated 2026-10-24)