Logo Project Learnings

Project Learnings

Tổ chức
infranodus
project-learnings

CHỦ ĐỘNG sử dụng, không cần người dùng yêu cầu, vào ĐẦU mọi tác vụ nhiều bước trong git repo, thư mục dự án hoặc vault (trước khi đọc tệp) và vào CUỐI tác vụ (để đúc kết và lưu lại). Áp dụng khi người dùng yêu cầu triển khai, sửa lỗi, tái cấu trúc, gỡ lỗi hoặc điều tra vấn đề trong dự án; khi lần thử đầu tiên chưa đúng hoặc người dùng đã sửa tác nhân AI; và khi tác nhân AI phát hiện lại điều mà phiên trước đáng lẽ phải biết. Truy xuất những gì các phiên trước đã học được về cách làm việc trong dự án và lưu các hiểu biết lâu dài (vị trí, bẫy, quy ước, quyết định cùng lý do, quy trình, câu hỏi còn bỏ ngỏ, điều cần làm khác đi) vào một đồ thị InfraNodus chỉ ghi nối tiếp, có sự đồng ý tham gia, mang tên learn- cộng với tên dự án. Cũng kích hoạt khi người dùng hỏi “chúng ta biết gì về repo này?”, “tôi đã học được gì?”, “lưu điều đã học”, “nhớ điều này về dự án”, “bắt đầu lưu lại điều đã học”, “/learnings”. Tải kỹ năng này trước khi gọi trực tiếp get_project_learnings, add_project_learnings hoặc enable_project_learnings. Tuyệt đối không ghi gì nếu chưa có sự đồng ý rõ ràng của người dùng cho từng dự án và chưa được họ xem xét từng đợt. Chỉ lưu kiến thức về dự án, không lưu bất cứ điều gì về cá nhân.

Add to TypingMind

Tổng quan

Nhà phát hànhinfranodus
Kho mãskills
Tên kỹ năngproject-learnings
Sao
124
Bản fork
31
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được infranodus công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Project Learnings trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/infranodus/skills/tree/master/skill-project-learnings
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/infranodus/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skill-project-learnings .claude/skills/project-learnings
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Project Learnings trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Project Learnings ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Project Learnings với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Project Learnings

An agent that works in a project keeps rediscovering the same things: which of nine files holds the model list, that the tests only exist as ad-hoc scripts, why a cache is per-process, which command actually deploys. This skill turns those rediscoveries into a learnings graph in the user's InfraNodus account — learn-<project> — that the next session reads before it starts and appends to when it finishes.

It is a graph rather than a notes file because learnings link to the same entities (file paths, modules, concepts) as everything else in the project: "which parts of the codebase accumulate traps" is a graph query, and the gaps between what is known and what the code contains show where nobody has looked yet.

Prerequisites

The connected InfraNodus MCP server must expose these three tools (added after infranodus-mcp-server 1.7.4; hosted at https://mcp.infranodus.com or the npm package):

  • get_project_learnings — read (by prompt, by entity, overview, or list)
  • add_project_learnings — propose / write (dry run by default)
  • enable_project_learnings — create the graph, only on the user's explicit request

If they are missing from the tool list, say so once ("the connected InfraNodus server doesn't expose project learnings; update it or connect https://mcp.infranodus.com") and continue the task without this skill. Do not emulate the feature with memory_add_relations — that would bypass the consent model.

Consent — read before anything else

  1. Nothing is written unless the user enabled learnings for this project. add_project_learnings refuses (enabled: false) when the graph does not exist and never creates it. Never call enable_project_learnings on your own initiative — only when the user explicitly asks to start keeping learnings for a project. Before that call, tell them in two sentences what will be stored (project knowledge only), where (a private, append-only graph in their InfraNodus account that they can delete at any time), and that each batch is shown before it is saved.
  2. Show every batch before it is written. add_project_learnings is a dry run by default. Present the plan, ask, and only then call again with confirm: true. If the client supports MCP elicitation the server asks the user itself and writes in the same call. Skip the question only when the user has said, in this conversation, that they do not want to be asked.
  3. Project knowledge only. "The model list lives in nine files" is a learning. "The user prefers short answers" is not — that belongs in the client's own memory, never in a shared graph.
  4. No secrets, hostnames, env values, credentials, customer data, or verbatim error output. Paths and descriptions only. The server rejects secret-like statements and reports only their index.
  5. If get_project_learnings returns enabled: false, carry on with the task without this skill. At the end of a substantive task, if you hold at least one learning that passes the admission criteria below, say once — one sentence — that learnings are not enabled for this project and can be turned on with "start keeping learnings". Never repeat that in the same session, and never enable on your own. With nothing worth keeping, stay silent.

Workflow

1. Start of a substantive task — retrieve

Call get_project_learnings with the project name and the task as prompt. Use the same project name every time (the repo or folder name; call the tool with no project to see which names already exist in the account). The response carries the most relevant learnings, the areas that have accumulated knowledge (knownAreas), and the gaps. Read them before opening files. Skip for trivial tasks (a typo, a one-line answer).

2. Before touching an unfamiliar area — look up the entity

get_project_learnings with entity set to the file path, module, or concept returns every learning that mentions it. Cheap; do it before the first edit in an area this session has not visited.

3. End of a substantive task — reflect

A substantive task is multi-step, involved discovery, a correction from the user, or a non-obvious fix. Ask yourself four questions:

  • What did I have to discover that was not in the docs or obvious from the code?
  • Where did I go wrong first, and what was the actual cause?
  • What decision did I make, and why that one?
  • What would I check first next time?
  • Self-assessment: what about my approach worked well in this project and should be repeated, and what should I do differently next time — which check would have caught a mistake earlier, which order of steps saved effort, where did I over- or under-verify? Save these with type approach. Be as honest about what went well as about what did not: both are equally useful to the next session.

Draft 0–5 statements. Zero is a normal answer; do not pad. Each must pass all five admission criteria:

  1. Not derivable from the code, docs, or git history in a few reads
  2. Would have saved time if known at the start
  3. Survived verification — only after the thing actually worked
  4. About the project, never about the person
  5. Adds insight, not just a fact: prefer learnings that connect things that are not obviously connected — a cross-module dependency, a pattern that recurs across files, the non-obvious consequence of a design choice, a hypothesis about why something is the way it is. A location fact is admissible; a location fact plus the reason it is scattered is better.

Then add_project_learnings (dry run) → show the plan → confirm: true on agreement.

4. User-initiated

"Save what you learned", "remember this about the project", "/learnings": run step 3 immediately for the current session, whatever its size.

Statement contract

One statement per learning, at most two sentences, with at least two [[wikilinked]] entities — file paths, modules, functions, concepts, tools. Entities are what make the graph queryable, so link the things a future session would search for.

Each statement carries one type:

typeuse for
locationwhere X lives, especially when it is scattered or misnamed
trapwhat went wrong first and why
conventionhow things are done here that the code does not spell out
decisionwhat was chosen and the rationale
workflowhow to run, test, build, deploy, debug
questionopen, unresolved, worth a future session's attention
approachself-assessment: what worked well and should be repeated, or what to do differently next time

Example (a real one):

The list of available AI model names is duplicated in 9 places: the modelToUse enums in [[src/schemas/index.ts]], [[src/instructions.ts]], [[src/resources/about.ts]], [[README.md]], and the tool defaults in [[generateOntologyGraph.ts]] and [[analyzeLlmResults.ts]]. Source of truth is [[infranodus-app]] routes/ai.js getModelsAvailable, which keeps old names as aliases. — location

Reading the tool responses

  • enabled: false → not enabled for this project; nothing written. Carry on (or, if the user asked to save, tell them it is not enabled and offer to enable it — they decide).
  • dryRun: true with wouldWrite → show it. Items marked reinforced are near-duplicates of something already known; they are written as a short "Confirmed again" statement, which raises the weight of the same links. That is deliberate: things that keep being rediscovered become central.
  • declined: true with a note → the user wants a change; adjust and try once more. Without a note → do not retry.
  • dryRun: true with an elicitation field → the server tried to ask the user directly but could not (dialog dismissed, client error). Not a decline: show the plan and ask in chat as usual.
  • rejected with indices → strip the secret-like content from those statements (the server never echoes it) and resubmit.
  • A stale learning is not deleted (the graph is append-only); it is superseded by a newer statement, and retrieval sorts newest first. If you find a learning that names a file that no longer exists, add the correction as a new statement.

Using the graph as a graph

Once a project has a few dozen learnings, the InfraNodus tools that work on any saved graph work on learn-<project> too:

  • get_project_learnings with no prompt/entity → overview: known areas, main concepts, gaps. Add type: "trap" for the fragile parts of the project, type: "question" for what previous sessions left open, type: "approach" for what worked and what to do differently.
  • analyze_existing_graph_by_name on the graph name → clusters, gaps, and the most influential entities across all learnings.
  • optimize_knowledge_base with graphName: "learn-<project>" and focus: "codebase" (or "procedural" for a rule-heavy project) → structural feedback on the learnings themselves: which areas of the project dominate what was learned, which are under-developed, which clusters of learnings never connect. Add compareWith: ["repo-<project>-structure"] when the infranodus skill built one to see the parts of the code base no learning has touched.
  • If the infranodus skill has built repo-<project>-* graphs, difference_between_texts with {graphName} contexts shows modules that have code but no learnings — unexplored territory — and the learnings graph can be added to that project's infranodus/manifest.json as a scope with policy: "learnings" so question routing sees it. Optional; nothing here depends on the manifest.

The type of each learning is stored as statement metadata (a category on the statement), not as a node — so the graph's nodes are only the real entities and the structure is not distorted by the labels. Filter by type through the tool's type parameter or the statement categories in the InfraNodus UI.

Relationship to other skills

  • infranodus — maps what a repo or vault contains (deterministic extraction). This skill records what an agent learned operating in it. They share entity names, so the graphs compose.
  • llm-wiki — authored knowledge pages compounding over time. Route there when the user wants prose, not one-line operational learnings.
  • Claude Code's own file memory — per-user, per-machine. Keep using it for user preferences and for project facts when learnings are not enabled; when they are, project-type facts go to both.

Who decides when this runs

This skill can only ask; every gate is the user's. Nothing here needs a hook or a CLAUDE.md entry to work, and the skill ships neither.

  • The real gate is server-side. Until the user enables learn-<project>, an automatic invocation is one read call that returns enabled: false, after which the skill goes dormant for the session. Nothing is written, nothing is created.
  • Manual only. Set disable-model-invocation: true in this file's frontmatter (the description leaves Claude's context; only /project-learnings invokes it), or per project in .claude/settings.local.json: "skillOverrides": { "project-learnings": "user-invocable-only" } ("off" hides it entirely).
  • Remove. Delete the skill folder or uninstall the plugin.
  • Every session, guaranteed. The user's own choice, never the skill's: a line in the project's CLAUDE.md such as Before any multi-step task call get_project_learnings for project <name>, or a SessionStart hook that injects the same sentence (the update-config skill can add one).

Reference: https://code.claude.com/docs/en/skills ("Control who invokes a skill", "Restrict Claude's skill access").

Example

User: start keeping learnings for this repo

Agent: I'll create a private, append-only graph learn-mcp-server-infranodus in your InfraNodus account. It will hold knowledge about operating in this project — where things live, traps, conventions, decisions — never anything about you, never secrets. I'll show each batch before saving, and you can delete the graph any time. Enabling now. (calls enable_project_learnings)

…later, after a task…

Agent: Two things from this session worth keeping:

  1. [trap] Reading a graph right after creating it can fail on infranodus.com: the app runs several instances with a per-process contexts-list cache ([[lib/middleware/getOwnerContextsList.js]]); [[src/utils/learnings.ts]] retries reads and treats any positive as authoritative.
  2. [workflow] There is no test runner in the repo; [[npm test]] builds with tsc and runs [[node --test]] over test/*.test.mjs against dist/.
  3. [approach] Testing the new tools through an in-memory [[MCP client]] with an intercepted [[fetch]] caught the body-shape and session-state bugs that unit tests of the pure helpers missed; do that before any live run in this project.

Save these? (dry run shown; on "yes" → confirm: true)

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

Kỹ năng AI Project Learnings làm được gì?

CHỦ ĐỘNG sử dụng, không cần người dùng yêu cầu, vào ĐẦU mọi tác vụ nhiều bước trong git repo, thư mục dự án hoặc vault (trước khi đọc tệp) và vào CUỐI tác vụ (để đúc kết và lưu lại). Áp dụng khi người dùng yêu cầu triển khai, sửa lỗi, tái cấu trúc, gỡ lỗi hoặc điều tra vấn đề trong dự án; khi lần thử đầu tiên chưa đúng hoặc người dùng đã sửa tác nhân AI; và khi tác nhân AI phát hiện lại điều mà phiên trước đáng lẽ phải biết. Truy xuất những gì các phiên trước đã học được về cách làm việc trong dự án và lưu các hiểu biết lâu dài (vị trí, bẫy, quy ước, quyết định cùng lý do, quy trình, câu hỏ...

Vì sao nên dùng Project Learnings trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Project Learnings là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Project Learnings trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/infranodus/skills/tree/master/skill-project-learnings. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Project Learnings?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Project Learnings với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Project Learnings với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Project Learnings có miễn phí không?

Kỹ năng này được infranodus phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇