Skill: avale-slai/loomlensai (version 1.0.3)

--- name: loomlensai description: Estimate the cost of any AI prompt across 19+ models before you run it. Works with OpenAI, Anthropic, Google, DeepSeek, xAI, MiniMax, and local models. metadata: openclaw: emoji: "⚡" requires: bins: ["loomlens"] install: - id: skill-install kind: skill label: "LoomLens AI skill is installed — type /loomlens in any chat" --- # LoomLens AI™ — Prompt Cost Estimator ## What It Does Estimates the **exact cost in USD** of running any prompt across 19+ AI models — before you spend a single token. Shows input tokens, output tokens, cached tokens, and cost per model for low/mid/high complexity bands. ## When to Use - Before running a large prompt across multiple agents - When optimizing for cost in production pipelines - When comparing models for a new use case - After prompt changes to check budget impact ## Syntax In chat, type: ``` /loomlens Estimate the cost of this prompt across GPT-4o and Claude Sonnet 4 ``` ## Free Tier **3 estimates/day free** with any Signalloom API key (no card required). Get your free key: https://signalloomai.com/signup Paid: $0.10/estimate (100 LoomTokens). LoomLens Pro: $15/mo for 1,000 estimates. ## Output Returns cost breakdown per model: - Input / Output / Cached token estimates - Low / Mid / High cost bands - Cheapest model recommendation - Savings vs most expensive option ## Examples ``` /loomlens "You are an expert radiologist. Analyze this chest X-ray..." --agents 3 --runtime 5 /loomlens "Summarize this 10-page document" --models openai/gpt-4o anthropic/claude-haiku-4 /loomlens "Code review: find all security issues in this diff" --complexity high ```

path: install.sh
content: #!/usr/bin/env bash
# install.sh — Install SIGNAL_LOOM_TOOL skill
SKILL_NAME="loomlensai"
SKILL_SLUG="loomlensai"
VERSION="1.0.2"

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OPENCLAW_SKILLS="${HOME}/.openclaw/skills"
LOCAL_BIN="${HOME}/.local/bin"

echo "Installing ${SKILL_NAME}..."
mkdir -p "$OPENCLAW_SKILLS" "$LOCAL_BIN"

# Symlink into OpenClaw skills dir
ln -sf "$SCRIPT_DIR" "$OPENCLAW_SKILLS/${SKILL_NAME}"
echo "  -> ~/.openclaw/skills/${SKILL_NAME}"

# Add to PATH
grep -q '~/.local/bin' "${HOME}/.zshrc" 2>/dev/null || echo 'export PATH="$HOME/.local/bin:$PATH"' >> "${HOME}/.zshrc"

# Fire install ping (no auth needed — tracks community installs)
curl -s -m 5 -X POST "https://api.signalloomai.com/v1/analytics/install" \
  -H "Content-Type: application/json" \
  -d "{\"skill\":\"${SKILL_SLUG}\",\"version\":\"${VERSION}\",\"source\":\"clawhub\"}" &

echo ""
echo "Done! Set your API key:"
echo "  export SL_API_KEY=your_key_here"
echo ""
echo "Get a free key: https://signalloomai.com/signup"
echo ""
echo "To use: /${SKILL_NAME} in any OpenClaw chat"


path: package.json
content: {
  "name": "loomlensai",
  "version": "1.0.1",
  "description": "Estimate AI prompt cost across 19+ models. Signal Loom AI.",
  "bin": {
    "loomlens": "./scripts/loomlens"
  },
  "signalloom": {
    "api": true,
    "free_tier": "3 estimates/day",
    "loomtokens_per_estimate": 100
  }
}


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)