coding
Skill này làm gì
Skill này giúp agent AI điều tra và thay đổi mã trong một kho lưu trữ, rồi kiểm tra kết quả. Skill dành cho người muốn một trợ lý thực hiện thay đổi mã thật sự và cẩn thận.
Khi nào nên dùng
- ✓Khi bạn muốn agent sửa một lỗi hoặc thêm tính năng trong một thư mục dự án.
- ✓Khi bạn cần agent tuân theo quy tắc và lệnh kiểm thử của chính dự án.
- ✓Khi bạn muốn một thay đổi mã được kiểm tra bằng cách chạy bộ kiểm thử của dự án trước khi bạn dùng nó.
Liên kết skill
https://github.com/leon-ai/leon/blob/develop/skills/agent/coding/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ể sửa lỗi định dạng ngày tháng trong dự án này và chạy các kiểm thử để xác nhận nó hoạt động không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm các file liên quan, đọc các hướng dẫn của dự án và thực hiện thay đổi. Sau đó nó chạy bộ kiểm thử của dự án và báo cáo những gì đã thay đổi và những gì đã kiểm tra.
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.
Coding
Code directly with Leon's existing loop and tools. Respect scope: analysis does not authorize edits, commits, pushes or publication. Delegate only on owner request or applicable preference.
For delegation, use the owner's preferred available agent/interface. Pass the repository, task, instructions and authorized scope; inspect and verify results, not just prompt submission. If unavailable, explain briefly and continue directly within scope.
Repository and instructions
- Establish the exact workspace/cwd from the request and live observations. Read relevant manifests and nearby code; reuse helpers before adding abstractions.
- Before project commands or edits, inspect applicable
AGENTS.mdfiles from repository root through each target directory.file.readincludes them inrepositoryInstructionswith source reads; read missing instructions explicitly. Confirm full returned text, since shell success alone does not prove a file was read. Reuse complete returned instructions, including unchanged content referenced in earlier visible tool results, instead of rediscovering the same files. Apply their package manager and test commands to the baseline as well as final checks. Deeper rules override broader ones only in their subtree. For non-Git work, use the owner-selected boundary, excluding unrelated parent instructions. - In plan details, record workspace, instruction paths, constraints, and acceptance criteria with required checks from the request/references. Discover nested instructions before editing new directories. After compaction/continuation, reread applicable files in full before editing; summaries cannot replace current instructions.
- Inspect Git status and staged/unstaged diffs; record and preserve unrelated changed/untracked content. Never reset, clean, stage or commit owner work without authorization. Use an isolated worktree when concurrency or the requested workflow warrants it.
Investigate and change
- Select the functions needed for inspection, authorized edits and verification together from the tool index; reuse their schemas throughout the task. Expand discovery only when evidence requires another capability. Use bounded reads, ripgrep and available structural search. Trace definitions/callers and check installed dependencies; never invent symbols/APIs. Read package metadata from its manifest; respect package exports and resolve dependencies from their owning source rather than assuming a flat install layout.
- Batch independent reads of known files, searches and edits to different files in one response. Combine independent commands/checks when each result and exit status remains visible; keep dependent checks after their inputs exist. Include plan updates supported by prior evidence alongside the next independent action. Do not weaken verification or bypass dedicated tool safeguards to reduce call counts.
- Reproduce bugs before editing; use affected existing tests when baseline evidence is needed to distinguish existing failures from regressions. Run repository-required baseline checks even when an interactive reproduction already shows the bug; do not infer a full baseline suite requirement from a rule to run lint or relevant tests. Extend only meaningful coverage when authorized, and never weaken tests for a pass.
- Prefer
file.patchwith the current read's hash when available, unique exact context and unrelated changes preserved. For stale/ambiguous matches, reread and revise; never repeat unchanged patches or overwrite from partial views. - Use
file.writefor new files; overwriting requires complete current content. Follow project formatting and dependency rules. - Prefer
shell.executeCommandfor short finite commands/checks. Useshell.startSessionfor long checks, installs, servers, watchers and interactive programs so owner follow-ups can be handled without discarding running work. Supply the observed workspace cwd and use the project's commands and package manager. - Record session IDs and commands in the plan, follow output cursors and verify process status; starting is not completion/success. After follow-ups or interruptions, inspect retained work before restarting anything. Informational questions preserve the task and its sessions; stop affected sessions when the owner cancels or redirects work that is no longer applicable. Never invent handles, replay commands for output or send secrets through stdin.
Verify and finish
- Inspect test scripts be
Câu hỏi thường gặp
Agent có commit hoặc xuất bản mã của tôi không?
Không tự ý. Skill nói rằng việc phân tích không cho phép commit, push hay xuất bản, trừ khi bạn yêu cầu.
Agent có tuân theo quy tắc của dự án không?
Có. Nó đọc các file hướng dẫn của dự án và áp dụng trình quản lý gói cùng lệnh kiểm thử mà chúng nêu ra.
Nó có thể dùng một agent khác cho một phần công việc không?
Chỉ khi bạn yêu cầu, hoặc khi thiết lập của bạn ưu tiên điều đó. Nếu không, nó làm việc trực tiếp.
Chi tiết
Mô tả gốc của tác giả
Investigate, implement and verify code changes directly in a repository using Leon's file, search and shell tools.
repo: leon-ai/leon
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10740
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
document-authoring
18kGiúp agent của bạn tạo biểu đồ, PDF, file Word, bảng tính và bộ slide, rồi kiểm tra từng file trước khi bạn nhận.
live-tutorial
18kCho phép agent của bạn trình diễn một quy trình trong ứng dụng và biến các ảnh chụp màn hình thành video hướng dẫn MP4 có chú thích.
media-production
18kGiúp agent của bạn tạo và chỉnh sửa hình ảnh, đồ họa vector, âm thanh và video, rồi kiểm tra các file hoàn chỉnh trước khi giao.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.