Bhanunamikaze/Agentic-SEO-Skill
seo
VerifiedDeterministic LLM-first SEO audits for websites, blog posts, and GitHub repositories. Use this when the user asks to "perform SEO analysis", "run SEO audit", "analyze SEO", "check technical SEO", "review schema", "Core Web Vitals", "E-E-A-T", "hreflang", "GEO", "AEO", or GitHub repository SEO optimization. For full/page/repo audits, run bundled scripts for evidence and return prioritized, confidence-labeled fixes.
scripts/pre_commit_seo_check.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
# Pre-commit SEO validation helper.
#
# Example .git/hooks/pre-commit:
# #!/usr/bin/env bash
# bash path/to/pre_commit_seo_check.sh
ERRORS=0
WARNINGS=0
# Check if there are staged changes — exit early if not
if ! git diff --cached --quiet 2>/dev/null; then
: # There are staged changes, proceed with checks
else
exit 0 # No staged changes, nothing to check
fi
echo "🔍 Running pre-commit SEO checks..."
# Check staged HTML-like files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM 2>/dev/null | grep -E '\.(html|htm|php|jsx|tsx|vue|svelte)$' || true)
if [ -z "${STAGED_FILES}" ]; then
echo "✓ No HTML files staged — skipping SEO checks"
exit 0
fi
for file in ${STAGED_FILES}; do
if [ ! -f "${file}" ]; then
continue
fi
# Check for placeholder text in schema
if grep -qiE '\[(Business Name|City|State|Phone|Address|Your|INSERT|REPLACE)\]' "${file}" 2>/dev/null; then
echo "🛑 ${file}: Contains placeholder text in schema markup"
ERRORS=$((ERRORS + 1))
fi
# Check title tag length
TITLE=$(grep -oP '(?<=<title>).*?(?=</title>)' "${file}" 2>/dev/null | head -1 || true)
if [ -n "${TITLE}" ]; then
TITLE_LEN=${#TITLE}
if [ "${TITLE_LEN}" -lt 30 ] || [ "${TITLE_LEN}" -gt 70 ]; then
echo "⚠️ ${file}: Title tag length ${TITLE_LEN} chars (recommend 30-60)"
WARNINGS=$((WARNINGS + 1))
fi
fi
# Check for images without alt text
if grep -qP '<img(?![^>]*alt=)' "${file}" 2>/dev/null; then
echo "⚠️ ${file}: Images found without alt text"
WARNINGS=$((WARNINGS + 1))
fi
# Check for deprecated schema types
if grep -qE '"@type"\s*:\s*"(HowTo|SpecialAnnouncement)"' "${file}" 2>/dev/null; then
echo "🛑 ${file}: Contains deprecated schema type"
ERRORS=$((ERRORS + 1))
fi
# Check for FID references (should be INP)
if grep -qi 'First Input Delay\|"FID"' "${file}" 2>/dev/null; then
echo "⚠️ ${file}: References FID — should use INP (Interaction to Next Paint)"
WARNINGS=$((WARNINGS + 1))
fi
# Check meta description length
META_DESC=$(grep -oP '(?<=<meta name="description" content=").*?(?=")' "${file}" 2>/dev/null | head -1 || true)
if [ -n "${META_DESC}" ]; then
META_LEN=${#META_DESC}
if [ "${META_LEN}" -lt 120 ] || [ "${META_LEN}" -gt 160 ]; then
echo "⚠️ ${file}: Meta description length ${META_LEN} chars (recommend 120-160)"
WARNINGS=$((WARNINGS + 1))
fi
fi
done
echo ""
if [ "${ERRORS}" -gt 0 ]; then
echo "🛑 ${ERRORS} critical error(s) found — commit blocked"
echo "Fix the errors above and try again."
exit 2
elif [ "${WARNINGS}" -gt 0 ]; then
echo "⚠️ ${WARNINGS} warning(s) found — commit allowed"
exit 0
else
echo "✓ All SEO checks passed"
exit 0
fi
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |