Chuyển đến nội dung
Skillpedia
Lập trình chung9.0k · #12314

ontoly-software-graph

Skill này làm gì

Skill này cho phép một agent AI trả lời các câu hỏi về cách một dự án phần mềm được xây dựng, bằng một bản đồ code được tạo sẵn. Nó dành cho lập trình viên rà soát kiến trúc hoặc lên kế hoạch thay đổi.

Khi nào nên dùng

  • ✓Khi bạn muốn hiểu cấu trúc của một dự án phần mềm.
  • ✓Khi bạn cần truy vết cách một yêu cầu đi qua code.
  • ✓Khi bạn lên kế hoạch refactor và muốn xem nó có thể ảnh hưởng đến những gì.

Liên kết skill

https://github.com/anbeime/skill/blob/main/skills/ontoly-software-graph/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/anbeime/skill/blob/main/skills/ontoly-software-graph/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

“Dùng bản đồ code, hãy cho tôi xem những service nào phụ thuộc vào module thanh toán trước khi tôi refactor nó.”

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

Cách hoạt động

Skill kiểm tra xem có đồ thị Ontoly nào đã tồn tại không, dùng các công cụ của nó để trả lời câu hỏi kèm bằng chứng được trích dẫn, và chỉ tìm trong file nguồn khi đồ thị không giúp được.

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.

Ontoly Software Graph

Use this skill when a coding agent needs evidence-backed software understanding from an Ontoly graph before searching repository files directly.

When to Use

  • Explaining a repository architecture
  • Tracing a request, route, controller, service, or dependency path
  • Finding owners of services, modules, routes, configuration, or environment variables
  • Reviewing dependency impact before a refactor
  • Auditing dead code, cycles, unresolved imports, graph quality, or semantic coverage
  • Preparing documentation, onboarding notes, or architecture review from graph evidence

Required Workflow

  1. Check whether an Ontoly graph already exists by looking for .ontoly/, SoftwareGraph.json, diagnostics.json, validation reports, or an Ontoly MCP configuration.

  2. If no graph exists and the user permits local analysis, run:

    ontoly build .
    
  3. Inspect graph health before answering: diagnostics, graph hash, semantic coverage, trust or quality score, framework detection, and generation timestamp.

  4. Prefer Ontoly CLI or MCP capabilities for graph questions instead of scanning source files first.

  5. Use repository search only when Ontoly cannot answer, the graph is stale, the graph is incomplete, or the user explicitly asks for source-level verification.

  6. Always cite graph evidence in the answer: node IDs, edge types, file paths, source locations, diagnostics, or framework analyzer output.

  7. State confidence from graph evidence. Do not guess confidence.

Useful Ontoly Capabilities

  • ExplainArchitecture for repository and package topology
  • FindDependencies for dependency trees and direct consumers
  • ImpactAnalysis for refactor blast radius
  • TraceExecution for request, route, and call-flow tracing
  • FindConfigurationUsage for configuration and environment variable usage
  • FrameworkReport for detected framework concepts such as modules, controllers, providers, and routes
  • FindDeadCode for unreachable or unused graph regions

Answer Shape

When answering, include:

  • the direct answer
  • graph evidence
  • confidence
  • diagnostics or caveats
  • fallback source inspection only if needed

Example:

AuthController handles authentication.

Evidence:
- node: class:src/auth/auth.controller.ts:AuthController
- route edges: HANDLES POST /login, POST /logout
- dependency edges: USES AuthService, JwtService

Confidence: high, because the graph has controller, route, and dependency edges with source locations.

Fallback Rules

  • If the graph is missing, build it first when allowed.
  • If graph validation fails, report the failure and use source search only to verify the affected area.
  • If multiple nodes match the same name, ask for disambiguation or show the candidates with package/module context.
  • If the requested concept is not in the graph, return NOT_FOUND with the closest graph evidence instead of inventing an answer.
Câu hỏi thường gặp

Nếu tôi chưa có đồ thị thì sao?

Nếu bạn cho phép, skill có thể xây một đồ thị trên máy bạn bằng lệnh ontoly.

Các câu trả lời có trỏ đến code thật không?

Có. Skill yêu cầu agent trích dẫn ID node, loại kết nối và đường dẫn file từ đồ thị.

Nó có tìm được code không dùng đến không?

Có. Nó bao gồm các đợt kiểm toán code chết, vòng phụ thuộc và import chưa được giải quyết.

Chi tiết

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

Use Ontoly's deterministic Software Graph and MCP capabilities for architecture review, request tracing, dependency analysis, configuration lookup, and impact analysis before falling back to source-file search.

repo: anbeime/skill

Độ phổ biến

Sao GitHub
9.0k
Vị trí xếp hạng
#12314
Giấy phép
—
Cập nhật
2/11/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ự