用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Skill_Mall --skill weighted-scoring-matrix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | weighted-scoring-matrix |
| description | Multi-factor decisions become arbitrary without explicit weights: |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Multi-factor decisions become arbitrary without explicit weights:
Explicit scoring matrix with normalized weights.
// Define factors and weights (must sum to 1.0)
const factors = {
performance: { weight: 0.30, description: 'Response time, throughput' },
maintainability: { weight: 0.25, description: 'Code clarity, test coverage' },
cost: { weight: 0.20, description: 'Infrastructure, licensing' },
security: { weight: 0.15, description: 'Vulnerability surface' },
userExperience: { weight: 0.10, description: 'Ease of use, learning curve' }
};
// Score each option (1-5 scale)
const options = {
optionA: { performance: 4, maintainability: 5, cost: 3, security: 4, userExperience: 4 },
optionB: { performance: 5, maintainability: 3, cost: 2, security: 5, userExperience: 3 },
optionC: { performance: 3, maintainability: 4, cost: 5, security: 3, userExperience: 5 }
};
// Calculate weighted scores
function calculateScore(scores) {
return Object.entries(factors).reduce((total, [factor, { weight }]) => {
return total + (scores[factor] * weight);
}, 0);
}
Object.entries(options).forEach(([name, scores]) => {
console.log(`${name}: ${calculateScore(scores).toFixed(2)}`);
});
// optionA: 4.05, optionB: 3.70, optionC: 4.00
For factors that can disqualify or strongly prefer:
const boosts = {
mustHave: (score) => score < 3 ? 0 : score, // Zero if below threshold
preferred: (score) => score >= 4 ? score * 1.1 : score // 10% boost if high
};
| Option | Perf (0.30) | Maint (0.25) | Cost (0.20) | Sec (0.15) | UX (0.10) | Total |
|---|---|---|---|---|---|---|
| A | 4 (1.20) | 5 (1.25) | 3 (0.60) | 4 (0.60) | 4 (0.40) | 4.05 |
| B | 5 (1.50) | 3 (0.75) | 2 (0.40) | 5 (0.75) | 3 (0.30) | 3.70 |
| C | 3 (0.90) | 4 (1.00) | 5 (1.00) | 3 (0.45) | 5 (0.50) | 3.85 |
architecture decision-making scoring evaluation