brainstorming
Structured design dialogue that validates ideas before implementation begins.
log-summary-date-ranges
This skill provides guidance for analyzing log files across date ranges and producing summary statistics. Use when tasks involve parsing log files, counting log entries by severity (ERROR, WARNING, INFO), aggregating by date ranges (today, last N days, month-to-date), or producing CSV reports fro...
Full skill instructions
This skill guides log file analysis tasks that require aggregating entries across different date ranges and producing summary reports. Common scenarios include counting log entries by severity level (ERROR, WARNING, INFO) for various time periods and outputting results in structured formats like CSV.
Before writing any analysis code:
app-YYYY-MM-DD.log or service.log.YYYY-MM-DDExample log entry formats:
2025-08-12 10:30:45 ERROR Database connection failed
[2025-08-12T10:30:45.123Z] [ERROR] Database connection failed
ERROR 2025-08-12 10:30:45 - Database connection failed
Given a reference date, calculate inclusive date ranges:
| Range | Calculation | Example (ref: 2025-08-12) |
|---|---|---|
| Today | reference date only | 2025-08-12 |
| Last 7 days | reference - 6 days to reference | 2025-08-06 to 2025-08-12 |
| Last 30 days | reference - 29 days to reference | 2025-07-14 to 2025-08-12 |
| Month to date | first of month to reference | 2025-08-01 to 2025-08-12 |
Critical consideration: Clarify whether ranges are inclusive or exclusive at boundaries. "Last 7 days" typically means today plus the 6 preceding days (7 total days).
When writing the analysis script:
Always verify results using independent methods:
Example verification commands:
# Count ERROR entries for a specific date
grep "2025-08-12" logs/*.log | grep -c "ERROR"
# Count all ERROR entries
grep -r "ERROR" logs/ | wc -l
# Verify a specific file's contribution
grep -c "ERROR" logs/app-2025-08-12.log
\n unless Windows format is explicitly required. Configure CSV writers properly:
# Python: Prevent Windows line endings
with open('output.csv', 'w', newline='') as f:
writer = csv.writer(f)
Before declaring the task complete:
See references/date_range_patterns.md for common date range calculation patterns and edge cases.
No scripts are bundled. Analysis scripts should be written based on the specific log format and requirements of each task.
No assets are bundled with this skill.
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs