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.
scripts/remove_worktree_cleanup.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
set -euo pipefail
if [[ $# -lt 1 || $# -gt 2 ]]; then
echo "Usage: $0 <worktree-path-or-name> [main-repo]" >&2
exit 2
fi
INPUT_PATH="$1"
MAIN_REPO="${2:-$(git rev-parse --show-toplevel)}"
MAIN_REPO="$(cd "$MAIN_REPO" && pwd)"
if [[ "$INPUT_PATH" == */* ]]; then
WORKTREE_PATH="$INPUT_PATH"
else
WORKTREE_PATH="$MAIN_REPO/.codex/worktrees/$INPUT_PATH"
fi
if [[ ! -d "$WORKTREE_PATH" ]]; then
exit 0
fi
BRANCH_NAME="$(git -C "$WORKTREE_PATH" rev-parse --abbrev-ref HEAD 2>/dev/null || true)"
if ! git -C "$WORKTREE_PATH" diff --quiet 2>/dev/null || ! git -C "$WORKTREE_PATH" diff --cached --quiet 2>/dev/null; then
echo "Warning: worktree has uncommitted changes: $WORKTREE_PATH" >&2
fi
git -C "$MAIN_REPO" worktree remove --force "$WORKTREE_PATH" >/dev/null 2>&1 || {
rm -rf "$WORKTREE_PATH"
git -C "$MAIN_REPO" worktree prune >/dev/null 2>&1 || true
}
if [[ "$BRANCH_NAME" == ammo/* || "$BRANCH_NAME" == worktree-* ]]; then
git -C "$MAIN_REPO" branch -D "$BRANCH_NAME" >/dev/null 2>&1 || true
fi
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 |