best-practices

Provide structured best practices and checklists for memory management across languages.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/biwakonbu/cc-plugins --skill best-practices-biwakonbu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/biwakonbu/cc-plugins/tree/main/plugins/memory-optimizer/skills/best-practices
Command: npx skills add https://github.com/biwakonbu/cc-plugins --skill best-practices-biwakonbu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to consistently apply memory management best practices, leading to leaks, inefficiency, and hard-to-maintain code.

Core Features & Use Cases

  • Best-Practice Catalog: A structured set of proven patterns, anti-patterns, and practical tips for memory management across common languages.
  • Auditing & Checklists: Ready-to-use checklists to assess memory usage, detect leaks, and optimize allocations.
  • Guidance for Teams: Actionable guidance for educating teams and embedding memory-conscious design in projects.

Quick Start

  1. Read the Best-Practices Catalog to understand core patterns.
  2. Run a quick memory audit on a sample module and apply recommended optimizations.
  3. Use the provided checklists during code reviews to enforce memory-safe practices.

Frequently Asked Questions about best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find and fix memory leaks in my application?

To find memory leaks, use the provided auditing checklists and profiling steps to detect abnormal allocations. You can then apply the structured anti-patterns and optimization tips to resolve inefficient memory usage across your codebase.

What are common memory management anti-patterns to avoid?

Common memory management anti-patterns include improper allocation handling and inefficient object retention. The best-practices catalog identifies these pitfalls and provides actionable patterns to design memory-efficient components and prevent leaks.

How do I optimize memory usage across different programming languages?

You optimize memory usage across languages by applying the catalog's proven patterns and practical tips tailored for common programming environments. This structured guidance helps standardize memory-conscious design and allocation optimization for your team.

Can I use these memory checklists during code reviews?

Yes, you can use the ready-to-use auditing checklists during code reviews to enforce memory-safe practices. This helps teams consistently assess memory usage, detect potential leaks, and embed memory-conscious design into their projects.

What's the best way to profile memory usage for optimization?

The best way to profile memory usage is to follow the provided profiling steps using common tooling. This process guides you through assessing memory allocations, identifying leaks, and applying targeted optimizations to your modules.

When do I need to perform a memory audit on my modules?

You need to perform a memory audit when you suspect leaks or want to optimize allocations in a sample module. Running a quick audit using the provided checklists helps detect inefficiencies and apply recommended memory management patterns.