Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)48k · #5615

repo-foundation

Skill này làm gì

Tool này giúp thêm tính năng mới, sửa lỗi hoặc khởi tạo các phần của một dự án lập trình đang có. Nó cũng có thể dùng để thiết lập nền tảng ban đầu cho dự án mới hoặc tiếp tục công việc đang dang dở.

Khi nào nên dùng

  • ✓Khi bạn muốn thêm một tính năng mới vào dự án.
  • ✓Khi bạn cần sửa một lỗi trong code.
  • ✓Khi bạn đang bắt đầu một dự án mới hoặc một phần mới của dự án.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/repo-foundation/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/repo-foundation/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

“Thêm một tính năng mới để ghi lại việc người dùng đăng nhập trong dự án này.”

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

Cách hoạt động

Tool phân tích dự án hiện tại, bảo vệ các thay đổi đang có của bạn và triển khai các chỉ dẫn mới một cách có tổ chức. Nó đảm bảo công việc được làm hiệu quả, tránh phải làm lại.

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.

Repo foundation

When to Use

  • Use when the user asks to add a feature, fix a bug, or start a module in an existing project.
  • Use when establishing the minimum foundation for a new repository or subsystem.
  • Use when requirements authorize a schema, public-contract, ownership, or architecture migration.
  • Use when resuming unfinished work or reconciling stale notes with repository evidence.

Build on a foundation that's just big enough, add features on top of it, and change the architecture only when requirements force it. Aim for the least total rework.


Core principles

  • No universal dogma: don't impose a layout, error pattern, or framework the project doesn't need. Plain standard library is fine.
  • Scope, baseline, and user work:
    • Establish a clean baseline before mutating code: use the pre-existing revision/commit when Git exists; use a file inventory or snapshot when uninitialized or greenfield.
    • In a dirty workspace, protect pre-existing uncommitted user modifications. You may edit distinct parts of the same file as long as user work is preserved. Stop and ask only if there is an actual collision or ambiguous intent.
    • Never create commits or force Git initialization solely for handoff or tracking.
    • Reuse conventions only with healthy repository precedent. Don't treat accidental patterns or temporary workarounds as precedent, and don't expand into out-of-scope cleanup.
    • Don't push, publish, deploy, change branch protection, install system hooks, or buy anything unless the user asks.
  • Prose, naming, and restraint:
    • Names reflect business domain concepts and ownership.
    • Add comments only for information code cannot express: grounded rationale, non-obvious invariants, units, rounding, ordering, protocol quirks, or compatibility.
    • Do not narrate syntax; do not invent tickets, incidents, owners, or production histories.
    • Treat error and CLI text as contract surface: check callers and parsers before rewording.
    • Never invent ticket, PR, or incident references. An inaccessible or unverified reference is not evidence of fabrication. Preserve existing references unless repository evidence establishes that they are incorrect or obsolete; report material uncertainty instead of deleting them.
    • Do not strip valuable comments merely for cosmetic brevity; do not enforce arbitrary comment ratios.
    • Do not add abstractions, wrappers, or factory layers without concrete ownership, contract, or test seam needs.
  • Preserve consumed public contracts as defined in references/shared-contracts.md §1: keep documented types, values, errors, and serialization. Change a contract only when the task clearly authorizes it, then update callers, tests, and docs in scope.
  • Verification rigor & proportionate testing:
    • Record baseline failures and distinguish: (1) pre-existing failures outside scope, (2) in-scope failures to fix, (3) regressions from current changes, and (4) environment errors.
    • Verify the final code state; never use pre-cleanup test results to certify modified code.
    • Add or update persistent tests when a change introduces behavior, fixes a defect, alters a contract, or exposes a meaningful coverage gap. Prefer the repository's existing test framework and structure. Do not add tests solely for file-count or coverage optics. For documentation-only or mechanically verified changes, use the relevant lightweight checks and explain any material verification gap.
    • Check every requirement before you say you're done. Say what you verified, what you only read, and what you assumed. A command that exits 0 doesn't count if the file it should make isn't there.
  • Failure invariants & state preservation: if an operation can fail halfway, decide what must stay untouched. Validate inputs and ownership first, build the replacement on the side, keep the old state until the new one is ready, and test the failure boundary.

Mode selection

Mode Trigger Core Actions Exit Criteria
Bootstrap New repository from scratch or an area lacking minimal foundation (no build/test/run commands, conventions, or boundaries). Elicit critical constraints, choose just-enough design, set up minimal tooling/checks, implement and verify the first representative slice. Read bootstrap. Representative slice works and is verified; run/build commands are documented; repo is stable for subsequent work.

…

Câu hỏi thường gặp

“Giữ nguyên chỉnh sửa của người dùng” nghĩa là gì?

Nghĩa là nếu bạn đã bắt đầu thay đổi code, tool sẽ không xóa công việc của bạn. Nó sẽ cố gắng tích hợp các chỉ dẫn mới với những gì bạn đã làm.

“Hợp đồng công khai” là gì?

Đó là một thỏa thuận về cách các phần khác nhau của code giao tiếp với nhau. Tool đảm bảo các thỏa thuận này được duy trì hoặc cập nhật đúng cách khi cần.

Tool có thay đổi kiến trúc dự án của tôi không?

Chỉ khi thật sự cần thiết để đáp ứng yêu cầu mới. Mục tiêu là thực hiện những thay đổi tối thiểu để tránh phải làm lại.

Chi tiết

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

Implement features, fixes, modules, contract migrations, and resumed work while preserving user edits and authorized public contracts.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5615
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ự