编程

repair-or-replace

试用

Decide whether to fix, replace, or recycle a broken item. Takes item type, age, symptoms, and repair estimate, then produces a scored recommendation across cost, lifespan, sentimental value, and environmental impact.

它能做什么

is a skill that helps you decide whether to fix a broken item, buy a replacement, or recycle it. It builds a weighted decision matrix across five factors — repair cost, replacement cost, remaining lifespan, sentimental value, and environmental impact — then outputs a clear, score-backed recommendat…

技能文档

Repair or Replace

Don't guess. Score it.

Repair or Replace is a skill that helps you decide whether to fix a broken item, buy a replacement, or recycle it. It builds a weighted decision matrix across five factors — repair cost, replacement cost, remaining lifespan, sentimental value, and environmental impact — then outputs a clear, score-backed recommendation with reasoning.

When to Use

Activate this skill when:

  • An appliance, device, or tool is broken and you're unsure whether to fix it
  • You have a repair estimate and want to compare it against replacement
  • You want to factor environmental impact into a purchasing decision
  • You're helping someone else decide what to do with a broken item
  • You want a structured, defensible decision rather than a gut call

How It Works

The script takes structured input about the item and its condition:

ParameterDescriptionExample
--itemWhat the item is"washing machine"
--ageHow old it is (years)8
--repair-costEstimated repair cost250
--replacement-costCost of a new equivalent800
--expected-lifespanExpected total lifespan of this item type (years)12
--symptomsWhat's wrong (free text)"won't spin"
--sentimentalSentimental value (1-10)3
--conditionOverall condition aside from the fault (1-10)6

It then scores the decision across five dimensions, applies weights, and produces a recommendation: Repair, Replace, or Recycle/Donate.

Decision Matrix

FactorWeightRepair FavorsReplace Favors
Cost Ratio30%Repair < 50% of replacementRepair > 50% of replacement
Remaining Life25%<50% of expected lifespan used>50% of expected lifespan used
Condition15%Good condition otherwiseMultiple issues, poor condition
Sentimental10%High sentimental valueLow sentimental value
Environmental20%Repair avoids e-wasteNew item is more efficient

See references/decision-matrix.md for the full scoring algorithm.

Quick Reference

NeedCommand
Basic decisionpython3 scripts/repair_or_replace.py --item "laptop" --age 5 --repair-cost 300 --replacement-cost 1000
With symptoms and conditionpython3 scripts/repair_or_replace.py --item "fridge" --age 10 --repair-cost 200 --replacement-cost 900 --symptoms "not cooling" --condition 4
Factor in sentimentpython3 scripts/repair_or_replace.py --item "watch" --age 20 --repair-cost 150 --replacement-cost 500 --sentimental 9
JSON outputpython3 scripts/repair_or_replace.py ... --format json
Interactive modepython3 scripts/repair_or_replace.py --interactive

Recommendations

The script outputs one of three recommendations:

  • Repair — the item is worth fixing. Cost-effective, has remaining lifespan, or has sentimental/environmental value.
  • Replace — buying new is the better choice. Repair cost is too high relative to replacement, or the item is near end-of-life.
  • Recycle/Donate — the item is beyond economic repair. Dispose of it responsibly or donate if still partially functional.

Each recommendation includes a confidence score (0-100) and itemized reasoning.

Files

  • references/decision-matrix.md — full scoring algorithm and weight rationale
  • references/item-lifespans.md — expected lifespan data for common items
  • references/environmental-impact.md — e-waste and sustainability considerations
  • scripts/repair_or_replace.py — the main decision engine
  • scripts/sample_run.sh — example invocations for different item types

Common Pitfalls

  1. Ignoring hidden repair costs. The repair estimate often excludes diagnosis fees, shipping, or secondary issues discovered during repair. Add 15-20% to the estimate for a realistic comparison.

  2. Overestimating remaining lifespan. An 8-year-old washing machine with a 12-year expected lifespan doesn't have 4 "good" years left — the last quarter of lifespan tends to have escalating failure rates.

  3. Forgetting energy efficiency. A new appliance may be significantly more energy-efficient, saving money over time. Factor this into the replacement cost (see references/environmental-impact.md).

  4. Sentimental bias. It's easy to over-value items with emotional attachment. Be honest with the --sentimental score.

  5. Not considering safety. Some failures (gas appliances, electrical) carry safety risks if repaired poorly. If in doubt, replace.

Verification Checklist

  • Repair estimate is realistic (includes diagnosis, parts, labor)
  • Replacement cost reflects a comparable-quality item
  • Expected lifespan matches the item type (see references/item-lifespans.md)
  • Condition score accounts for wear beyond the current fault
  • Environmental factor considered (especially for large appliances)

License

MIT © Denis Voronin

相关技能

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

voronindenis5 的更多技能

浏览全部技能

Prepare salary negotiations with a structured toolkit: market-rate anchoring math, walk-away floor calculation, total-compensation evaluation (equity, bonuses, benefits), negotiation scripts for offers, raises, and counter-offers, and BATNA analysis. Use when the user has a job offer, is preparing a raise conversation, wants to know if their pay is competitive, or needs scripts and a strategy for negotiating compensation.

作者 voronindenis51 次安装

Use when your calendar is eating your week and you want to know exactly where the time goes, when planning recurring meetings for a team, before proposing a new recurring meeting, when someone says 'we should sync weekly' and you want data, or when auditing which meetings to kill — imports ICS calendar files, measures meeting hours per week/person/meeting-series (including double-bookings and fragmentation), computes focus-time destruction from meeting placement, scores the true cost of each series (hours × attendees × frequency), flags specific meetings to kill/shorten/make-async using explicit rules, and simulates the recovered hours before anyone has to argue about it.

作者 voronindenis52 次安装

Audit password vault exports (Bitwarden, 1Password, KeePass, Chrome, Firefox) for reuse, weakness, staleness, breach exposure, and 2FA gaps without ever storing or transmitting a plaintext password. Use when the user asks to audit passwords, check password strength/reuse, review vault health, or verify whether credentials appeared in breaches.

作者 voronindenis51 次安装

Turn flat resume bullets ('Responsible for X') into quantified STAR-method achievement narratives, score resumes against job descriptions for ATS keyword coverage and weak-phrase hazards, and expand each bullet into interview-ready stories with likely follow-up questions. Use when the user is writing or updating a resume/CV, preparing bullets for a job application, tailoring a resume to a specific job posting, or preparing interview stories from their experience.

作者 voronindenis51 次安装

Agent self-awareness of cognitive states — context fatigue, attention drift, memory debt, confidence erosion, and skill staleness. Detect, report, and mitigate degrading conditions before they cause failures.

作者 voronindenis5