agents-tree-sync

Update the AGENTS.md project structure tree after non-docs directory changes.

5|1|Updated May 9, 2026
One-click install
npx skills add https://github.com/ql-link/LinkRag --skill agents-tree-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-tree-sync
Source: https://github.com/ql-link/LinkRag/tree/main/.ai/skills/agents-tree-sync
Command: npx skills add https://github.com/ql-link/LinkRag --skill agents-tree-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

当仓库中在 docs 目录之外创建、删除、移动、重命名源码、脚本、配置、测试或 Agent/Skill 等核心项目目录时,需要同步更新根目录 AGENTS.md 的“当前项目结构”树,以保持结构的一致性。docs 目录下的结构变化不触发本 Skill。

Core Features & Use Cases

  • 监控非 docs 目录的新增、删除、移动、重命名等结构变更,并自动更新 AGENTS.md 的项目结构树。
  • 仅对非 docs 目录生效,docs 目录的结构变更不会触发同步。
  • 适用于中大型代码库的结构治理与团队协作,确保知识库中的项目结构树与实际代码保持一致。

Quick Start

请描述最近在非 docs 目录中的结构变更,以便自动更新 AGENTS.md 的项目结构树。

Frequently Asked Questions about agents-tree-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically update the project structure tree in AGENTS.md when repository files change?

To automatically update the project structure tree in AGENTS.md, you need a sync mechanism that detects non-docs directory modifications. This skill triggers on file or directory creation, deletion, moving, or renaming, and updates the AGENTS.md tree to reflect the evolving repository structure.

What is the best way to keep AGENTS.md project structure synchronized with code repository changes?

Keeping AGENTS.md synchronized with code repository changes requires monitoring non-docs directory alterations. This skill automatically tracks structural modifications like file renaming or directory creation and reflects those structural changes directly in the AGENTS.md project tree.

Does the AGENTS.md sync trigger when I edit files inside the docs directory?

No, the AGENTS.md sync does not trigger when editing files inside the docs directory. This skill specifically ignores structural changes within docs/ and only monitors non-docs directories for file creation, deletion, moving, or renaming to update the project tree.

How do I sync AGENTS.md after moving or renaming source code directories?

To sync AGENTS.md after moving or renaming source code directories, describe the structural changes you made. The skill processes non-docs directory updates like file moves and renames, automatically modifying the AGENTS.md project structure tree to maintain consistency.

Can I use this project structure sync for large codebases with frequent directory renames?

Yes, you can use this project structure sync for large codebases with frequent directory renames. It is designed for mid-to-large codebase structure governance, ensuring the AGENTS.md project tree remains consistent with actual code during team collaboration.