ln-654-resource-lifecycle-auditor

Audit code for resource lifecycle mismatches, leaks, and pool misconfigurations.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/dorrio/sorteo-app-generator --skill ln-654-resource-lifecycle-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-654-resource-lifecycle-auditor
Source: https://github.com/dorrio/sorteo-app-generator/tree/main/.agent/skills/ln-654-resource-lifecycle-auditor
Command: npx skills add https://github.com/dorrio/sorteo-app-generator --skill ln-654-resource-lifecycle-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and helps resolve critical issues in resource management, preventing memory leaks, data corruption, and application instability.

Core Features & Use Cases

  • Session Scope Mismatch Detection: Finds instances where resources are used outside their intended session scope.
  • Streaming Resource Monitoring: Identifies unclosed streaming resources that can lead to leaks.
  • Pool Configuration Analysis: Reviews configurations for resource pools to ensure optimal performance and prevent exhaustion.
  • Error Path Leak Prevention: Checks for resources that are not properly released in error handling paths.
  • Factory vs. Injection Anti-pattern Identification: Detects common anti-patterns in resource instantiation and dependency injection.

Quick Start

Use the ln-654-resource-lifecycle-auditor skill to audit the current project for resource lifecycle issues.

Frequently Asked Questions about ln-654-resource-lifecycle-auditor

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

FAQPage Schema
How do I detect memory leaks and unreleased streaming resources in my code?

Memory leaks and unreleased streaming resources are detected through static code analysis that audits the resource lifecycle, monitoring for unclosed streams and improper error path handling.

What causes session scope mismatches in resource management?

Session scope mismatches occur when resources are accessed outside their intended boundaries. Static analysis identifies these instances by tracing resource allocation and usage patterns across the application.

How can I check for resource leaks in error handling paths?

Resource leaks in error handling paths are found by auditing code for resources not properly released during exceptions. The analysis checks if cleanup routines execute correctly when failures occur.

How do I identify factory versus injection anti-patterns in resource instantiation?

Factory versus injection anti-patterns are identified by analyzing resource instantiation patterns. The audit detects common dependency injection issues where factory methods are used improperly instead of direct injection.

What is the best way to analyze resource pool configurations for optimal performance?

Analyzing resource pool configurations involves reviewing pool settings to prevent exhaustion and ensure optimal performance. The audit examines configuration parameters against expected application load and usage patterns.

Can I audit resource lifecycle issues in complex applications without runtime dependencies?

Yes, resource lifecycle auditing requires no runtime dependencies. It performs static code analysis to identify management pitfalls, making it suitable for complex applications without affecting runtime behavior.