/syncable-cli-skills:syncable-optimizefrom syncable-cli-skills
Analyzes Kubernetes manifests and live cluster metrics to recommend resource right-sizing, estimate costs, and detect configuration drift.
Ships in syncable-cli-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze K8s manifests and optionally live cluster metrics to recommend resource right-sizing, estimate costs, and detect drift. --full adds kubelint + helmlint checks.
| Flag | Purpose |
|---|---|
--agent | Compressed output (always use) |
--cluster [CONTEXT] | Live K8s cluster (current context if omitted) |
--prometheus <URL> | Prometheus for historical metrics |
--namespace <NS> | Target namespace (* for all) |
--period <DURATION> | Metrics period (e.g., 7d, 30d) |
--full | Include kubelint + helmlint |
--cloud-provider {aws|gcp|azure|onprem} | Cost estimation |
--region <REGION> | Pricing region (default: us-east-1) |
--fix | Generate fix suggestions (does NOT modify files) |
--apply | Write fixes to files. Requires --fix. Never use without user confirmation. |
--dry-run | Preview --apply changes |
--severity <LEVEL> | Minimum severity |
--threshold <0-100> | Minimum waste percentage |
sync-ctl optimize <PATH> --agent
Success criteria: JSON output with summary containing recommendation count and estimated savings.
Priority: right-sizing recommendations with savings > critical security findings (from --full) > drift issues > cost breakdown.
Always follow this sequence — never skip dry-run:
sync-ctl optimize <PATH> --fix --dry-run --agent # Preview
# Show user the changes, get explicit confirmation
sync-ctl optimize <PATH> --fix --apply # Apply only after approval
Success criteria: User has seen and approved the dry-run output before --apply.
sync-ctl retrieve <ref_id> --query "severity:high"
sync-ctl retrieve <ref_id> --query "container:my-app"
Available queries: severity:<level>, container:<name>
| Mistake | Fix |
|---|---|
Using --apply without showing dry-run first | Always --fix --dry-run first, confirm, then --fix --apply |
Skipping --cloud-provider when user asks about costs | Cost estimation requires this flag |
| Running live cluster analysis without checking connectivity | Verify kubectl cluster-info first |
| Error | Action |
|---|---|
No Kubernetes manifests found | Run sync-ctl analyze to check for K8s presence |
Cannot connect to cluster | Verify kubectl cluster-info, check context name |
Prometheus unreachable | Verify URL, fall back to static analysis |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/syncable-analyzeOverviewUse when the user asks to analyze a project, understand the tech stack, detect frameworks, check what languages are used, identify runtimes or package managers, or as a first step before security/vulnerability scans/syncable-dependenciesOverviewUse when the user asks to audit dependencies, check licenses, list packages, review dependency health, check for copyleft issues, or see prod vs dev dependency split/syncable-npx claudepluginhub syncable-dev/syncable-cli --plugin syncable-cli-skillsOther plugins' skills for the same job