lifecycle_scan

lifecycle_scan is a command for Claude Code from Harery/OCTALUME. It costs 9 tokens per session (1,310 once invoked), scanned A, original, MIT.

A command that checks source code, dependencies, running applications, and Docker images for security and compliance problems.

In plain words
What is it for?
Use it to scan a codebase, its installed packages, a locally running app, or a Docker image and report findings such as severity and upgrade advice.
Why use it?
It brings several kinds of security checks into one workflow, helping reveal vulnerable code, packages, live services, and container images.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/harery/octalume/lifecycle-scan
Clone the repo
git clone --depth 1 https://github.com/Harery/OCTALUME

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lifecycle_scan

README.md
[![agentmods](https://agentmods.dev/badge/commands/harery/octalume/lifecycle-scan.svg)](https://agentmods.dev/commands/harery/octalume/lifecycle-scan)
Your own site
<a href="https://agentmods.dev/commands/harery/octalume/lifecycle-scan"><img src="https://agentmods.dev/badge/commands/harery/octalume/lifecycle-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.01310
Opus 5 $0.00005 $0.00655
Sonnet 5 $0.00002 $0.00262
Haiku 4.5 $0.00001 $0.00131

Measured 4d ago against content hash 033772ebb126, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lifecycle_scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/lifecycle-scan.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run Security and Compliance Scans

Run comprehensive security and compliance scans for $ARGUMENTS.

Scan Types

1. SAST (Static Application Security Testing)

Scan source code for security vulnerabilities:

# Using Snyk
snyk test
snyk monitor

# Using SonarQube
sonar-scanner

# Using Semgrep
semgrep --config=auto src/

Output: Security vulnerabilities in source code with severity ratings

2. SCA (Software Composition Analysis)

Scan dependencies for known vulnerabilities:

# Using Snyk
snyk test --dev

# Using Dependabot
dependabot check

# Using npm audit
npm audit

# Using pip-audit
pip-audit

Output: Vulnerable dependencies with upgrade recommendations

3. DAST (Dynamic Application Security Testing)

Scan running application for runtime vulnerabilities:

# Using OWASP ZAP
zap-cli quick-scan --self-contained http://localhost:3000
zap-cli active-scan http://localhost:3000

# Using Burp Suite
burp-scan http://localhost:3000

Output: Runtime vulnerabilities with exploit details

4. Container Security

Scan Docker images for vulnerabilities:

# Using Trivy
trivy image myapp:latest

# Using Clair
clair-scanner myapp:latest

# Using Snyk
snyk container test myapp:latest

Output: Container image vulnerabilities

5. Infrastructure as Code Security

Scan Terraform/CloudFormation for security issues:

# Using tfsec
tfscan .

# Using checkov
checkov -d .

# Using Snyk Infrastructure
snyk iac test .

Output: Infrastructure security misconfigurations

6. Compliance Scans

Check compliance with regulations:

# HIPAA compliance check
python scripts/compliance/hipaa_check.py

# SOC 2 compliance check
python scripts/compliance/soc2_check.py

# PCI DSS compliance check
python scripts/compliance/pci_dss_check.py

# GDPR compliance check
python scripts/compliance/gdpr_check.py

Output: Compliance status with gap analysis

Scan Workflow

  1. Start Application: Ensure application is running:
    source scripts/init.sh
    

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 238 lines · 9 tokens per session scan A 033772ebb126

Subscribe to this mod's changes

lifecycle_scan is a command published in the GitHub repository Harery/OCTALUME (2 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 1,310 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories