detect-recurrence-pattern
Detect recurring patterns in issues and events. Identifies temporal, resource-based, cluster, and cascading patterns. Suggests prevention strategies. Keywords: recurrence, pattern, detection, trending, recurring, prevention, issue, analysis.
npx skills add majiayu000/claude-skill-registry --skill detect-recurrence-pattern --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Detect Recurrence Pattern ## Preconditions Before applying this skill, verify: - Issue records available for analysis - Minimum 3 occurrences in analysis window - Timestamp data available for temporal analysis ## Actions ### 1. Collect Issue Records Gather issue data for analysis: ```yaml issue_record: issue_type: string # e.g., "CrashLoopBackOff", "OOMKilled" resource: string # e.g., "pod/app-123" namespace: string # e.g., "production" timestamp: datetime metadata: object resolved: boolean ``` ### 2. Detect Resource Patterns Group issues by base resource name: ```python # Group by namespace/kind/base-name by_base_name = group_issues_by_resource_base() for key, group in by_base_name.items(): if len(group) >= min_occurrences: # Pattern detected: same resource having recurring issues pattern = RecurrencePattern( pattern_type="resource", description=f"Recurring issues on {key}", confidence=min(1.0, len(group) / 10), severity=calculate_severity(group) ) ``` ### 3. Detect Temporal Patterns Analyze time intervals between issues: ```python # Calculate intervals between consecutive issues intervals = [issues[i].timestamp - issues[i-1].timestamp for i in range(1, len(issues))] # Check for
- Preconditions
- Actions
- 1. Collect Issue Records
- 2. Detect Resource Patterns
- 3. Detect Temporal Patterns
- 4. Detect Cluster Patterns
- 5. Calculate Pattern Severity
- 6. Generate Prevention Suggestions
- Success Criteria
- Failure Handling
- Examples
What does the detect-recurrence-pattern skill do?
Detect recurring patterns in issues and events. Identifies temporal, resource-based, cluster, and cascading patterns. Suggests prevention strategies. Keywords: recurrence, pattern, detection, trending, recurring, prevention, issue, analysis.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill detect-recurrence-pattern --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
