scripts-infra

Manage shared bash and Python script infrastructure with validation rules.

Updated May 20, 2025
One-click install
npx skills add https://github.com/flext-sh/flext --skill scripts-infra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scripts-infra
Source: https://github.com/flext-sh/flext/tree/main/.claude/skills/scripts-infra
Command: npx skills add https://github.com/flext-sh/flext --skill scripts-infra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides the foundational scripting infrastructure, ensuring consistency, maintainability, and adherence to best practices across all automation scripts within the repository.

Core Features & Use Cases

  • Shared Libraries: Offers reusable bash and Python libraries for common tasks like artifact naming, logging, and environment detection.
  • Script Validation: Enforces ownership, naming conventions, and gate contract rules for all scripts.
  • Use Case: When developing a new automation script, this Skill ensures it integrates seamlessly with the existing ecosystem, is properly documented, and passes all automated checks before deployment.

Quick Start

Use the scripts-infra skill to validate ownership markers for all scripts in the repository.

Frequently Asked Questions about scripts-infra

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

FAQPage Schema
How do I enforce standard shebangs and exit codes across bash and python automation scripts?

A shared script infrastructure enforces standard shebangs, exit codes, and ownership markers across bash and python automation scripts. It validates repository-wide consistency and blocks non-compliant scripts from passing automated checks.

What is the best way to standardize artifact naming conventions in a CI/CD pipeline?

Standardizing artifact naming conventions in a CI/CD pipeline is best handled by reusable bash and python libraries within a core script infrastructure. This provides consistent environment detection and uniform artifact naming utilities across all automation scripts.

How do I validate script ownership and minimum code lines before deployment?

You validate script ownership and minimum code lines before deployment by running automated script validation checks. The infrastructure enforces gate contract rules, ensuring scripts meet minimum line requirements and have proper ownership markers before deployment.

Do I need a script registry to manage shared bash and python libraries?

A script registry is needed to manage shared bash and python libraries effectively. The core runner and registry coordinate reusable libraries for logging and environment detection, ensuring all scripts integrate seamlessly with the existing ecosystem.

Can I use shared script infrastructure for automated validation of existing repository scripts?

Yes, you can use shared script infrastructure for automated validation of existing repository scripts. It enforces gate contract rules and naming conventions, scanning all scripts to ensure they meet standardization requirements before deployment.

Why does my automation script fail the workspace standardization checks?

Your automation script fails workspace standardization checks if it lacks proper ownership markers, violates artifact naming rules, or misses required shebangs and exit codes. The validation infrastructure enforces these gate contracts to maintain repository consistency.