| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 21.2 KB |
| agents/inspector-context.md | markdown | 11.6 KB |
| agents/inspector-control.md | markdown | 6.0 KB |
| agents/inspector-maintainability.md | markdown | 3.6 KB |
| references/durable-context.md | markdown | 2.0 KB |
| references/long-running-agents.md | markdown | 1.8 KB |
| references/maintainability-findings.md | markdown | 8.3 KB |
| references/prune.md | markdown | 8.3 KB |
| scripts/block-pipe-to-shell.py | script | 11.4 KB |
| scripts/check-agent-context.sh | script | 2.6 KB |
| scripts/check-doc-refs.sh | script | 2.6 KB |
| scripts/check-maintainability.sh | script | 2.6 KB |
| scripts/check-verifier-output.sh | script | 2.6 KB |
| scripts/check_agent_context.py | script | 69.5 KB |
| scripts/check_doc_refs.py | script | 7.8 KB |
| scripts/check_maintainability.py | script | 43.5 KB |
| scripts/check_moved_lines.py | script | 6.2 KB |
| scripts/check_verifier_output.py | script | 3.5 KB |
| scripts/collect-data.sh | script | 39.7 KB |
| scripts/conversation_audit.py | script | 34.6 KB |
| scripts/read_skill_description.py | script | 1.7 KB |
| scripts/run-health.ps1 | script | 14.1 KB |
| scripts/scan_skill_security.py | script | 19.5 KB |
scripts/check-maintainability.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
SCRIPT_PATH="${BASH_SOURCE[0]}"
case "$SCRIPT_PATH" in
*/*) SCRIPT_BASE="${SCRIPT_PATH%/*}" ;;
*) SCRIPT_BASE="." ;;
esac
SCRIPT_DIR="$(cd "$SCRIPT_BASE" && pwd -P)"
unset WAZA_PYTHON DOC_REF_CHECKER GIT_INSTALL_ROOT BASH_ENV ENV
sanitize_health_path() {
local target="$1"
local entry physical safe=""
local -a path_entries=()
target=$(cd "$target" 2>/dev/null && pwd -P) || target=$(pwd -P)
IFS=: read -r -a path_entries <<< "${PATH:-}"
for entry in "${path_entries[@]}"; do
[ -n "$entry" ] || continue
case "$entry" in
/*) ;;
*) continue ;;
esac
[ -d "$entry" ] || continue
physical=$(cd "$entry" 2>/dev/null && pwd -P) || continue
case "$physical/" in
"$target/"*) continue ;;
esac
safe="${safe:+$safe:}$physical"
done
printf '%s\n' "$safe"
}
canonical_health_executable() {
local current="$1"
local parent name link readlink_bin=""
local depth=0
case "$current" in
/*) ;;
*) return 1 ;;
esac
while [ "$depth" -lt 32 ]; do
parent="${current%/*}"
name="${current##*/}"
[ -n "$parent" ] || parent="/"
parent=$(cd "$parent" 2>/dev/null && pwd -P) || return 1
if [ "$parent" = "/" ]; then
current="/$name"
else
current="$parent/$name"
fi
if [ ! -L "$current" ]; then
[ -f "$current" ] && [ -x "$current" ] || return 1
printf '%s\n' "$current"
return 0
fi
if [ -z "$readlink_bin" ]; then
if [ -x /usr/bin/readlink ]; then
readlink_bin=/usr/bin/readlink
else
readlink_bin=$(type -P readlink 2>/dev/null || true)
fi
[ -n "$readlink_bin" ] || return 1
fi
link=$("$readlink_bin" "$current") || return 1
case "$link" in
/*) current="$link" ;;
*) current="$parent/$link" ;;
esac
depth=$((depth + 1))
done
return 1
}
HEALTH_TARGET=$(cd "${1:-$PWD}" 2>/dev/null && pwd -P) || HEALTH_TARGET=$(pwd -P)
PATH="$(sanitize_health_path "$HEALTH_TARGET")"
export PATH
PYTHON_BIN=""
for candidate in python3 python; do
resolved=$(type -P "$candidate" 2>/dev/null || true)
[ -n "$resolved" ] || continue
resolved=$(canonical_health_executable "$resolved" 2>/dev/null || true)
[ -n "$resolved" ] || continue
if [ "$HEALTH_TARGET" = "/" ]; then
continue
fi
case "$resolved/" in
"$HEALTH_TARGET/"*) continue ;;
esac
"$resolved" --version >/dev/null 2>&1 || continue
"$resolved" -I -c 'import sys; raise SystemExit(sys.version_info < (3, 9))' \
>/dev/null 2>&1 || continue
PYTHON_BIN="$resolved"
break
done
[ -n "$PYTHON_BIN" ] || exit 127
exec "$PYTHON_BIN" -I "$SCRIPT_DIR/check_maintainability.py" "$@"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |