freeshard-diagnostics-and-tooling

Diagnose code debt, environment configuration, and performance in the Freeshard shard_core repository.

47|2|Updated Feb 11, 2025
One-click install
npx skills add https://github.com/FreeshardBase/freeshard --skill freeshard-diagnostics-and-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeshard-diagnostics-and-tooling
Source: https://github.com/FreeshardBase/freeshard/tree/main/.claude/skills/freeshard-diagnostics-and-tooling
Command: npx skills add https://github.com/FreeshardBase/freeshard --skill freeshard-diagnostics-and-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, docker, bash, python3, and includes scripts (resource) components.

What problem does it solve?

This Skill replaces subjective troubleshooting with objective measurements, providing a suite of diagnostic tools to identify code debt, environment configuration errors, and system performance bottlenecks within the Freeshard (shard_core) repository.

Core Features & Use Cases

  • Type Drift Detection: Automatically identifies discrepancies between local data models and the central controller repository to prevent runtime validation failures.
  • Environment Validation: Verifies that configuration overrides (FREESHARD_* variables) are correctly parsed by the application, preventing silent configuration failures.
  • Hotspot Analysis: Ranks files by commit churn and fix frequency to highlight high-risk areas of the codebase that require extra scrutiny.

Quick Start

Run the check-type-drift script to identify any stale data models currently present in the local repository.

Frequently Asked Questions about freeshard-diagnostics-and-tooling

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

FAQPage Schema
How do I detect type drift between local data models and a central repository?

Type drift detection identifies discrepancies between local data models and the central controller repository to prevent runtime validation failures. It automatically scans your codebase to flag stale data models currently present in the local repository.

How do I validate FREESHARD environment variables to prevent silent configuration failures?

Environment validation verifies that configuration overrides (FREESHARD_* variables) are correctly parsed by the application. This prevents silent configuration failures by checking environment variable parsing during development and operational workflows.

What's the best way to identify high-risk code hotspots using git commit history?

Hotspot analysis ranks files by commit churn and fix frequency to highlight high-risk areas of the codebase. This identifies defect hotspots requiring extra scrutiny by analyzing repository-level commit history and fix patterns.

Do I need Docker and GitHub CLI to run repository-level diagnostics?

Yes, repository-level diagnostics require the GitHub CLI, Docker, bash, and python3. These standard Unix utilities and container-based inspection tools are necessary to perform environment validation and system performance analysis.

Why does my application fail runtime validation after pulling updates?

Runtime validation failures often stem from type drift between local data models and the central controller repository. Running type drift detection identifies stale data models in the local repository that cause these discrepancies.

Can I use bash scripts to quantify code debt and system performance in a Docker environment?

Yes, diagnostic scripts use bash and python3 to measure code debt and system performance within a Docker environment. They apply container-based inspection to quantify repository health metrics and identify performance bottlenecks.