amazon-science/ammo / ai_cli_session/.codex/skills/ammo
ammo
UnverifiedProfile and optimize GPU kernels for vLLM inference on NVIDIA GPUs. Use when targeting a specific model, hardware, dtype, parallelism, and workload to improve latency.
tests/run_all.sh
View on GitHub#!/usr/bin/env bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: CC-BY-NC-4.0
# AMMO Codex mechanical test runner. Each child is judged by exit code; output
# text is never parsed as a pass signal.
#
# Usage: bash .codex/skills/ammo/tests/run_all.sh
set -uo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BASE="$(cd "$SCRIPT_DIR/../../.." && pwd)"
PYTEST_DIR="$BASE/skills/ammo/tests"
EVAL_TEST_DIR="$BASE/skills/ammo/eval/tests"
CAUSAL_TEST_DIR="$BASE/skills/ammo/eval/causal/tests"
HOOK_TEST="$PYTEST_DIR/test_hook_semantics.py"
FAILED=0
TOTAL=0
declare -a FAILED_NAMES=()
run_child() {
local label="$1"
shift
TOTAL=$((TOTAL + 1))
local rc=0
"$@" || rc=$?
if [ "$rc" -ne 0 ]; then
echo "FAILED: $label (exit $rc)"
FAILED=$((FAILED + 1))
FAILED_NAMES+=("$label")
else
echo "OK: $label"
fi
}
PYTHON="$BASE/../.venv/bin/python"
if [ ! -x "$PYTHON" ]; then
echo "FAILED: worktree .venv/bin/python not found" >&2
exit 1
fi
if [ ! -f "$HOOK_TEST" ]; then
echo "FAILED: required Codex hook suite missing: test_hook_semantics.py" >&2
exit 1
fi
run_child "pytest: skills/ammo/tests" "$PYTHON" -m pytest "$PYTEST_DIR" -q
run_child "pytest: skills/ammo/eval/tests" "$PYTHON" -m pytest "$EVAL_TEST_DIR" -q
run_child "pytest: skills/ammo/eval/causal/tests" "$PYTHON" -m pytest "$CAUSAL_TEST_DIR" -q
echo "AMMO run_all: $((TOTAL - FAILED))/$TOTAL child suites passed"
if [ "$FAILED" -gt 0 ]; then
printf 'FAILED suites:\n'
printf ' - %s\n' "${FAILED_NAMES[@]}"
exit 1
fi
echo "All suites green."
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |