clean

Delete child AGENTS.md files and remove the Intent Layer section from CLAUDE.md.

8|1|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/orban/intent-layer --skill clean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean
Source: https://github.com/orban/intent-layer/tree/main/intent-layer/clean
Command: npx skills add https://github.com/orban/intent-layer --skill clean

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the Intent Layer infrastructure from a repository by deleting all child AGENTS.md files and removing the Intent Layer section from CLAUDE.md.

Core Features & Use Cases

  • Deletes all child AGENTS.md files in subdirectories, ensuring no residual AGENTS.md artifacts remain.
  • Removes the Intent Layer section from the repository's CLAUDE.md to fully revert CLI/UX integration.
  • Provides a safe, step-by-step plan and confirmation workflow to avoid unintended changes during cleanup.

Quick Start

Run the skill against a repository to remove all child AGENTS.md files and strip the Intent Layer section from CLAUDE.md.

Frequently Asked Questions about clean

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

FAQPage Schema
How do I remove AGENTS.md files and clean up the Intent Layer from my repository?

To remove the Intent Layer from a repository, this Skill deletes all child AGENTS.md files and strips the Intent Layer section from CLAUDE.md using standard shell utilities like find and rm.

What is the safest way to delete AGENTS.md files without breaking my repository structure?

The safest way to delete AGENTS.md files is using a preview and confirmation workflow that locates files with shell utilities and asks for approval prior to execution, preventing unintended changes during cleanup.

How do I strip the Intent Layer section from CLAUDE.md after an architectural overhaul?

To strip the Intent Layer section from CLAUDE.md, this Skill uses grep to locate the specific section boundaries and removes the content to fully revert CLI and UX integration.

Does this repository cleanup tool work on projects of any size?

Yes, this repository cleanup tool works on projects of any size where the Intent Layer is being removed or replaced, including cleanup after drift or architectural overhaul.

Can I preview which AGENTS.md files will be deleted before running the cleanup?

Yes, you can preview which AGENTS.md files will be deleted because the Skill generates a step-by-step plan and requires explicit confirmation prior to executing any file removal.

Why do I have leftover AGENTS.md files in subdirectories after removing the Intent Layer?

Leftover AGENTS.md files in subdirectories remain because manual removal often misses nested child files; this Skill uses the find utility to locate and delete all child AGENTS.md artifacts comprehensively.