reading-logs
Analyzes logs efficiently through targeted search and iterative refinement. Use when investigating errors, debugging incidents, or analyzing patterns in application logs.
What this skill does
# Reading Logs **IRON LAW:** Filter first, then read. Never open a large log file without narrowing it first. ## Delegation For log files over a few hundred lines, delegate to the `@ce:log-reader` agent. It runs on haiku to keep costs low and context clean. Prompt it with: - What to investigate (error text, time window, correlation IDs) - Which log files or directories to search - The `scripts/` utilities available (see [Utility Scripts](#utility-scripts) below) The agent has this skill preloaded, so it already knows the methodology. Keep your prompt tight and specific - don't paste log contents into the delegation message. ## Investigation Workflows ### Single Incident 1. Get time window, error text, correlation IDs 2. Find logs covering that time (`Glob`) 3. Time-window grep: `grep "2025-12-04T11:" service.log | grep -i "timeout"` 4. Trace by ID: `grep "req-abc123" *.log` 5. Expand context: `grep -C 10 "req-abc123" app.log` ### Recurring Patterns 1. Filter by severity: `grep -Ei "error|warn" app.log` 2. Group and count: `grep -i "ERROR" app.log | sort | uniq -c | sort -nr | head` 3. Exclude known noise 4. Drill into top patterns with context ## Red Flags - Opening >10MB file without filtering - Using Read before Grep - Dumping raw output without summarizing - Searching without time bounds on multi-day logs ## Utility Scripts For complex operations, use the scripts in `scripts/`: ```bash # Aggregate errors by frequency (normalizes timestamps/IDs) bash scripts/aggregate-errors.sh app.log "ERROR" 20 # Extract and group stack traces by type bash scripts/extract-stack-traces.sh app.log "NullPointer" # Parse JSON logs with jq filter bash scripts/parse-json-logs.sh app.log 'select(.level == "error")' # Show error distribution over time (hourly/minute buckets) bash scripts/timeline.sh app.log "ERROR" hour # Trace a request ID across multiple log files bash scripts/trace-request.sh req-abc123 logs/ # Find slow operations by duration bash scripts/slow-requests.sh app.log 1000 20 ``` ## Output Format 1. State what you searched (files, patterns) 2. Provide short snippets illustrating the issue 3. Explain what likely happened and why 4. Suggest next steps
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.