Loading...
Loading...
Application lifecycle audit worker (L3). Checks bootstrap initialization order, graceful shutdown, resource cleanup, signal handling, liveness/readiness probes. Returns findings with severity, location, effort, recommendations.
npx skill4agent add levnikolaevich/claude-code-skills ln-629-lifecycle-auditorcontextStoreSIGTERMSIGINTprocess.on('SIGTERM')signal.Notify/live/ready/live/readyshared/references/audit_scoring.md{
"category": "Lifecycle",
"score": 7,
"total_issues": 4,
"critical": 0,
"high": 1,
"medium": 3,
"low": 0,
"checks": [
{"id": "bootstrap_order", "name": "Bootstrap Order", "status": "passed", "details": "Initialization sequence correct: config -> DB -> routes -> server"},
{"id": "graceful_shutdown", "name": "Graceful Shutdown", "status": "failed", "details": "No SIGTERM handler found"},
{"id": "resource_cleanup", "name": "Resource Cleanup", "status": "warning", "details": "DB connection closed, but file handles not released"},
{"id": "signal_handling", "name": "Signal Handling", "status": "warning", "details": "SIGINT handled, SIGTERM missing"},
{"id": "probes", "name": "Liveness/Readiness Probes", "status": "passed", "details": "/health and /ready endpoints present"}
],
"findings": [
{
"severity": "HIGH",
"location": "src/index.ts:1-50",
"issue": "No SIGTERM handler for graceful shutdown",
"principle": "Graceful Shutdown / Resource Management",
"recommendation": "Add SIGTERM handler to close DB connections and server gracefully",
"effort": "M"
}
]
}shared/references/audit_scoring.mdshared/references/audit_output_schema.md