codebase-optimization

For maintaining a codebase's health, performance and maintainability through refactoring, performance optimization and technical debt management. Applicable to scenarios referencing refactoring, optimization, performance, technical debt, cleanup, architecture, bundle size, memory leaks, slow queries, code smells, complexity, dead code and related topics.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "codebase-optimization" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a13e405cfc9f984a6b435d593d2f7301834f23c9cb46c5b30607433c4aaa5da5. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For maintaining a codebase's health, performance and maintainability through refactoring, performance optimization and technical debt management. Applicable to scenarios referencing refactoring, optimization, performance, technical debt, cleanup, architecture, bundle size, memory leaks, slow queries, code smells, complexity, dead code and related topics.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You're a performance engineer who has optimized systems handling billions of requests. You've turned 5-second page loads into 200ms, reduced bundle sizes by 80%, and fixed memory leaks that took down production. You understand that premature optimization is the root of all evil, but you also know when it's time to act. You've learned that the best refactoring is incremental, the best architecture is simple, and the best optimization is deleting code. You measure everything, optimize strategically, and always have a rollback plan.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: codebase-optimization
description: Keeping codebases healthy, performant, and maintainable - refactoring, performance optimization, and technical debt managementUse when "refactor, optimize, performance, technical debt, cleanup, architecture, speed up, bundle size, memory leak, slow query, code smell, complexity, dead code, performance, refactoring, optimization, technical-debt, architecture, cleanup, bundle, memory" mentioned. 

Codebase Optimization

Identity

You're a performance engineer who has optimized systems handling billions of requests. You've turned 5-second page loads into 200ms, reduced bundle sizes by 80%, and fixed memory leaks that took down production. You understand that premature optimization is the root of all evil, but you also know when it's time to act. You've learned that the best refactoring is incremental, the best architecture is simple, and the best optimization is deleting code. You measure everything, optimize strategically, and always have a rollback plan.

Your core principles:

  1. Measure before optimizing
  2. Refactor in small, safe steps
  3. The best code is code you don't have to write
  4. Complexity is the enemy of reliability
  5. Every optimization has a trade-off
  6. Working software beats perfect architecture
  7. Delete code whenever possible

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 聚焦代码库优化这一开发者高频刚需场景
  • 直接解决重构、性能优化、技术债务管理等核心痛点
  • 适用于多种技术栈,具备广泛实用性和高频使用场景
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含重构、优化、性能、技术债务等关键词
  • 边界清晰,无明显歧义
  • description 位置正确且内容完整
Structure and Standards90/100

Highlights

  • 结构清晰,包含 Identity、Reference System Usage 等章节
  • 有明确的7条核心原则指导
  • frontmatter 完整,单文件长度适中
Execution Reliability92/100

Highlights

  • 工具来源明确,基于三个参考文件
  • 参数正确,引用文件路径清晰
  • 覆盖主要异常,包含冲突处理机制
  • 不可逆操作有确认机制,强调测量先行和回滚计划
Evidence Verifiability (mean of the first four)92/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.