replica-diff
它能做什么
这项技能将新应用与参考应用进行对比,既比较功能,也比较屏幕布局。它适合希望在上线前清楚列出仍缺少哪些内容的团队。
适用场景
- ✓当你想知道你的版本已经具备参考应用多少功能的时候。
- ✓当你需要按照开发顺序列出缺失功能时。
- ✓当你希望通过截图对比来检查布局、并忽略颜色的时候。
技能链接
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-diff/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我看看我的应用与参考功能清单相比有多接近,以及还缺哪些功能。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查功能矩阵,并使用 Python 脚本计算加权分数:必备功能的权重高于可选功能。布局对比使用标准库工具,无需额外安装。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
replica-diff
Two tools in this folder, both standard-library Python, no installs:
python3 parity.py replica/features.csv # feature parity + missing list
python3 imgdiff.py replica/screens/S07.png replica/clone-screens/S07.png --out diff-S07.png
python3 imgdiff.py a.png b.png --json > replica/diffs/S07.json # for parity.py --visual
python3 parity.py replica/features.csv --visual replica/diffs/*.json --markdown > replica/parity.md
What parity means here
Parity means it does the same job, not that it looks the same. The feature score is the number that matters: can a user do everything they could do in the original. The layout score checks structure (is the information in the same places, in the same hierarchy), because that is what makes a switcher feel at home. It deliberately ignores colour, because replica-brand changes every colour on purpose. Do not chase pixel parity with the original. Its exact look is its trade dress, and it changes before launch.
Step 1: feature parity
Make sure replica/features.csv is current: every row's clone column is
yes, partial (with a note), no, or skip (with a reason). Then:
python3 parity.py replica/features.csv
It weights must 3, should 2, could 1, counts partial as half, leaves out
skip rows and rows you added that the original does not have, and prints:
the score, must-haves done of total, each area weakest first, and the missing
list in build order. Must-haves not done means not shippable, and it says so.
Step 2: layout diff
For each key screen, take two screenshots at the same viewport (1440x900
desktop, 390x844 mobile) in the same state (same data shape, same tab
open, logged in the same way). The original's come from public pages or the
user's own account, saved in replica/screens/. The clone's go in
replica/clone-screens/.
python3 imgdiff.py replica/screens/S07.png replica/clone-screens/S07.png --out replica/diffs/S07.png
Layout mode (default) turns both into edge maps, cuts them into a grid, and compares where things are, scoring only cells with something in them. It reports the score (matches 90+, close 75+, partly 50+, different), the regions that differ (in the original's pixel coordinates, biggest first), and a height difference if the clone's page is much longer or shorter. Retina and non-retina screenshots compare fine: both are scaled to the same width.
--mode pixel is exact comparison. Use it for your own regressions (clone
today against clone last week), not against the original.
Step 3: behaviour diff
Walk each flow in both apps and compare what the scores cannot see: clicks to finish the core flow, what happens on errors, what is remembered between visits, what emails arrive. Fewer clicks than the original is a win. Write each difference as: flow, original does, clone does, fix or keep.
Step 4: the report
replica/parity.md: overall score, feature score, layout score per screen,
missing features in build order, behaviour differences, and a verdict:
- not shippable: any must-have missing, or any open S1 bug
- shippable: all must-haves done, feature score 80+, no open S1 or S2
- better than the original: shippable, plus fixes from replica-entrepreneur. This is the goal. A straight copy has no reason to exist.
Give honest numbers. A clone at 62% is at 62%.
Output
replica/parity.md, the diff images, and the top five things to build next.
Then /replica-build for the gaps, or /replica-entrepreneur if parity is
there.
常见问题
它是否追求像素级完全一致?
不追求。该技能说明,功能对等指的是完成同样的工作,而不是外观一样。
它需要额外的软件吗?
不需要。这两个工具只使用 Python 标准库。
布局评分会计入颜色吗?
不会。布局检查有意忽略颜色,所以换品牌色不会降低分数。
详情
作者的原始描述
Compares an app clone against the original: a feature parity score from the feature matrix (weighted by must, should, could) with the missing list in build order, plus a screenshot layout diff that ignores colour so a rebrand does not count against you. Two standard-library Python tools. Use when the user says "how close is my clone", "compare it to the original", "what's missing", "parity check", "diff the screens", "is it ready", or after /replica-test.
热度
- GitHub 星标
- 7.1k
- 排名
- #13581
- 许可证
- MIT
- 更新时间
- 2026/10/3
评论
- …
同一仓库的更多技能
replica-architect
7.1k帮你的智能体根据功能地图,为新应用规划技术栈、数据库和 API,并先从一个可工作的薄切片开始安排构建顺序。
replica-backend
7.1k帮你的智能体使用官方 API 构建应用的服务端,包括登录、数据库规则、Stripe 支付、邮件以及后台任务。
replica-brand
7.1k帮你的智能体为应用命名并重新塑造品牌,使其与众不同,包括需要进行的名称检查、新的配色、标识简报,以及对残留名称的全面扫描。
replica-build
7.1k帮你的智能体根据功能地图,从外壳开始、再到核心流程,逐屏构建新应用,所有内容都重新编写。