cupertino-longevity
Use at architecture-decision time, together with cupertino-integrate, to evaluate whether an architecture, API surface, or codebase structure can evolve incrementally or will force a future rewrite. Trigger on 'will this scale', 'future-proof this', 'API versioning strategy', 'will I regret this architecture', 'is this extensible', 'migration path', 'plugin system', or any design discussion where long-term evolvability is genuinely at stake — not on routine feature work with no durability question.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- cupertino-longevity
- description
- Use at architecture-decision time, together with cupertino-integrate, to evaluate whether an architecture, API surface, or codebase structure can evolve incrementally or will force a future rewrite. Trigger on 'will this scale', 'future-proof this', 'API versioning strategy', 'will I regret this architecture', 'is this extensible', 'migration path', 'plugin system', or any design discussion where long-term evolvability is genuinely at stake — not on routine feature work with no durability question.
03 SKILL.md 正文
Judge whether this architecture can evolve, or whether it is quietly building toward a forced rewrite (a "Vista Trap" — a decision that looks fine today but has no incremental path forward, the way Windows Vista's restart-from-scratch approach differed from the unbroken NeXTSTEP → macOS → Apple Silicon line).
Steps
-
Vista Trap Table: list concrete decisions under consideration or already made, and for each, name the specific way it could force a rewrite rather than an incremental upgrade (a hardcoded assumption, a leaky abstraction, a dependency with no exit path).
-
Evolution Readiness Score — exactly 6 dimensions, each scored 1–5, where 5 always means most evolution-ready on that dimension:
- API/interface stability — 1 = no versioning strategy at all, 5 = full semver with deprecation windows
- Data model flexibility — 1 = schema changes require coordinated downtime/migration, 5 = additive changes ship without touching existing consumers
- Dependency exit costs — 1 = locked into a single vendor/format with no migration path, 5 = swappable behind a stable interface with a documented exit route
- Test/characterization coverage of current behavior — 1 = no tests capture current behavior, 5 = current behavior is fully characterized so a rewrite could be verified against it
- Deployment/rollback reversibility — 1 = a bad deploy requires manual data repair to undo, 5 = any deploy can be rolled back automatically with no data loss
- Team knowledge concentration (bus-factor risk) — 1 = one person can explain the design, 5 = the design is documented and understood across the team
Compute the total mechanically — do not eyeball whether the roadmap is needed:
echo '{"dimensionScores": [d1, d2, d3, d4, d5, d6]}' | python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/validators.py" evolution-scoreThe script rejects any call that doesn't supply exactly 6 integer scores from 1–5, and returns
rosettaRoadmapRequiredcomputed against the fixed threshold of 18 — total < 18 requires a Rosetta Roadmap, total ≥ 18 must NOT include one. Follow whatever the script returns; do not override it with judgment either direction. -
Vista Countdown: give a dated forecast of when the current decision is likely to force a rewrite if nothing changes, grounded in the specific dimensions that scored lowest.
-
Top 3 seams to stabilize: the specific interfaces or boundaries most worth hardening now to buy the most evolvability per unit effort.
-
Rosetta Roadmap — only if the script said
rosettaRoadmapRequired: true. A phased plan (named after Apple's PowerPC→Intel Rosetta translation layer) for migrating off the risky decision incrementally, without a stop-the-world rewrite.
Distinguish from cannibalization
Before calling anything a Vista Trap, apply the distinguishing test: could this keep improving incrementally? If no, it is a Vista Trap (forced, architecturally bad). If yes, and someone is choosing to replace it anyway because a successor could be built better, that is cannibalization territory (cupertino-cannibalize) — a deliberate, healthy choice, not a trap. Do not default to calling every replacement decision a Vista Trap.
When paired with cupertino-integrate
If a specific seam decision is also being evaluated with cupertino-integrate, present both readouts side by side, each explicitly attributed ("longevity says X, integrate says Y"). Never average them into one verdict that hides which discipline actually won — a seam can be fine to delegate on integration grounds and still risky on longevity grounds, and that tension is the useful output, not noise to smooth over.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.