원클릭으로
pattern-miner
Mine historical data for patterns and predictive insights
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Mine historical data for patterns and predictive insights
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Seed JSON configuration files into database. Use ONCE at BAZINGA session initialization, BEFORE spawning PM.
Database operations for BAZINGA orchestration system. This skill should be used when agents need to save or retrieve orchestration state, logs, task groups, token usage, or skill outputs. Replaces file-based storage with concurrent-safe SQLite database. Use instead of writing to bazinga/*.json files or docs/orchestration-log.md.
Analyzes codebase to find similar features, reusable utilities, and architectural patterns
Build complete agent prompts deterministically via Python script. Use BEFORE spawning any BAZINGA agent (Developer, QA, Tech Lead, PM, etc.).
Analyze existing tests to identify patterns, fixtures, and conventions before writing new tests
Assembles relevant context for agent spawns with prioritized ranking. Ranks packages by relevance, enforces token budgets with graduated zones, captures error patterns for learning, and supports configurable per-agent retrieval limits.
| name | pattern-miner |
| description | Mine historical data for patterns and predictive insights |
| version | 1.0.0 |
| allowed-tools | ["Bash","Read"] |
You are the pattern-miner skill. When invoked, you analyze historical project data to identify recurring patterns, predict future issues, and provide data-driven recommendations.
Invoke this skill when:
Do NOT invoke when:
When invoked:
Use the Bash tool to run the pre-built pattern mining script.
On Unix/macOS:
bash .claude/skills/pattern-miner/scripts/mine.sh
On Windows (PowerShell):
pwsh .claude/skills/pattern-miner/scripts/mine.ps1
Cross-platform detection: Check if running on Windows (
$env:OScontains "Windows" orunamedoesn't exist) and run the appropriate script.
This script will:
bazinga/historical_metrics.jsonbazinga/artifacts/{SESSION_ID}/skills/pattern_insights.jsonUse the Read tool to read:
bazinga/artifacts/{SESSION_ID}/skills/pattern_insights.json
Extract key information:
patterns_detected - Array of identified patterns with confidence scoresestimation_adjustments - Recommended multipliers by task typepredictions_for_current_project - Forecasts for pending tasksrisk_indicators - Probability of escalation/failurelessons_learned - Top insights from historical dataReturn a concise summary to the calling agent:
Pattern Mining Results:
- Analyzed: {count} historical runs
- Patterns detected: {count} (High confidence: {count})
Top patterns:
1. {pattern}: {description} (confidence: {percentage}%)
2. {pattern}: {description} (confidence: {percentage}%)
3. {pattern}: {description} (confidence: {percentage}%)
Estimation adjustments:
- {task_type}: Use {multiplier}x multiplier (based on {count} tasks)
Predictions for current project:
- {prediction}
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/pattern_insights.json
Scenario: Estimating Database Migration Task
Input: PM analyzing historical data before estimating new database migration
Expected output:
Pattern Mining Results:
- Analyzed: 12 historical runs
- Patterns detected: 8 (High confidence: 5)
Top patterns:
1. Database tasks: Take 2.5x longer than estimated (confidence: 85%)
2. Authentication tasks: High revision rate (3.2 avg) (confidence: 78%)
3. 99% rule violations: 80% occur in tasks >5 story points (confidence: 92%)
Estimation adjustments:
- Database tasks: Use 2.5x multiplier (based on 15 historical tasks)
- Auth tasks: Use 1.8x multiplier (based on 9 historical tasks)
Predictions for current project:
- Task G004 (database migration): Likely needs +150% time buffer
- High risk of escalation if not broken into smaller tasks
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/pattern_insights.json
Scenario: Insufficient Data
Input: Pattern mining on 2nd project run
Expected output:
Pattern Mining Results:
- Analyzed: 2 historical runs
- Patterns detected: 0
Insufficient historical data. Need at least 5 completed runs for reliable pattern detection.
Current data will be recorded for future analysis.
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/pattern_insights.json
If no historical data:
If data corrupted:
If current PM state not found: