complexity-scorer-3-context-aware-scoring
정보
이 스킬은 저장소 등급과 도메인에 따라 점수를 조정하여 복잡성 분석에 상황 인식 점수 매기기를 추가합니다. 저장소를 서로 다른 우선순위 수준(티어1, 티어2, 티어3, 개인)으로 자동 분류하여 더욱 세분화된 복잡성 평가를 제공합니다. 코드베이스의 전략적 중요성이나 도메인 상황을 반영한 복잡성 점수가 필요할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add vamseeachanta/workspace-hub/plugin add https://github.com/vamseeachanta/workspace-hubgit clone https://github.com/vamseeachanta/workspace-hub.git ~/.claude/skills/complexity-scorer-3-context-aware-scoringClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
3. Context-Aware Scoring (+1)
3. Context-Aware Scoring
Adjust scores based on context (repository, domain, etc.):
#!/bin/bash
# ABOUTME: Context-aware complexity scoring
# ABOUTME: Adjusts based on repository tier, domain
# Repository tiers
TIER1_REPOS="workspace-hub|digitalmodel|energy|frontierdeepwater"
TIER2_REPOS="assetutilities|worldenergydata|rock-oil-field"
TIER3_REPOS="doris|saipem|OGManufacturing|seanation"
PERSONAL_ACTIVE="aceengineer-admin|aceengineer-website"
PERSONAL_EXPERIMENTAL="hobbies|sd-work|acma-projects"
# Get repository tier
get_repo_tier() {
local repo="$1"
if echo "$repo" | grep -qE "$TIER1_REPOS"; then
echo "tier1"
elif echo "$repo" | grep -qE "$TIER2_REPOS"; then
echo "tier2"
elif echo "$repo" | grep -qE "$TIER3_REPOS"; then
echo "tier3"
elif echo "$repo" | grep -qE "$PERSONAL_ACTIVE"; then
echo "personal_active"
elif echo "$repo" | grep -qE "$PERSONAL_EXPERIMENTAL"; then
echo "personal_experimental"
else
echo "unknown"
fi
}
# Adjust score based on context
adjust_for_context() {
local base_score="$1"
local repo="$2"
local adjusted=$base_score
local tier=$(get_repo_tier "$repo")
case "$tier" in
tier1)
# Production repos bias toward higher quality
((adjusted+=1))
;;
tier3|personal_experimental)
# Maintenance/experimental bias toward efficiency
((adjusted-=1))
;;
esac
echo $adjusted
}
# Full scoring with context
score_with_context() {
local task="$1"
local repo="$2"
local base_score=$(calculate_complexity "$task")
local final_score=$(adjust_for_context "$base_score" "$repo")
echo $final_score
}
4. Score Classification
Map scores to categories:
#!/bin/bash
# ABOUTME: Map complexity scores to categories
# ABOUTME: Provides actionable classifications
# Classification thresholds
THRESHOLD_HIGH=5
THRESHOLD_MEDIUM=1
THRESHOLD_LOW=-2
# Classify score
classify_complexity() {
local score="$1"
if [[ $score -ge $THRESHOLD_HIGH ]]; then
echo "high"
elif [[ $score -ge $THRESHOLD_MEDIUM ]]; then
echo "medium"
elif [[ $score -ge $THRESHOLD_LOW ]]; then
echo "low"
else
echo "trivial"
fi
}
# Get recommendation based on classification
get_recommendation() {
local score="$1"
local classification=$(classify_complexity "$score")
case "$classification" in
high)
echo "OPUS"
echo "Use for complex architecture, multi-file refactoring, security analysis"
;;
medium)
echo "SONNET"
echo "Standard implementation, code review, documentation"
;;
low)
echo "HAIKU"
echo "Quick queries, status checks, simple operations"
;;
trivial)
echo "HAIKU"
echo "Trivial task - consider if AI is even needed"
;;
esac
}
# Get color for display
get_score_color() {
local score="$1"
local classification=$(classify_complexity "$score")
case "$classification" in
high) echo "$GREEN" ;;
medium) echo "$BLUE" ;;
low) echo "$YELLOW" ;;
trivial) echo "$CYAN" ;;
esac
}
GitHub 저장소
연관 스킬
algorithmic-art
메타This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.
subagent-driven-development
개발This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.
executing-plans
디자인Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.
cost-optimization
기타This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.
