lidge-jun/codexclaw / plugins/codexclaw/skills/dev-visualizer
cxc-dev-visualizer
VerifiedUse for visual explanations and documents. Triggers: diagrams, charts, interactive models, HTML reports, infographics, 시각화, 그려줘, 문서 만들어줘, 보고서, PDF 생성.
upstream/sync-check.sh
View on GitHub#!/usr/bin/env bash
set -u
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TRACKING_FILE="$SCRIPT_DIR/visualize-upstream.md"
VISUALIZE_ROOT="${CXC_VISUALIZE_ROOT:-${CODEX_HOME:-$HOME/.codex}/plugins/cache/openai-bundled/visualize}"
if [[ ! -f "$TRACKING_FILE" ]]; then
printf 'unable to check visualize upstream: tracking file not found\n' >&2
printf 'expected: %s\n' "$TRACKING_FILE" >&2
exit 1
fi
stored_path="$(awk -F'`' '/^- Current upstream path:/ { print $2; exit }' "$TRACKING_FILE")"
stored_hash="$(awk -F'`' '/^- Current SHA-256:/ { print $2; exit }' "$TRACKING_FILE")"
stored_version="$(awk -F'`' '/^- Version:/ { print $2; exit }' "$TRACKING_FILE")"
if [[ ! "$stored_hash" =~ ^[[:xdigit:]]{64}$ ]]; then
printf 'unable to check visualize upstream: stored SHA-256 is missing or invalid\n' >&2
printf 'tracking file: %s\n' "$TRACKING_FILE" >&2
exit 1
fi
shopt -s nullglob
candidates=("$VISUALIZE_ROOT"/*/skills/visualize/SKILL.md)
shopt -u nullglob
if (( ${#candidates[@]} == 0 )); then
printf 'unable to check visualize upstream: installed SKILL.md not found\n' >&2
printf 'searched: %s\n' "$VISUALIZE_ROOT/*/skills/visualize/SKILL.md" >&2
exit 1
fi
version_is_newer() {
local left="${1#v}"
local right="${2#v}"
local left_part right_part length index
local IFS=.
local -a left_parts right_parts
read -r -a left_parts <<< "$left"
read -r -a right_parts <<< "$right"
length=${#left_parts[@]}
if (( ${#right_parts[@]} > length )); then
length=${#right_parts[@]}
fi
for (( index = 0; index < length; index++ )); do
left_part="${left_parts[index]:-0}"
right_part="${right_parts[index]:-0}"
left_part="${left_part%%[^0-9]*}"
right_part="${right_part%%[^0-9]*}"
left_part="${left_part:-0}"
right_part="${right_part:-0}"
if (( left_part > right_part )); then
return 0
fi
if (( left_part < right_part )); then
return 1
fi
done
return 1
}
upstream_file="${candidates[0]}"
upstream_version="${upstream_file#"$VISUALIZE_ROOT"/}"
upstream_version="${upstream_version%%/skills/visualize/SKILL.md}"
for candidate in "${candidates[@]:1}"; do
candidate_version="${candidate#"$VISUALIZE_ROOT"/}"
candidate_version="${candidate_version%%/skills/visualize/SKILL.md}"
if version_is_newer "$candidate_version" "$upstream_version"; then
upstream_file="$candidate"
upstream_version="$candidate_version"
fi
done
if command -v sha256sum >/dev/null 2>&1; then
current_hash="$(sha256sum < "$upstream_file" | awk '{ print $1 }')"
elif command -v shasum >/dev/null 2>&1; then
current_hash="$(shasum -a 256 < "$upstream_file" | awk '{ print $1 }')"
else
printf 'unable to check visualize upstream: no SHA-256 tool found\n' >&2
printf 'install sha256sum or shasum and rerun this script\n' >&2
exit 1
fi
if [[ "$current_hash" == "$stored_hash" ]]; then
printf 'upstream in sync (version %s, hash %s)\n' "$upstream_version" "$current_hash"
exit 0
fi
printf 'visualize upstream drift detected\n'
printf '\nChange summary:\n'
printf ' version: %s -> %s\n' "${stored_version:-unknown}" "$upstream_version"
printf ' path: %s -> %s\n' "${stored_path:-unknown}" "$upstream_file"
printf ' SHA-256: %s -> %s\n' "$stored_hash" "$current_hash"
printf '\nInspection required:\n'
printf ' 1. Read the current host-provided visualize skill in full.\n'
printf ' 2. Verify the applicable output and interaction requirements; do not embed a frozen copy.\n'
printf ' 3. Update inspection provenance in %s only after that review.\n' "$TRACKING_FILE"
printf ' 4. A matching hash is a freshness hint, not rendering or compatibility proof.\n'
exit 1
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |