Logo Ssot Audit

Ssot Audit

Cộng đồng
AlexZio00
ssot-audit

Find where one fact, value or decision is duplicated or contradicted across files, name the single source of truth (read-only), then consolidate the copies after user approval.

Tổng quan

Nhà phát hànhAlexZio00
Kho mãsovereign-skills
Tên kỹ năngssot-audit
Sao
149
Bản fork
23
Tệp đi kèm
1
Giấy phépMIT
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ộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được AlexZio00 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 Ssot Audit 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/AlexZio00/sovereign-skills/tree/master/ssot-audit
  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/AlexZio00/sovereign-skills.git /tmp/sovereign-skills
mkdir -p .claude/skills
cp -r /tmp/sovereign-skills/ssot-audit .claude/skills/ssot-audit
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 Ssot Audit 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 Ssot Audit 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 Ssot Audit 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.

SSOT Audit: find the source of truth, then consolidate

Purpose

One fact often lives in several artifacts (docs, code, config, tickets, notes) and the copies drift or contradict each other. This skill finds where the fact lives and how many copies exist, names one source of truth (Phase A, read-only), and after user approval brings the other copies in line with it (Phase B).

doc-drift covers only the files Claude Code loads into context (CLAUDE.md, rules, memory, skills, agents). This skill works on any artifact in a repo or notes folder.

Dominant variable: is the chosen source of truth really the most authoritative location and the one updated most often? A wrong pick makes consolidation distort the fact instead of fixing it.

Discard if: the fact already lives in exactly one place (no duplication), or the scope is only CLAUDE.md / rules / memory (use doc-drift).

Verify before acting: every artifact found in Phase A is a snapshot from the time of the audit. Before Phase B edits anything, re-check the current state with Glob/Grep. "I saw it during the audit, so it must still be right" is not allowed.

Trigger

  • "where is this fact scattered", "what is the source of truth", "consolidate the duplicated content"
  • "find where this fact is duplicated", "consolidate the source of truth"
  • /ssot-audit

Workflow

Phase A: audit (read-only by policy, not by enforcement)

Edit is listed in tools: (the tool list is descriptive metadata, nothing enforces it), so keeping this phase read-only is a rule you follow.

  1. Fix the scope (repo, folder or notes directory) and the tracked item: one specific value, spec or decision, not a whole document.
  2. Enumerate every occurrence of the item with the Grep and Glob tools (no shell flags needed). Narrow Grep with its glob or type filter to text files, and exclude __pycache__ and build output (for example glob !**/__pycache__/**), otherwise compiled-file matches have to be filtered by hand.
  3. Classify each occurrence: exact copy, paraphrase, partial excerpt, stale, or contradictory.
    • stale: the copy differs from the source of truth and you can show it is an earlier version of the fact (version history, a changelog, or the source of truth explicitly superseding it). Action: reference or dedupe, after Phase B approval.
    • contradictory: the copy differs and you cannot show it is the older one. Action: reconcile.
  4. Pick a source-of-truth candidate: the most authoritative location, closest to the point where the fact actually changes (code or config for a value, a spec document for a decision, a state file for a status). Designate it with a one-line reason; never pick arbitrarily.
    • Two or more candidates of the same kind (for example constants in two different modules): do not choose, classify as reconcile.
    • One source of truth but a non-canonical copy holds a different value: that copy is also reconcile. An older date alone does not make it stale.
  5. For each non-canonical occurrence choose an action:
    • dedupe: remove the copy (removing content inside a file is done with Edit in Phase B; deleting a whole file is only proposed to the user, who runs the command, for example git rm <file>; this skill has no tool to delete files)
    • reference: replace the copy with a link or pointer to the source of truth
    • reconcile: contradiction, a human has to decide
  6. Output the audit report: occurrence table (location, kind, action), source-of-truth proposal with reason, and a separate list of contradictions.

Phase B: consolidation (writes, needs user approval)

  1. Show the Phase A report and ask which actions to apply. Even a blanket "do it all" is followed only after you show, item by item, what will be removed.
  2. Apply only the approved dedupe/reference items with Edit. Leave reconcile items untouched until a human decides. For an approved whole-file deletion, print the command and let the user run it.
  3. Re-verify with Grep: the fact should now exist once in the source of truth plus references.

When to retire this skill

Review it for narrowing, merging or removal if any of these is observed:

  • It has not been invoked for 90 days and no other skill or agent calls it. (If it exists for safety or recovery, judge by likelihood, failure impact, difficulty of detection and lack of substitutes, not by call count.)
  • The same defect (wrong trigger, wrong result, ignored instruction) comes back three or more times after fixes.
  • Another asset gives the same result at lower cost.
  • A rule, tool or platform feature this skill relied on has changed and the premise is gone.

When a result is invalid

If the files, command output or source text a result relied on look different when re-checked (the target changed or was misread), treat that result as invalid and run it again. A result is valid only for the point in time its inputs were read.

Invariants (never violate)

  1. Phase A never writes. Do not fix anything you find mid-audit. Violation → destructive edits without confirmation, deletions that are hard to undo.
  2. Contradictions (reconcile) are never resolved by guesswork. Which side is right needs a human. Violation → silently declaring one side correct can make a wrong fact the only source of truth.
  3. No findings is a valid result. Do not invent duplicates. Violation → forced findings cause needless edits.
  4. Keep details that exist only in a non-canonical copy. Move them into the source of truth before deleting the copy. Violation → dedupe turns into information loss.
  5. Copies across a trust or permission boundary are flagged, not touched. Private versus public, internal versus customer-facing: leave them as they are and report. Violation → internal-only information leaks into a public copy.
  6. Whole-file deletion is proposed, never done. Violation → a file that held unique content is lost without the user running the command knowingly.

Safety layers

Risky actionReversibilityLayers
Phase B edit (dedupe/reference)mediumprompt rules + user approval (recoverable through git, approval still required)

Phase B approval is valid for the current session only. Re-running in a new session needs fresh approval.

Scope boundary

DoesDoes NOT
[READ] enumerate every occurrence with Grep/Globedit files without user approval
[READ] designate a source-of-truth candidate and propose actionsresolve contradictions (reconcile) on its own
[EDIT] apply only approved dedupe/reference actionsdelete a copy before preserving its unique details, or delete a whole file (propose it instead)
[READ] report Phase A and Phase B separatelytake over the CLAUDE.md / rules / memory audit (that is doc-drift)

Rationalization table

RationalizationRebuttal
"It's obvious which one is right, I'll just merge them"Violates Invariant 2. "Obvious" is the auditor's opinion, not a verified fact. Reconcile goes to a human.
"While auditing I might as well fix what I found"Violates Invariant 1. The A/B split exists to stop edits that cannot be undone before approval.
"Saying there are no duplicates feels weak, let me find something"Violates Invariant 3. Forced findings cause needless edits.
"doc-drift already covers this project"doc-drift covers only the loaded context files. Repo-wide or notes-wide scope is this skill.

Output

  • Phase A: occurrence table (location, kind, action), source-of-truth proposal, contradiction list, in the conversation.
  • Phase B: list of changes actually applied, per file, plus the re-verification result.

Error recovery

Failure typeRecovery
missing_data (Phase A)Grep/Glob cannot find the scope: report "scope unclear" and ask the user to confirm it.
tool_failure (Phase A)Retry a failed Grep/Glob once, then report which searches failed and mark the occurrence list as incomplete. Do not start Phase B on an incomplete list.
tool_failure (Phase B)Retry a failed Edit once, then stop. Report which items were applied and which were not; do not continue with the remaining items.
logic_inconsistencyTwo or more equally authoritative source-of-truth candidates: classify as reconcile, never pick one.

Truthful reporting

  1. Report only occurrences you actually confirmed with Grep. Do not list guessed locations.
  2. If Phase B is applied only in part, state which items were applied and which were not.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Find where one fact, value or decision is duplicated or contradicted across files, name the single source of truth (read-only), then consolidate the copies after user approval.

Vì sao nên dùng Ssot Audit 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. Ssot Audit 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 Ssot Audit trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/AlexZio00/sovereign-skills/tree/master/ssot-audit. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà 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 Ssot Audit?

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 Ssot Audit 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 Ssot Audit 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 Ssot Audit có miễn phí không?

Có. Kỹ năng này được AlexZio00 phát hành trên GitHub theo giấy phép MIT. 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 👇