Files
pydantic__skills/scripts/check-skill-sync.sh
Marcelo Trylesinski f124d1b81e Rename plugin to logfire, add multi-language support and per-language references
Rename plugin from instrument-with-logfire to logfire, rename skill from
logfire-instrumentation to instrumentation inside the plugin. Add Python,
JavaScript/TypeScript, and Rust instrumentation to SKILL.md and /instrument
command. Split references into per-language directories (python/, javascript/,
rust/) with dedicated pattern and framework files.
2026-02-24 17:00:04 +00:00

50 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Ensure standalone skills/ copies stay in sync with plugin sources.
exit_code=0
check_sync() {
local plugin_file="$1"
local standalone_file="$2"
if [ ! -f "$standalone_file" ]; then
echo "MISSING: $standalone_file (should mirror $plugin_file)"
exit_code=1
return
fi
if ! diff -q "$plugin_file" "$standalone_file" > /dev/null 2>&1; then
echo "OUT OF SYNC: $standalone_file != $plugin_file"
echo " Run: cp $plugin_file $standalone_file"
exit_code=1
fi
}
check_sync \
plugins/logfire/skills/instrumentation/SKILL.md \
skills/logfire-instrumentation/SKILL.md
check_sync \
plugins/logfire/skills/instrumentation/references/python/logging-patterns.md \
skills/logfire-instrumentation/references/python/logging-patterns.md
check_sync \
plugins/logfire/skills/instrumentation/references/python/integrations.md \
skills/logfire-instrumentation/references/python/integrations.md
check_sync \
plugins/logfire/skills/instrumentation/references/javascript/patterns.md \
skills/logfire-instrumentation/references/javascript/patterns.md
check_sync \
plugins/logfire/skills/instrumentation/references/javascript/frameworks.md \
skills/logfire-instrumentation/references/javascript/frameworks.md
check_sync \
plugins/logfire/skills/instrumentation/references/rust/patterns.md \
skills/logfire-instrumentation/references/rust/patterns.md
exit $exit_code