hvac-marketing-skills/tools/compendium/compendium-search.sh
bengizmo 1e70d8387b
Some checks failed
Sync Skills / sync (push) Has been cancelled
Validate Agent Skill / detect-changes (push) Has been cancelled
Validate Agent Skill / validate (push) Has been cancelled
feat: fork marketingskills → HVAC Marketing Skills for Compendium
- Forked from coreyhaines31/marketingskills v1.1.0 (MIT license)
- Removed 4 SaaS-only skills (churn-prevention, paywall-upgrade-cro, onboarding-cro, signup-flow-cro)
- Reworked 2 skills (popup-cro → hvac-estimate-popups, revops → hvac-lead-ops)
- Adapted all 28 retained skills with HVAC industry context and Compendium integration
- Created 10 new HVAC-specific skills:
  - hvac-content-from-data (flagship DB integration)
  - hvac-seasonal-campaign (demand cycle marketing)
  - hvac-review-management (GBP review strategy)
  - hvac-video-repurpose (long-form → social)
  - hvac-technical-content (audience-calibrated writing)
  - hvac-brand-voice (trade authenticity guide)
  - hvac-contractor-website-audit (discovery & analysis)
  - hvac-contractor-website-package (marketing package assembly)
  - hvac-compliance-claims (EPA/rebate/safety claim checking)
  - hvac-content-qc (fact-check & citation gate)
- Renamed product-marketing-context → hvac-marketing-context (global)
- Created COMPENDIUM_INTEGRATION.md (shared integration contract)
- Added Compendium wrapper tools (search, scrape, classify)
- Added compendium capability tags to YAML frontmatter
- Updated README, AGENTS.md, CLAUDE.md, VERSIONS.md, marketplace.json
- All 38 skills pass validate-skills.sh
- Zero dangling references to removed/renamed skills

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 21:05:49 -03:00

22 lines
779 B
Bash
Executable file

#!/bin/bash
# Compendium Search Router wrapper
# Usage: compendium-search.sh <query> [backend]
# Backends: searxng-direct (default), searxng-proxied, jina, exa
set -euo pipefail
SEARCH_ROUTER="${COMPENDIUM_SEARCH_URL:-http://192.168.10.249:30099}"
QUERY="${1:?Usage: compendium-search.sh <query> [backend]}"
BACKEND="${2:-searxng-direct}"
# Health check
if ! curl -sf "${SEARCH_ROUTER}/health" > /dev/null 2>&1; then
echo "ERROR: Search Router unavailable at ${SEARCH_ROUTER}" >&2
echo "Fallback: Use Claude Code WebSearch instead" >&2
exit 1
fi
# URL-encode query
ENCODED_QUERY=$(python3 -c "import urllib.parse; print(urllib.parse.quote('${QUERY}'))")
curl -sf "${SEARCH_ROUTER}/search?q=${ENCODED_QUERY}&backend=${BACKEND}&format=json" | python3 -m json.tool