skill-cleaner

Refactor monolithic SKILL.md files into Antigravity format with scripts, examples, and resources directories.

14|3|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/kofttlcc/quant-test --skill skill-cleaner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-cleaner
Source: https://github.com/kofttlcc/quant-test/tree/main/.agent/skills/skill-cleaner
Command: npx skills add https://github.com/kofttlcc/quant-test --skill skill-cleaner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires re, sys, os, shutil, and includes scripts (resource) components.

What problem does it solve?

This Skill standardizes and refactors existing skills into the Antigravity skill format, ensuring a clean and organized project structure.

Core Features & Use Cases

  • Skill Refactoring: Converts monolithic SKILL.md files into a structured format with separate scripts/, examples/, and resources/ directories.
  • Standardization: Ensures all skills adhere to a consistent directory layout for better maintainability.
  • Use Case: You have a legacy skill with all its code embedded directly in SKILL.md. Use this skill to automatically extract code blocks into appropriate subdirectories and update SKILL.md with links to these new files.

Quick Start

Use the skill-cleaner to refactor the skill located at '/path/to/old/skill'.

Frequently Asked Questions about skill-cleaner

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

FAQPage Schema
How do I refactor a monolithic markdown file into separate scripts and resources directories?

To refactor monolithic markdown files, this Skill parses Python scripts and markdown to automatically extract embedded code blocks into structured scripts, examples, and resources directories. It separates the code from the documentation and updates the original file with links to the newly generated files.

What is the Antigravity skill format for standardizing project structure?

The Antigravity skill format is a standardized project structure that separates monolithic skill files into dedicated scripts, examples, and resources directories. This organization ensures consistent directory layouts and better maintainability for Python scripts and markdown parsing tasks.

Can I use Python scripts to extract code blocks from markdown and manage file operations?

Yes, you can use Python scripts to extract code blocks from markdown and manage file operations. This Skill leverages built-in modules like os, sys, shutil, and re to parse markdown content, separate embedded code, and organize the extracted scripts into appropriate directories.

Does this code organization tool work with legacy skills that have all code embedded directly in the markdown?

Yes, this code organization tool works with legacy skills by automatically extracting embedded code from monolithic markdown files. It identifies the embedded blocks, separates them into appropriate subdirectories, and updates the original markdown with links to these newly created files.