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.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
“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
Check whether an Ontoly graph already exists by looking for
.ontoly/,SoftwareGraph.json,diagnostics.json, validation reports, or an Ontoly MCP configuration.If no graph exists and the user permits local analysis, run:
ontoly build .Inspect graph health before answering: diagnostics, graph hash, semantic coverage, trust or quality score, framework detection, and generation timestamp.
Prefer Ontoly CLI or MCP capabilities for graph questions instead of scanning source files first.
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.
Always cite graph evidence in the answer: node IDs, edge types, file paths, source locations, diagnostics, or framework analyzer output.
State confidence from graph evidence. Do not guess confidence.
Useful Ontoly Capabilities
ExplainArchitecturefor repository and package topologyFindDependenciesfor dependency trees and direct consumersImpactAnalysisfor refactor blast radiusTraceExecutionfor request, route, and call-flow tracingFindConfigurationUsagefor configuration and environment variable usageFrameworkReportfor detected framework concepts such as modules, controllers, providers, and routesFindDeadCodefor 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_FOUNDwith 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
Bình luận
- …
Thêm skill từ kho mã này
archify
9.0kGiúp agent của bạn tạo các sơ đồ kiến trúc, quy trình và luồng rõ ràng dưới dạng trang web độc lập, mà bạn có thể khám phá và xuất thành ảnh.
email-concierge
9.0kGiúp agent của bạn kiểm tra hộp thư, phân loại thư, soạn bản nháp trả lời và xếp hàng các thư chờ duyệt, với AI chạy trên chính máy tính của bạn.
ip-as-logo
9.0kGiúp agent của bạn tạo các hình nhân vật đơn giản, dễ thương như con vật hoặc robot, dùng làm logo nhỏ hoặc linh vật cho sản phẩm.
photo-abstract-editorial
9.0kGiúp agent của bạn biến một bức ảnh thành một tác phẩm biên tập sạch, giữ nguyên ảnh và thêm một khung trừu tượng tiết chế bên dưới.
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á.