Agent skill
capacity
Analyze service capacity, load patterns, and scaling requirements
Install this agent skill to your Project
npx add-skill https://github.com/thoreinstein/opencode-config/tree/main/skill/capacity
SKILL.md
Capacity Planning Analysis
Current Time: !date
K8s Context: !kubectl config current-context
Analyze service capacity, load patterns, and scaling requirements. Generates forecasts and recommendations for resource planning. Documents to Obsidian.
Input
- Target: service, cluster, or infrastructure component
- Context: current traffic patterns, growth expectations
- Optional: specific scaling concerns or upcoming events
Investigation Strategy
Launch parallel investigation tracks:
Track 1: Codebase Exploration (explore agent)
- Find autoscaling configuration
- Identify resource requests/limits
- Locate performance-critical code paths
- Map service dependencies
Track 2: Infrastructure Analysis (inferred agent: k8s/gcp-dev/sre)
- Review current resource utilization
- Analyze scaling policies
- Check quota and limits
- Assess headroom and buffer
Track 3: External Research (librarian agent)
- Find capacity planning best practices
- Research scaling patterns for similar workloads
- Identify industry benchmarks
Output
Write to Obsidian via obsidian_append_content at:
$OBSIDIAN_PATH/Capacity/YYYY-MM-DD-service-analysis.md
Note:
$OBSIDIAN_PATHmust be a vault-relative path (e.g.,Projects/myapp), set per-project via direnv. Theobsidian_append_contenttool expects paths relative to the vault root.
Document Structure
Use this template for the Obsidian document:
@~/.config/opencode/templates/capacity-analysis.md
Behavior
- Parse target to identify service and infrastructure scope
- Infer appropriate infrastructure agent (k8s, gcp-dev, sre)
- Launch explore, librarian, and inferred agent in parallel
- Analyze current utilization and scaling configuration
- Identify load patterns and growth trends
- Generate capacity forecast with resource requirements
- Identify bottlenecks and risks
- Write analysis to Obsidian via
obsidian_append_contentwith auto-generated filename:YYYY-MM-DD-service-analysis.md
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
seo
Implement SEO optimizations for specified pages or entire site
runbook
Generate operational runbooks for services, procedures, or incident response
file-organizer
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
ultrathink
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions
commit
Analyze unstaged changes and suggest atomic commit groups with messages
Didn't find tool you were looking for?