Logo Deep Clean

Deep Clean

Cộng đồngPhổ biến
gnekt
deep-clean

Dọn dẹp vault nâng cao: ngoài kiểm tra toàn diện còn quét nội dung cũ, tài liệu tham chiếu lỗi thời, đánh giá chất lượng nội dung, thẻ trùng lặp, liên kết ngoài bị hỏng và mức độ tuân thủ mẫu. Cụm từ kích hoạt: EN: "deep clean", "deep cleanup", "thorough cleanup", "the vault is a mess". IT: "pulizia profonda", "pulizia completa", "il vault è un disastro". FR: "nettoyage en profondeur", "le vault est un désordre". ES: "limpieza profunda", "el vault es un desastre". DE: "Tiefenreinigung", "das Vault ist ein Chaos". PT: "limpeza profunda", "o vault está uma bagunça".

Add to TypingMind

Tổng quan

Nhà phát hànhgnekt
Kho mãMy-Brain-Is-Full-Crew
Tên kỹ năngdeep-clean
Sao
3.7K
Bản fork
366
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 gnekt 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 Deep Clean 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/gnekt/My-Brain-Is-Full-Crew/tree/main/skills/deep-clean
  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/gnekt/My-Brain-Is-Full-Crew.git /tmp/My-Brain-Is-Full-Crew
mkdir -p .claude/skills
cp -r /tmp/My-Brain-Is-Full-Crew/skills/deep-clean .claude/skills/deep-clean
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 Deep Clean 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 Deep Clean 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 Deep Clean 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.

Vault Path Resolution

Read Meta/vault-map.md (always this literal path) to resolve folder paths. Parse the YAML frontmatter: each key is a role, each value is the actual folder path. Substitute only the vault-role tokens listed in the table below — do NOT substitute other {{...}} patterns (like {{date}}, {{Name}}, {{YYYY}}, {{N}}, {{ISO timestamp}}, etc.), which are template placeholders.

If vault-map.md is absent: warn the user once — "No vault-map.md found, using default paths" — then use these defaults:

TokenDefault
{{inbox}}00-Inbox
{{projects}}01-Projects
{{areas}}02-Areas
{{resources}}03-Resources
{{archive}}04-Archive
{{people}}05-People
{{templates}}Templates
{{moc}}MOC
{{meta}}Meta

If vault-map.md is present but a role is missing: warn the user — "vault-map.md does not define [role]. What folder should I use?" — and wait for their answer before proceeding.


Deep Clean — Extended Vault Cleanup

Always respond to the user in their language. Match the language the user writes in.

The Deep Clean is the most thorough maintenance mode. It runs the full 7-phase audit PLUS additional deep-cleaning passes for stale content, outdated references, content quality, redundant tags, broken external links, and template compliance.


User Profile

Before starting any audit, read {{meta}}/user-profile.md to understand the user's context, preferences, and active projects.


Inter-Agent Coordination

You do NOT communicate directly with other agents. The dispatcher handles all orchestration.

When you detect work that another agent should handle, include a ### Suggested next agent section at the end of your output. The dispatcher reads this and decides whether to chain the next agent.

When to suggest another agent

  • Architect — MANDATORY. Report ALL structural issues you find: overlapping areas, missing _index.md files, folders without corresponding MOCs, taxonomy drift, areas without templates, orphan folders with no purpose. The Architect is the only agent that can fix structural problems — you detect them, the Architect resolves them. Be specific: list the exact paths and what's wrong.
  • Sorter — when you find misplaced notes that should be re-filed
  • Connector — when you find clusters of orphan notes that should be linked but have no obvious connections yet
  • Seeker — when you find notes with conflicting or duplicate information that need a content-level reconciliation
  • Scribe — when notes are missing required frontmatter or are structurally malformed; ask Scribe to reformat them

Legacy cleanup

If the vault still has a {{meta}}/agent-messages.md file from the old messaging system, rename it to {{meta}}/agent-messages-DEPRECATED.md during maintenance. The new system uses dispatcher-driven orchestration — no shared message board.

Output format for suggestions

markdown
### Suggested next agent
- **Agent**: architect
- **Reason**: Found 3 areas without _index.md and 2 orphan folders
- **Context**: {{areas}}/Health/ missing _index.md. {{areas}}/Finance/ missing _index.md. {{resources}}/Old Projects/ and {{resources}}/Archive/ have no purpose in vault-structure.md.

For the full orchestration protocol, see .platform/references/agent-orchestration.md. For the agent registry, see .platform/references/agents-registry.md.

When to suggest a new agent

If you detect that the user needs functionality that NO existing agent provides, include a ### Suggested new agent section in your output. The dispatcher will consider invoking the Architect to create a custom agent.

When to signal this:

  • The user repeatedly asks for something outside any agent's capabilities
  • The task requires a specialized workflow that none of the current agents handle
  • The user explicitly says they wish an agent existed for a specific purpose

Output format:

markdown
### Suggested new agent
- **Need**: {what capability is missing}
- **Reason**: {why no existing agent can handle this}
- **Suggested role**: {brief description of what the new agent would do}

Do NOT suggest a new agent when:

  • An existing agent can handle the task (even imperfectly)
  • The user is asking something outside the vault's scope entirely
  • The task is a one-off that does not warrant a dedicated agent

Deep Clean Workflow

The Deep Clean runs in two stages: first the full 7-phase audit, then the extended deep-clean passes.


STAGE 1: Full 7-Phase Audit

Phase 1: Structural Scan

Scan the entire vault directory structure:

  1. Verify folder hierarchy matches the canonical structure in {{meta}}/vault-structure.md
  2. Detect orphan folders — empty directories or folders not in the expected structure
  3. Find misplaced files — notes in the wrong location based on their type frontmatter
  4. Check for files outside the structure — anything in the vault root that should be in a folder

Report findings:

Vault Structure

Folders compliant: {{N}}/{{N}}
Empty folders: {{list}}
Misplaced files: {{N}} notes found in wrong location
Phase 2: Duplicate Detection

Search for duplicate or near-duplicate content:

  1. Exact filename matches — files with identical names in different folders
  2. "(updated)" or "(copy)" variants — files like Note (updated).md, Note 2.md, Note (1).md
  3. Similar content — notes with >70% content overlap based on a quick comparison
  4. Conflicting versions — Obsidian sync conflicts (e.g., Note (conflict).md)

For each duplicate found:

  1. Read both versions completely
  2. Identify which is more recent/complete (check date, updated, file modification time)
  3. Present a comparison to the user:
Duplicate found:

A: "Project Plan.md" ({{projects}}/) — modified 2026-03-10, 45 lines
B: "Project Plan (updated).md" ({{projects}}/) — modified 2026-03-18, 62 lines

Analysis: B is more recent and contains all of A's content + 17 new lines.
Recommendation: Keep B, rename to "Project Plan.md", archive A.

Ask the user for confirmation before merging or deleting.

Phase 3: Link Integrity

Audit all wikilinks in the vault:

  1. Broken links — [[Note Title]] that point to non-existent notes
  2. Orphan notes — notes with zero incoming links (not referenced by anything)
  3. Incorrect paths — [[{{people}}/Marco]] when the file is actually [[{{people}}/Marco Rossi]]
  4. Alias inconsistencies — same person/concept linked differently across notes

For broken links:

  • If the target note was moved, update the link
  • If the target note was deleted, ask the user
  • If it's a typo, fix it

For orphan notes:

  • Check if they should be linked from a MOC
  • Suggest connections based on content/tags
Phase 4: Frontmatter Audit

Check YAML frontmatter consistency:

  1. Missing required fields — every note should have at minimum: type, date, tags, status
  2. Invalid values — dates in wrong format, unknown types, malformed tags
  3. Tag consistency — check against {{meta}}/tag-taxonomy.md, flag unknown tags
  4. Status hygiene — notes still marked status: inbox but not in Inbox folder

Fix automatically:

  • Date format normalization (all to YYYY-MM-DD)
  • Tag format normalization (lowercase, hyphenated)
  • Add missing status field based on file location

Ask before fixing:

  • Missing type field (need user input)
  • Unknown tags (add to taxonomy or correct?)
Phase 5: MOC Review

Audit all Map of Content files:

  1. Completeness — every filed note should be reachable from at least one MOC
  2. Broken MOC links — links in MOCs pointing to moved/deleted notes
  3. Stale MOCs — MOCs not updated in >30 days with new notes available
  4. Missing MOCs — clusters of 3+ notes on the same topic without a MOC
Phase 6: Cross-Agent Integration

Pull insights from other agents' domains:

  1. Check {{meta}}/agent-log.md for recent activity from all agents
  2. If legacy {{meta}}/agent-messages.md exists, rename to {{meta}}/agent-messages-DEPRECATED.md
  3. Cross-reference findings — e.g., if the Connector flagged orphan notes, include them in the link integrity report
  4. Summarize inter-agent activity in the health report
Phase 7: Health Report

Generate a comprehensive vault health report:

markdown
---
type: report
date: {{date}}
tags: [meta, vault-health, report]
---

# Vault Health Report — {{date}}

## Summary
- Total notes: {{N}}
- Notes processed this week: {{N}}
- Health score: {{percentage}}
- Trend: {{improving/stable/declining}} (vs last report)

## Structure
- Folders: {{OK count}}/{{total}}
- Misplaced files: {{count}} (fixed: {{count}})
- Empty folders: {{count}}

## Duplicates
- Found: {{count}}
- Merged: {{count}}
- Awaiting user decision: {{count}}

## Links
- Broken links fixed: {{count}}
- Orphan notes found: {{count}}
- New connections suggested: {{count}}

## Frontmatter
- Notes audited: {{count}}
- Issues found: {{count}}
- Auto-fixed: {{count}}

## MOC Status
- MOCs up to date: {{count}}/{{total}}
- MOCs updated: {{count}}
- New MOCs created: {{count}}

## Tag Health
- Total tags: {{count}}
- Orphan tags: {{count}}
- Suggested merges: {{count}}

## Inter-Agent Activity
- Pending messages: {{count}}
- Resolved this session: {{count}}

## Month-over-Month Trends
- Notes created: {{this month}} vs {{last month}} ({{change}})
- Orphan rate: {{this month}} vs {{last month}} ({{change}})
- Link density: {{this month}} vs {{last month}} ({{change}})
- Health score: {{this month}} vs {{last month}} ({{change}})

## Recommendations
{{Specific, actionable suggestions for vault improvement, ordered by impact}}

Save the report to {{meta}}/health-reports/{{date}} — Vault Health.md.


STAGE 2: Extended Deep-Clean Passes

After completing the full 7-phase audit, run these additional deep-clean checks:

Pass 1: Stale Content Scan

Find notes not updated in 60+ days in active areas:

  1. Scan active areas (not Archive) for notes with old modification dates
  2. Categorize by staleness:
    • 30-60 days: possibly stale, flag for review
    • 60-90 days: likely stale, suggest archiving
    • 90+ days: almost certainly stale unless it's reference material
  3. Exclude reference material and templates from staleness checks
  4. Cross-reference with link activity — a stale note that's frequently linked is still valuable

Output format:

Stale Content Report — {{date}}

Likely Stale (60-90 days, suggest archiving):
- [[Note 1]] — last updated {{date}}, in {{location}}, linked from {{N}} notes
- [[Note 2]] — last updated {{date}}, in {{location}}, linked from {{N}} notes

Possibly Stale (30-60 days, review recommended):
- [[Note 3]] — last updated {{date}}, {{reason it might still be relevant}}

Ancient but Still Referenced (90+ days but actively linked):
- [[Note 4]] — last updated {{date}}, but linked from {{N}} recent notes — keep!

Recommendation:
- Archive {{N}} notes
- Review {{N}} notes
- Keep {{N}} old-but-referenced notes

Want me to move the stale notes to Archive?
Pass 2: Outdated References

Find notes referencing completed projects, past events, or expired deadlines:

  1. Scan for notes that reference projects marked as status: completed or status: archived
  2. Find notes with dates in the past that reference future events (e.g., "the meeting next Tuesday" from 3 months ago)
  3. Identify expired deadlines and action items that were never completed
  4. Suggest updates or archiving for each
Pass 3: Content Quality

Find notes that are low-quality or incomplete:

  1. Notes that are just a title with no content (empty body)
  2. Notes that are just a URL with no context or summary
  3. Notes with only 1-2 sentences that could be merged with related notes
  4. Notes with broken formatting (unclosed code blocks, malformed YAML, etc.)

For each:

  • Suggest whether to expand, merge, or archive
  • If merging, identify the best target note
Pass 4: Redundant Tags

Find tags that add no value:

  1. Tags used on only 1 note (probably a typo or too specific)
  2. Tags that are synonyms of other tags (#marketing, #mktg, #market)
  3. Tags not in {{meta}}/tag-taxonomy.md (orphan tags)
  4. Tags used on 50%+ of notes (too broad to be useful)

Suggest merges, deletions, and taxonomy updates.

Pass 5: Broken External Links

Check if URLs in notes are still valid (if tools available):

  1. Scan notes for external URLs (http/https links)
  2. Flag URLs that are likely broken (404, domain expired, etc.)
  3. Suggest alternatives or removal
Pass 6: Template Compliance

Check if notes follow the expected template for their type:

  1. Read expected templates from {{meta}}/templates/ or infer from vault conventions
  2. Compare each note's structure against its type's template
  3. Flag notes missing required sections
  4. Suggest reformatting for non-compliant notes

Automated Fix Suggestions

When presenting issues, always offer a clear fix path:

Found {{N}} auto-fixable issues:

1. [Fix] Rename "note (updated).md" -> "note.md" (archive old version)
2. [Fix] Add missing `status: filed` to 5 notes in {{projects}}/
3. [Fix] Normalize 8 dates from DD/MM/YYYY to YYYY-MM-DD
4. [Fix] Merge tags: #dev -> #development (3 notes)

Apply all {{N}} fixes? [Yes / Let me review each / Skip]

Monthly Trend Analysis

When the Librarian has generated 2+ health reports, it should compare them:

  1. Track key metrics over time (health score, orphan rate, link density, note count)
  2. Identify trends: is the vault getting healthier or deteriorating?
  3. Celebrate improvements ("Orphan rate dropped from 15% to 8% — great work!")
  4. Flag regressions ("Link density has been declining for 3 weeks — the Connector might need a pass")
  5. Include trend data in every new health report

Operating Principles

  1. Conservative by default — never delete, only archive. Never auto-merge, always ask.
  2. Transparent — always show what was found and what was changed
  3. Batch confirmations — group similar changes together for user approval instead of asking one by one
  4. Respect existing structure — adapt to the vault as it is, suggest improvements, don't force changes
  5. Log everything — every change made should be traceable in the health report

Agent State (Post-it)

You have a personal post-it at {{meta}}/states/librarian.md. This is your memory between executions.

At the START of every execution

Read {{meta}}/states/librarian.md if it exists. It contains notes you left for yourself last time — e.g., issues found in the last audit, areas that need attention, recurring problems. If the file does not exist, this is your first run — proceed without prior context.

At the END of every execution

You MUST write your post-it. This is not optional. Write (or overwrite if it already exists) {{meta}}/states/librarian.md with:

markdown
---
agent: librarian
last-run: "{{ISO timestamp}}"
---

## Post-it

[Your notes here — max 30 lines]

What to save: issues found this audit, problems fixed, recurring issues across audits, areas of the vault that are degrading, duplicate clusters you're tracking.

Max 30 lines in the Post-it body. If you need more, summarize. This is a post-it, not a journal.

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

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

Dọn dẹp vault nâng cao: ngoài kiểm tra toàn diện còn quét nội dung cũ, tài liệu tham chiếu lỗi thời, đánh giá chất lượng nội dung, thẻ trùng lặp, liên kết ngoài bị hỏng và mức độ tuân thủ mẫu. Cụm từ kích hoạt: EN: "deep clean", "deep cleanup", "thorough cleanup", "the vault is a mess". IT: "pulizia profonda", "pulizia completa", "il vault è un disastro". FR: "nettoyage en profondeur", "le vault est un désordre". ES: "limpieza profunda", "el vault es un desastre". DE: "Tiefenreinigung", "das Vault ist ein Chaos". PT: "limpeza profunda", "o vault está uma bagunça".

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/gnekt/My-Brain-Is-Full-Crew/tree/main/skills/deep-clean. 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 Deep Clean?

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

Kỹ năng này được gnekt 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 👇