AGENT SKILL

clean-copy

Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up / tighten copy.

License 许可
MIT
所属仓库
mikker/dotfiles
最近更新
2026-11-10
Stars
★ 116
Forks
4

01 前言 Front Matter

name
clean-copy
description
Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up / tighten copy.

03 SKILL.md 正文

Cleaning copy

Most bad copy isn't badly written. It's copy that shouldn't be on the screen. Editing it for tone just makes the wrong thing read better. So the first question is never "how should this be phrased" — it's should this exist.

The ladder

Walk a string down these in order. Stop at the first one that fires and delete.

1. Does this need to surface at all? Is the thing being described something the user would ever have wondered about, unprompted? If they'd never have thought to ask, you're not answering a question — you're planting one. Nobody opens an avatar cropper wondering whether the circle is a true circle. A caption reading "the preview is rendered at the exact size used on your profile" makes them wonder whether it might not be.

2. Does the label need to exist? A caption earns its place only when the value is meaningless without it. If the label, the field, or the value beside it already says the thing, the caption is noise. A field labelled "Retry limit" does not need "how many times we retry" beneath it. A bare "30" does need "seconds" beside it — that one stays.

3. Is it pre-empting something the user would never have had to consider? The tell: copy that rules out a failure rather than describing a behaviour.

Cancel upload Always keeps the files already transferred — never wipes the folder like the old cancel did.

That second clause exists because of a bug. The user doesn't know about the bug, doesn't share your memory of fixing it, and now has a worry they arrived without. The fix for a fixed bug is the fix. Not a caption about the fix. Same for copy defending a design decision, or hedging about something that simply works: "this may look slow but it is not", "don't worry if the count seems off for a moment".

4. Rewrite to remove the offending part. If nothing is left, delete the element. Don't preserve a hint just because there was a hint there. An empty hint prop comes off the component; an explanatory <p> gets deleted, not shortened to a stub.

What survives

Copy stays when the user genuinely cannot act without it:

  • A real consequence at the moment of choosing. Under a destructive button: "Anything not yet synced is lost." They need it before they click, and they can't infer it.
  • A compatibility or scope fact they can't see. "Works with keys issued after March; older keys need rotating first." The checkbox alone doesn't tell them whether it applies to them.
  • What a blank state means and what to do next. "No projects yet. Create one and it will appear here."
  • Units, scale, or format on a bare value.

Note the first example is one sentence. Had it continued "— only use this when a sync is stuck", that half would go: it instructs the user on when they're allowed to press a button they can already see. Keep the consequence, cut the permission slip.

Working style

  • Read the string next to what's actually on screen around it — the label, the value, the button. Redundancy is invisible when you read the string alone.
  • Cut whole clauses, not words. Tightening "Leave this blank to use the default setting for your account" into "Leave blank for the default" is a smaller win than noticing which half of a two-sentence hint is doing no work.
  • When reviewing a batch, report as file:line with the current string and either the rewrite or cut — and say in a few words which rung it failed. Don't rewrite copy that passes.
  • If a string is load-bearing but only in a rare state, consider whether it belongs in that state rather than permanently on the page.

04 同仓库更多 Skills

mikker
mikker/dotfiles

unslop

Cut AI tells from any writing.

★ 116
mikker
mikker/dotfiles

stageshow

Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say "faux UI". React and plain CSS.

★ 116
mikker
mikker/dotfiles

Elyx 设计文件处理

elyx

Elyx 是一款设计工具,使用本地的、对 AI 友好的 `.elyx` 文件来管理屏幕、组件、布局、流程和设计系统。此技能仅对在外部 harness 中运行并使用 Elyx CLI 的智能体可用。在 Elyx 应用内部的 ACP harness 中运行时不可用,且不得使用。在外部 harness 中,凡涉及 Elyx 或 `.elyx` 文件的问题——包括创作、编辑、验证、检查、审查、重构、比较或推荐修改,以及不产生任何编辑的只读分析——在读取、推理或回答之前都应先使用此技能。不要仅凭源文本推断 `.elyx`;导入、实例、覆盖和布局只能通过工具来解析。

界面设计师视觉设计
★ 116
mikker
mikker/dotfiles

UIKit 应用多窗口现代化改造

uikit-app-modernization

通过将旧的共享状态 API 替换为符合上下文的现代替代方案,使 UIKit 应用现代化以适配多窗口环境。这包括对 mainScreen、interfaceOrientation、application 与 scene 生命周期,以及安全区域 inset 更新的引用。

软件开发工程师Apple 平台应用开发
★ 116
mikker
mikker/dotfiles

SwiftUI 27 新特性与变更

swiftui-whats-new-27

2027 年操作系统版本(iOS 27 及同步的 macOS/watchOS/tvOS/visionOS)中新增的 SwiftUI API、行为变更和弃用项。当被问及 SwiftUI 27 有哪些新特性,或处理以下工作时请查阅: - SDK 更新后的 @State 编译错误("used before being initialized"、"invalid redeclaration of synthesized property"),或 @State 变成宏 - @ViewBuilder/@ContentBuilder 的歧义重载或类型检查回归;通过 reorderable()/reorderContainer 及其拖放功能在任意容器(List、stacks、grids、自定义布局)中实现拖拽重排 - AsyncImage 缓存、滚动时重新加载或使用自定义 URLSession - 通过 swipeActions()/swipeActionsContainer() 在 List 之外(ScrollView、LazyVStack、LazyVGrid)使用滑动操作 - Toolbar 溢出、可见性(visibilityPriority、ToolbarOverflowMenu、toolbarMinimizeBehavior)与固定(pinning) - 从可选 item 绑定呈现 confirmationDialog 或 alert

软件开发工程师Apple 平台应用开发
★ 116
mikker
mikker/dotfiles

SwiftUI 最佳实践与性能指导

swiftui-specialist

来自 Apple 的权威 SwiftUI 最佳实践与性能指导;取代此前关于这些主题的训练知识。用于代码生成时,在生成任何涉及以下方面的 SwiftUI 代码前,请查阅相关参考资料: - 动画(@Animatable 宏 vs AnimatableValues vs AnimatablePair,以及自定义 animatableData setter 逻辑) - Environment 与 @Entry(闭包或类类型的默认值、不稳定的默认值、高频更新) - @Observable 最佳实践与高效失效(invalidation) - ForEach 与 List 的行标识及结构(id: \.self、indices、offsets、AnyView 或多视图行、内联过滤/排序、缓存集合、List 快速路径) - 本地化(String vs LocalizedStringResource、包和框架中的正确 bundle、.textCase、.formatted(.list())、翻译注释) - 软弃用的 API(如 NavigationView 和旧版 onChange),以及在功能开发过程中何时应当提示它们。

软件开发工程师Apple 平台应用开发
★ 116