repo-tidy

Clean local repositories by pruning noise and updating .gitignore.

1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/unana5577/a-stock-monitor --skill repo-tidy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo-tidy
Source: https://github.com/unana5577/a-stock-monitor/tree/main/.trae/skills/repo-tidy
Command: npx skills add https://github.com/unana5577/a-stock-monitor --skill repo-tidy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

帮助开发者整理本地仓库结构、清理无关产物、并控制需要提交的文件,降低版本控制噪声。

Core Features & Use Cases

  • 自动识别并收敛分散的产物(如 dist、build、.cache、logs),将其移动到指定目录并更新 .gitignore
  • 移除对已跟踪产物的跟踪,保留本地副本以便后续恢复
  • 生成变更清单,便于审阅和后续提交
  • 支持可自定义的保留规则以适应不同项目规范

Quick Start

在仓库根目录运行此技能以执行确定性整理并输出变更报告

Frequently Asked Questions about repo-tidy

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

FAQPage Schema
How do I clean up build artifacts and untracked files before a git commit?

To clean up build artifacts before a commit, this Skill targets project folders to prune noise like dist and logs, updates .gitignore, and untracks artifacts while retaining local copies. It outputs a changelog without performing any commits.

How do I remove tracked build directories from version control without deleting local files?

To remove tracked build directories without deleting local files, this Skill untracks artifacts like caches and logs while preserving local copies. It updates .gitignore to prevent future tracking and generates a review changelog.

What is the best way to organize local repository structure and reduce version control noise?

Organizing local repository structure involves deterministic cleanup steps that consolidate scattered artifacts like .cache and logs into specified directories. This process validates changes and outputs a changelog for code review preparation.

Can I customize retention rules for repository cleanup to fit different project standards?

Yes, you can customize retention rules for repository cleanup to adapt to different project standards. This allows you to control exactly which untracked artifacts are ignored or moved during the tidying process.

Does this repository cleanup tool automatically push changes or commit to git?

No, this repository cleanup tool does not automatically push or commit to git. It performs deterministic cleanup steps, validates the changes, and outputs a changelog so you can review and execute commits manually.