replica-diff
Skill này làm gì
Skill này so sánh ứng dụng mới với ứng dụng tham chiếu, cả về tính năng lẫn bố cục màn hình. Skill dành cho các đội muốn có danh sách rõ ràng những gì còn thiếu trước khi ra mắt.
Khi nào nên dùng
- ✓Khi bạn muốn biết ứng dụng của mình đã có bao nhiêu tính năng của ứng dụng tham chiếu.
- ✓Khi bạn cần danh sách các tính năng còn thiếu theo thứ tự xây dựng.
- ✓Khi bạn muốn so sánh ảnh chụp màn hình để kiểm tra bố cục và bỏ qua màu sắc.
Liên kết skill
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-diff/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể cho tôi biết ứng dụng của tôi gần với danh sách tính năng tham chiếu đến đâu và còn thiếu gì không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra ma trận tính năng và dùng một script Python để tính điểm có trọng số: tính năng bắt buộc có trọng số cao hơn tính năng nên có. So sánh bố cục dùng các công cụ có sẵn trong thư viện chuẩn, nên không cần cài thêm gì.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Skill có tìm cách khớp từng pixel không?
Không. Skill nói tương đồng nghĩa là làm được cùng một việc, chứ không phải trông giống hệt.
Có cần phần mềm bổ sung không?
Không. Hai công cụ chỉ dùng thư viện chuẩn của Python.
Điểm bố cục có tính đến màu sắc không?
Không. Kiểm tra bố cục cố ý bỏ qua màu để việc đổi thương hiệu không làm giảm điểm.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13581
- Giấy phép
- MIT
- Cập nhật
- 3/10/2026
Bình luận
- …
Thêm skill từ kho mã này
replica-architect
7.1kGiúp agent của bạn lên kế hoạch stack, cơ sở dữ liệu và API cho ứng dụng mới dựa trên bản đồ tính năng, xây từ một lát cắt mỏng chạy được trước.
replica-backend
7.1kGiúp agent của bạn xây phần máy chủ của ứng dụng với đăng nhập, quy tắc cơ sở dữ liệu, thanh toán Stripe, email và tác vụ nền bằng API chính thức.
replica-brand
7.1kGiúp agent của bạn đặt tên và đổi thương hiệu cho ứng dụng để nổi bật, gồm kiểm tra tên, bảng màu mới, brief logo và quét tìm tên cũ còn sót lại.
replica-build
7.1kGiúp agent của bạn xây từng màn hình của ứng dụng mới từ bản đồ tính năng, bắt đầu bằng khung vỏ rồi đến luồng cốt lõi, và tất cả đều được viết mới.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.