thangnd96

Pilothify — AI skill for Claude Code

AI community

Turn any codebase — code, docs, schemas, images — into a queryable knowledge graph for AI coding agents (Claude Code, Codex, Cursor, Gemini CLI, …).

How to install Pilothify

This entry records only its repository, not the path inside it, so there is no exact command to give. Open thangnd96/pilothify and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pilothify does

Turn any codebase — code, docs, schemas, images — into a queryable knowledge graph for AI coding agents (Claude Code, Codex, Cursor, Gemini CLI, …). Local tree-sitter AST, confidence-tagged edges, MCP server, and hooks that make the agent ask the graph before it greps.

Alternatives in AI

  • WeKnora — Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, an 26.9k ★
  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
  • Claude Skill Aso Appstore Screenshots — A Claude Code skill that generates high-converting App Store screenshots for your iOS app 1.2k ★

README

pilothify

Biến một codebase (kèm docs, schema SQL, config, PDF, ảnh) thành **knowledge graph** để AI agent hỏi graph thay vì grep và đọc từng file.

  • Code được phân tích tại máy, không gọi LLM. tree-sitter dựng AST, sau đó một lượt nối lời gọi, import và kế thừa giữa các file. Cùng input luôn ra cùng graph.
  • Mỗi cạnh đều có nhãn tin cậy: EXTRACTED (ghi rõ trong source), INFERRED (suy ra theo luật, kèm điểm), AMBIGUOUS (cần người xem lại).
  • Không dùng vector store. Graph thật, truy vấn bằng cách đi theo cạnh.

Cài đặt

Cần Python 3.10 đến 3.14 và [uv](https://docs.astral.sh/uv/).

git clone https://github.com/thangnd96/pilothify.git && cd pilothify
uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python -e ".[leiden,mcp,sql]"

Hoặc cài thành công cụ dùng chung cho mọi project: `uv tool install "pilothify[leiden,mcp,sql] @ git+https://github.com/thangnd96/pilothify"`.

Các extra khác (`pdf`, `office`, `video`, `watch`, `terraform`, `anthropic`, `ollama`, …) xem trong `pyproject.toml`.

Dùng trong Claude Code

pilothify install           # đăng ký skill /pilothify
pilothify claude install    # thêm luật vào CLAUDE.md và hook nhắc agent hỏi graph trước khi grep
pilothify hook install      # git hook: cập nhật graph sau mỗi commit

Sau đó gõ `/pilothify .` trong Claude Code. Các assistant khác: `pilothify install --platform ` (codex, cursor, gemini, …).

Dùng từ dòng lệnh

PILOTHIFY_BACKEND=none pilothify extract . --code-only   # chỉ code, không cần API key
pilothify cluster-only .                                 # chia community, sinh GRAPH_REPORT.md và graph.html
pilothify update .                                       # cập nhật sau khi sửa code (chỉ AST)

pilothify query "spin wallet debit"                      # subgraph cho một câu hỏi
pilothify explain "SpinService"                          # một node và các kết nối của nó
pilothify path "SpinController" "WalletApi"              #