skills/civitai-analyst/SKILL.md
name: civitai-analyst description: "Generate and execute SQL queries against the civitai_records PostgreSQL database to analyze video performance on Civitai. Use when users ask about: video engagement metrics (likes, hearts, comments), content performance analysis, tag/theme analysis, quality scores, weekly reports, comparing videos, content recommendations, trend analysis, or any Civitai data queries. Triggers: Civitai, video stats, engagement, likes, hearts, comments, weekly report, tag analys
npx skillsauth add feed-mob/agent-skills skills/civitai-analystInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze video performance data on Civitai through natural language queries. Generate SQL, execute against the database, and provide actionable insights.
query_civitai_dbexport CIVITAI_RECORD_MCP_SERVER_TOKEN="<token>"
export MCPORTER_CONFIG="${SKILL_DIR}/mcporter.json"
test -f "${MCPORTER_CONFIG}"
npx mcporter list --config "${MCPORTER_CONFIG}"
npx mcporter list civitai_records --config "${MCPORTER_CONFIG}"
Execute SQL with mcporter so every query is auditable and consistently configured:
npx mcporter call civitai_records.query_civitai_db \
--config "${MCPORTER_CONFIG}" --output json \
sql="SELECT ..."
Rules:
--output jsonsql=$(cat <<'SQL' ... SQL)Error Handling: If query is rejected, response contains:
{
"allowed": false,
"reason": "...",
"violation_type": "...",
"suggestions": "..."
}
Fix the SQL based on the error and retry.
npx mcporter call civitai_records.query_civitai_db with validated SQL'c29' if not specified'2025-01-06T00:00:00Z'Date Calculations:
Assets (videos/images):
https://civitai.com/images/{assets.civitai_id}
Posts:
https://civitai.com/posts/{civitai_posts.civitai_id}
Always include clickable links in results for easy navigation.
When comparing videos (e.g., "rank 2 vs rank 9"):
Based on analysis, provide actionable suggestions:
Example insights:
For weekly reports, use templates from references/report-templates.md:
Generate reports by:
Respond in the same language as the user's query.
| File | When to Read |
|------|--------------|
| references/schema.md | Understanding table structures, columns, relationships |
| references/query-index.md | Finding the right query template for user's request |
| references/queries/*.sql | Loading specific query when needed |
| references/report-templates.md | Generating weekly reports |
tools
A clear, complete description of what this skill does and when Claude should use it
data-ai
Parse URLs in CSV files and extract query parameters as new columns. Use when working with CSV files containing URLs that need parameter extraction and analysis.
development
Delegate coding tasks to an attached OpenCode server via `opencode run --attach`. Use when: (1) building new features, (2) refactoring, (3) reviewing changes, (4) iterative coding with background monitoring. This skill is server-only and always uses `--attach` with `--dir` (server-side path).
development
Automatically installs and configures weekly-hubspot-report and weekly-hubspot-report-pipeline skills from feedmob-skills repository. Supports git clone or manual zip upload, runs npx skills add commands, and guides environment variable setup for FEMINI_API_TOKEN, FEEDAI_API_TOKEN, and AWS credentials. Use when: user needs HubSpot reporting, install HubSpot skills, generate weekly ticket reports, configure report pipeline, or when weekly-hubspot-report* skills are mentioned but not available. Triggers: install HubSpot skills, setup HubSpot reporting, HubSpot weekly report, configure HubSpot, feedmob-skills installation.