hvac-marketing-skills/tools/compendium/compendium-classify.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

25 lines
954 B
Bash
Executable file

#!/bin/bash
# Compendium Classification API wrapper
# Usage: compendium-classify.sh <text> [content_type]
# Content types: article (default), video, podcast, social_post
set -euo pipefail
CLASSIFY_API="${COMPENDIUM_CLASSIFY_URL:-http://192.168.10.249:30080}"
TEXT="${1:?Usage: compendium-classify.sh <text> [content_type]}"
CONTENT_TYPE="${2:-article}"
# Health check
if ! curl -sf "${CLASSIFY_API}/api/v2/content-classification/health/" > /dev/null 2>&1; then
echo "ERROR: Classification API unavailable at ${CLASSIFY_API}" >&2
echo "Fallback: Use manual content assessment" >&2
exit 1
fi
# Escape text for JSON
ESCAPED_TEXT=$(python3 -c "import json; print(json.dumps('${TEXT}'))")
curl -sf -X POST "${CLASSIFY_API}/api/v2/content-classification/classify/" \
-H "Content-Type: application/json" \
-d "{\"text\": ${ESCAPED_TEXT}, \"content_type\": \"${CONTENT_TYPE}\", \"return_dimensions\": true}" \
| python3 -m json.tool