maintain-filemap

Official

Keep repo FILEMAP.md aligned with directory changes.

Authorlossless-group
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When a repository's directory structure changes — such as adding new top-level directories, mounting or unmounting submodules, or renaming major subsystems — the root FILEMAP.md quickly becomes stale. This leaves new collaborators without a clear, at-a-glance overview of the repo's layout, forcing them to clone the repo just to understand its structure.

Core Features & Use Cases

  • Automated tree regeneration: Updates the depth-3 directory tree section of FILEMAP.md with a curated ignore list that filters out noise like node_modules, dist, and lock files, so the map stays readable.
  • Preserves hand-written context: Keeps the curator-written preface that explains the purpose of each top-level directory, so the FILEMAP is useful for newcomers rather than just a raw tree dump.
  • Flexible trigger options: Fires on directory shape changes, on a weekly cadence, or before releases, so teams can adopt the discipline that fits their workflow.
  • Use case: When a team adds a new client-sites submodule to their pseudomonorepo, running this skill updates the parent FILEMAP.md to show the new submodule mount point (without listing its internal contents, which are documented in the submodule's own FILEMAP.md) so new contributors immediately understand the repo's top-level structure.

Quick Start

Use the maintain-filemap skill to regenerate the FILEMAP.md at your repo root after adding a new top-level directory or submodule.

Dependency Matrix

Required Modules

treegit

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: maintain-filemap
Download link: https://github.com/lossless-group/lossless-agent-skills/archive/main.zip#maintain-filemap

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.