package

Clean Python repositories and sanitize secrets for distribution.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/zhunikaixin297/Enterprise-Modular-RAG-MCP --skill package-zhunikaixin297
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package
Source: https://github.com/zhunikaixin297/Enterprise-Modular-RAG-MCP/tree/main/.github/skills/package
Command: npx skills add https://github.com/zhunikaixin297/Enterprise-Modular-RAG-MCP --skill package-zhunikaixin297

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prepares a project for distribution by removing caches, virtual environments, build outputs, logs, and other transient artifacts while sanitizing secrets in configuration files.

Core Features & Use Cases

  • Dry-run cleanup planning: Reviews everything that would be removed before any file is deleted.
  • Project packaging: Cleans Python caches, build directories, coverage files, IDE settings, and leftover test artifacts to create a minimal codebase.
  • Secret sanitization: Replaces real API keys and endpoints in config files with safe placeholders.
  • Use case: Before handing a repository to a teammate or publishing a clean snapshot, use this Skill to produce a safe, shareable workspace.

Quick Start

Use the package skill to run a dry-run cleanup of the repository, review the planned removals, and then execute the cleanup once you confirm it is ready.

Frequently Asked Questions about package

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

FAQPage Schema
How do I clean a Python project for distribution by removing caches and build artifacts?

To clean a Python project for distribution, run a dry-run cleanup to review targeted caches, virtual environments, build outputs, and logs before executing file deletion. This planning phase ensures only transient files are removed while preserving necessary data.

What is the best way to sanitize API keys in configuration files before sharing a repository?

Sanitizing API keys in configuration files involves safely replacing real endpoints and keys with secure placeholders before repository handoff. This process ensures sensitive credentials are stripped from shared codebase snapshots without breaking configuration structure.

Can I selectively retain data and logs when packaging a codebase for archiving?

You can selectively retain data and logs during codebase packaging by reviewing the dry-run report and configuring retention rules. This allows specific files to survive the cleanup process while transient artifacts are purged.

Does the dry-run cleanup planning remove files immediately or just report planned removals?

Dry-run cleanup planning only reports planned removals without deleting files immediately. It scans for Python caches, virtual environments, build directories, and IDE settings, providing a summary for user confirmation before executing actual deletion.

What transient files are targeted when cleaning a Python codebase for release handoff?

Cleaning a Python codebase for release handoff targets Python caches, virtual environments, build directories, coverage files, IDE settings, and leftover test artifacts. These transient files are removed to create a minimal, reproducible project copy.

When should I not use an automated cleanup script for project packaging?

You should avoid automated cleanup scripts for project packaging when unreviewed, as accidental deletion of non-transient files may occur. Always execute a dry-run first to verify targeted caches and logs, ensuring critical data remains intact.