Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)40k · #7381

react-audit-grep-patterns

Skill này làm gì

Bộ lệnh này giúp bạn kiểm tra mã React trước khi cập nhật lên phiên bản mới hơn (18.3.1 hoặc 19). Nó tìm các phần mã có thể cần điều chỉnh.

Khi nào nên dùng

  • ✓Khi bạn lên kế hoạch cập nhật dự án React.
  • ✓Khi bạn muốn đảm bảo mã cũ vẫn chạy với phiên bản mới.
  • ✓Để tìm các vấn đề cụ thể trong file test.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/react-audit-grep-patterns/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/react-audit-grep-patterns/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để kiểm tra mã React của tôi trước khi nâng cấp lên phiên bản 19?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng chương trình có tên “grep” để tìm các mẫu cụ thể trong mọi tệp mã. Nó biết cần tìm mẫu nào để phát hiện những thứ như hàm cũ hoặc các vấn đề tương thích.

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.

React Audit Grep Patterns

Complete scan command library for React 18.3.1 and React 19 migration audits.

Usage

Read the relevant section for your target:

  • references/react18-scans.md - all scans for React 16/17 → 18.3.1 audit
  • references/react19-scans.md - all scans for React 18 → 19 audit
  • references/test-scans.md - test file specific scans (used by both auditors)
  • references/dep-scans.md - dependency and peer conflict scans

Base Patterns Used Across All Scans

# Standard flags used throughout:
# -r = recursive
# -n = show line numbers
# -l = show filenames only (for counting affected files)
# --include="*.js" --include="*.jsx" = JS/JSX files only
# | grep -v "\.test\.\|\.spec\.\|__tests__" = exclude test files
# | grep -v "node_modules" = safety (usually handled by not scanning node_modules)
# 2>/dev/null = suppress "no files found" errors

# Source files only (exclude tests):
SRC_FLAGS='--include="*.js" --include="*.jsx"'
EXCLUDE_TESTS='grep -v "\.test\.\|\.spec\.\|__tests__"'

# Test files only:
TEST_FLAGS='--include="*.test.js" --include="*.test.jsx" --include="*.spec.js" --include="*.spec.jsx"'
Câu hỏi thường gặp

“Grep scan” là gì?

Đây là cách tìm một đoạn văn bản cụ thể trong nhiều tệp mã cùng lúc.

Vì sao tôi cần kiểm tra mã trước khi cập nhật?

Các phiên bản phần mềm mới có thể thay đổi hoặc xóa các phần cũ, làm hỏng mã của bạn nếu bạn không điều chỉnh.

API là gì?

API giống như các “lệnh” hoặc “công cụ” mà React cung cấp để bạn dùng trong mã. Một số có thể bị xóa hoặc thay đổi ở phiên bản mới.

Chi tiết

Mô tả gốc của tác giả

Provides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever running a migration audit - for both the react18-auditor and react19-auditor agents. Contains every grep pattern needed to find deprecated APIs, removed APIs, unsafe lifecycle methods, batching vulnerabilities, test file issues, dependency confli

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7381
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự