folder-context-optimization

Identify legacy and unused files in a folder and propose archival plans.

1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Joaovsales/coding-agent-workflow --skill folder-context-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: folder-context-optimization
Source: https://github.com/Joaovsales/coding-agent-workflow/tree/main/.agents/skills/folder-context-optimization
Command: npx skills add https://github.com/Joaovsales/coding-agent-workflow --skill folder-context-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify legacy and unused files within a folder and propose archival to keep a codebase lean.

Core Features & Use Cases

  • Inventory: list files in a target folder and classify them as Core, Legacy, Ad-hoc, or Optional.
  • Analysis: trace file usage references across code, docs, and tests to assess relevance.
  • Archival Proposals: generate a per-file action plan and a final archive map for user approval.

Quick Start

Provide a directory path to sweep and let the tool present a proposed archival plan and updated documentation.

Frequently Asked Questions about folder-context-optimization

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

FAQPage Schema
How do I identify legacy and unused files in a bloated codebase folder?

To identify legacy files in a codebase, you can analyze file references across code, docs, and tests to classify each item as Core, Legacy, Ad-hoc, or Optional for archival.

What is the best way to generate an archival plan for stale project directories?

The best way to generate an archival plan is to sweep a target directory, trace file usage references, and produce a per-file action map with a final archive proposal for approval.

Can I use this during a codebase refactor to slim down my repository?

Yes, you can use this during codebase refactors or reorganizations to archive stale folder content, classify files by relevance, and keep your project directories lean and navigable.

Does folder cleanup work for project directories of varying sizes?

Folder cleanup works for project directories of varying sizes, applying file reference analysis and classification to propose archival plans and update documentation like READMEs.

How do I update documentation when archiving unused project files?

You update documentation when archiving unused files by generating an archival plan that includes a README update, reflecting the proposed changes to keep the codebase lean.

When should I not use automated archival proposals for project organization?

You should not use automated archival proposals when file references cannot be accurately traced across code, docs, and tests, as misclassification of Core or Legacy files may occur.