用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/MikeTreml/MissionControl --skill benchmarking-analyst命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Expert Electron application architecture skill for IPC design, main/renderer/preload boundaries, security hardening, performance optimization, packaging strategy, native integration, and cross-platform desktop development. Use when reviewing or designing Electron apps, planning migrations, auditing architecture risks, choosing IPC patterns, diagnosing startup or memory issues, or coordinating related Electron skills.
Generates DrawIO XML diagrams for Amazon Web Services architectures from text descriptions or images. Analyzes existing .drawio files to extract AWS components. Use for AWS architecture diagrams, cloud infrastructure documentation, or when converting AWS diagram images to editable DrawIO format.
Generates DrawIO XML diagrams for Google Cloud Platform architectures from text descriptions or images. Analyzes existing .drawio files to extract GCP components. Use for GCP architecture diagrams, cloud infrastructure documentation, or when converting GCP diagram images to editable DrawIO format.
基于 SOC 职业分类
正在显示 SKILL.md
| name | benchmarking-analyst |
| description | Benchmarking analysis skill for performance comparison and best practice identification. |
| allowed-tools | Bash(*) Read Write Edit Glob Grep WebFetch |
| metadata | {"author":"babysitter-sdk","version":"1.0.0","category":"continuous-improvement","backlog-id":"SK-IE-042"} |
You are benchmarking-analyst - a specialized skill for benchmarking analysis including performance comparison and best practice identification.
This skill enables AI-powered benchmarking including:
from dataclasses import dataclass
from typing import List, Dict, Optional
from datetime import datetime
from enum import Enum
class BenchmarkType(Enum):
INTERNAL = "internal" # Compare within organization
COMPETITIVE = "competitive" # Compare with competitors
FUNCTIONAL = "functional" # Compare similar functions across industries
GENERIC = "generic" # Compare with best-in-class anywhere
@dataclass
class BenchmarkProject:
title: str
benchmark_type: BenchmarkType
process_area: str
metrics: List[str]
partners: List[str]
owner: str
def setup_benchmark_project(project: BenchmarkProject):
"""
Set up benchmarking project structure
"""
phases = {
"1_planning": {
"status": "in_progress",
"tasks": [
{"task": "Identify what to benchmark", "status": "complete"},
{"task": "Identify benchmark partners", "status": "complete"},
{"task": "Determine data collection method", "status": "not_started"},
{"task": "Define metrics and calculations", "status": "not_started"}
]
},
"2_analysis": {
"status": "not_started",
"tasks": [
{"task": "Collect current performance data", "status": "not_started"},
{"task": "Collect partner performance data", "status": "not_started"},
{"task": "Determine performance gaps", "status": "not_started"},
{"task": "Identify enablers of superior performance", "status": "not_started"}
]
},
"3_integration": {
"status": "not_started",
"tasks": [
{"task": "Communicate findings", "status": "not_started"},
{"task": "Establish improvement goals", "status": "not_started"},
{"task": "Develop action plans", "status": "not_started"}
]
},
"4_action": {
"status": "not_started",
"tasks": [
{"task": "Implement improvements", "status": "not_started"},
{"task": "Monitor progress", "status": "not_started"},
{"task": "Recalibrate benchmarks", "status": "not_started"}
]
}
}
return {
"project_id": f"BM-{datetime.now().strftime('%Y%m%d')}",
"title": project.title,
"type": project.benchmark_type.value,
"process_area": project.process_area,
"metrics": project.metrics,
"partners": project.partners,
"owner": project.owner,
"created_date": datetime.now().strftime("%Y-%m-%d"),
"phases": phases,
"status": "planning"
}
def create_data_collection_template(metrics: List[str], partners: List[str]):
"""
Create template for benchmark data collection
"""
template = {
"data_points": {},
"collection_guidance": {}
}
for metric in metrics:
template["data_points"][metric] = {
"our_performance": {
"value": None,
"unit": None,
"period": None,
"data_source": None,
"confidence": None
},
"partners": {partner: {
"value": None,
"unit": None,
"period": None,
"data_source": None,
"is_estimate": False
} for partner in partners}
}
template["collection_guidance"][metric] = {
"definition": f"Standard definition for {metric}",
"calculation": f"How to calculate {metric}",
"data_sources": ["System A", , ],
:
}
template
():
issues = []
metric, values data[].items():
values[][] :
issues.append()
partners_with_data = ( p values[].values()
p[] )
partners_with_data == :
issues.append()
partners_with_data < (values[]) / :
issues.append()
units = ()
values[][]:
units.add(values[][])
p values[].values():
p[]:
units.add(p[])
(units) > :
issues.append()
{
: (issues) == ,
: issues,
: calculate_completeness(data)
}
():
total_cells =
filled_cells =
metric, values data[].items():
total_cells +=
values[][] :
filled_cells +=
partner_data values[].values():
total_cells +=
partner_data[] :
filled_cells +=
(filled_cells / total_cells * , ) total_cells >
import numpy as np
def perform_gap_analysis(data: Dict, higher_is_better: Dict = None):
"""
Perform gap analysis between our performance and benchmarks
higher_is_better: {metric: True/False}
"""
higher_is_better = higher_is_better or {}
gap_analysis = []
for metric, values in data['data_points'].items():
our_value = values['our_performance']['value']
if our_value is None:
continue
partner_values = [p['value'] for p in values['partners'].values()
if p['value'] is not None]
if not partner_values:
continue
# Calculate statistics
best = max(partner_values) if higher_is_better.get(metric, True) else min(partner_values)
worst = min(partner_values) if higher_is_better.get(metric, True) else max(partner_values)
median = np.median(partner_values)
mean = np.mean(partner_values)
# Calculate gaps
gap_to_best = best - our_value if higher_is_better.get(metric, True) our_value - best
gap_to_median = median - our_value higher_is_better.get(metric, ) our_value - median
all_values = partner_values + [our_value]
all_values_sorted = (all_values, reverse=higher_is_better.get(metric, ))
our_rank = all_values_sorted.index(our_value) +
percentile = (( - our_rank / (all_values)) * , )
gap_analysis.append({
: metric,
: our_value,
: best,
: (median, ),
: (mean, ),
: worst,
: (gap_to_best, ),
: (gap_to_median, ),
: (gap_to_best / our_value * , ) our_value != ,
: percentile,
: classify_position(percentile)
})
gap_analysis.sort(key= x: (x[]), reverse=)
{
: gap_analysis,
: {
: (gap_analysis),
: ( g gap_analysis g[] > ),
: ( g gap_analysis g[] < ),
: gap_analysis[][] gap_analysis
}
}
():
percentile >= :
percentile >= :
percentile >= :
percentile >= :
:
def identify_best_practices(gap_analysis: Dict, partner_insights: Dict):
"""
Identify best practices from benchmark partners
partner_insights: {partner: {metric: {'practice': str, 'enablers': [str]}}}
"""
best_practices = []
for gap in gap_analysis['gaps']:
metric = gap['metric']
if gap['gap_to_best'] <= 0:
# We are best-in-class, document our practice
best_practices.append({
'metric': metric,
'source': 'internal',
'practice': 'Current practice is best-in-class',
'value': gap['our_value'],
'action': 'document_and_share'
})
else:
# Find best performer's practice
for partner, insights in partner_insights.items():
if metric in insights:
if insights[metric].get('is_best'):
best_practices.append({
'metric': metric,
'source': partner,
'practice': insights[metric]['practice'],
'enablers': insights[metric].get('enablers', []),
'value': gap['best_in_class'],
'our_gap': gap[],
:
})
{
: best_practices,
: ( p best_practices p[] == ),
: ( p best_practices p[] == )
}
def set_improvement_targets(gap_analysis: Dict, timeline_years: int = 3):
"""
Set improvement targets based on gaps
"""
targets = []
for gap in gap_analysis['gaps']:
if gap['gap_to_median'] <= 0:
# Already above median, target best-in-class
target = gap['best_in_class']
ambition = 'stretch'
elif gap['position'] in ['Laggard', 'Below Average']:
# Significant gap, target median first
target = gap['median']
ambition = 'catch_up'
else:
# Close to median, target top quartile
target = gap['best_in_class'] * 0.9 # 90% of best
ambition = 'improve'
# Calculate annual improvement needed
total_improvement = target - gap['our_value']
annual_improvement = total_improvement / timeline_years
targets.append({
'metric': gap['metric'],
'current': gap['our_value'],
'target': round(target, 2),
'ambition': ambition,
'timeline_years': timeline_years,
'annual_improvement': round(annual_improvement, ),
: generate_milestones(gap[], target, timeline_years)
})
{
: targets,
: {
: ( t targets t[] == ),
: ( t targets t[] == ),
: ( t targets t[] == )
}
}
():
improvement = (target - current) / years
milestones = []
year (, years + ):
milestones.append({
: year,
: (current + improvement * year, )
})
milestones
def create_adaptation_plan(best_practice: Dict, our_context: Dict):
"""
Create plan to adapt best practice to our context
our_context: {
'constraints': [str],
'resources': [str],
'culture': str,
'current_capabilities': [str]
}
"""
adaptation = {
'practice': best_practice['practice'],
'source': best_practice['source'],
'expected_improvement': best_practice.get('our_gap'),
'adaptation_needed': [],
'prerequisites': [],
'implementation_phases': [],
'risks': []
}
# Identify adaptations based on context
if our_context.get('constraints'):
adaptation['adaptation_needed'].append({
'reason': 'Organizational constraints',
'details': our_context['constraints'],
'mitigation': 'Modify approach to work within constraints'
})
# Prerequisites based on enablers
enablers = best_practice.get('enablers', [])
for enabler in enablers:
if enabler not in our_context.get('current_capabilities', []):
adaptation['prerequisites'].append({
'capability': enabler,
'status': 'gap',
'action': f'Develop capability: {enabler}'
})
adaptation[] = [
{
: ,
: ,
: ,
: [, , ]
},
{
: ,
: ,
: ,
: [, , ]
},
{
: ,
: ,
: ,
: [, , ]
},
{
: ,
: ,
: ,
: [, , ]
}
]
adaptation[] = [
{: , : },
{: , : },
{: , : }
]
adaptation
def track_benchmark_progress(targets: List[Dict], current_performance: Dict):
"""
Track progress toward benchmark targets
"""
progress = []
for target in targets:
metric = target['metric']
current = current_performance.get(metric)
if current is None:
continue
baseline = target['current']
goal = target['target']
# Calculate progress
total_needed = goal - baseline
achieved = current - baseline
progress_pct = (achieved / total_needed * 100) if total_needed != 0 else 0
# Determine on-track status
# Expected progress based on elapsed time would be calculated here
# Simplified: check against annual milestones
progress.append({
'metric': metric,
'baseline': baseline,
'current': current,
'target': goal,
'improvement': round(achieved, 2),
'progress_percent': round(progress_pct, 1),
'remaining_gap': round(goal - current, 2),
'status': 'on_track' if progress_pct >= 80 else progress_pct >=
})
{
: progress,
: {
: ( p progress p[] == ),
: ( p progress p[] == ),
: ( p progress p[] == ),
: (np.mean([p[] p progress]), ) progress
}
}
This skill integrates with the following processes:
benchmarking-study-execution.jscontinuous-improvement-program.jsstrategic-planning.js{
"benchmark_project": {
"title": "Manufacturing Efficiency Study",
"type": "competitive",
"partners": ["Company A", "Company B", "Industry Avg"]
},
"gap_analysis": {
"metrics_analyzed": 8,
"below_median": 3,
"biggest_gap": {"metric": "OEE", "gap": 12}
},
"best_practices": [
{"metric": "OEE", "source": "Company A"