Agent skill
civitai-analyst
Install this agent skill to your Project
npx add-skill https://github.com/feed-mob/agent-skills/tree/main/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 analysis, quality score, content strategy, top performers, SQL query, video comparison, WoW analysis, 数据分析, 视频表现, 周报, 内容分析." metadata: {"openclaw":{"requires":{"bins":["npx"],"env":["CIVITAI_RECORD_MCP_SERVER_TOKEN"]}}}
Civitai Analyst
Analyze video performance data on Civitai through natural language queries. Generate SQL, execute against the database, and provide actionable insights.
Capabilities
- SQL Generation - Convert natural language to optimized PostgreSQL queries
- Query Execution - Run queries via
query_civitai_db - Data Analysis - Interpret engagement metrics and find patterns
- Content Insights - Analyze tags, themes, quality scores from video_analysis
- Recommendations - Suggest content strategies based on performance data
- Weekly Reports - Generate JSON/HTML performance summaries
mcporter Setup
- Export the required token and point mcporter at this skill's config:
export CIVITAI_RECORD_MCP_SERVER_TOKEN="<token>"
export MCPORTER_CONFIG="${SKILL_DIR}/mcporter.json"
- Optional validation commands:
test -f "${MCPORTER_CONFIG}"
npx mcporter list --config "${MCPORTER_CONFIG}"
npx mcporter list civitai_records --config "${MCPORTER_CONFIG}"
Tool Usage
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:
- Always include
--output json - Pass SQL as a single string. For multi-line queries use
sql=$(cat <<'SQL' ... SQL) - Surface mcporter errors directly—most rejections return JSON with details
Error Handling: If query is rejected, response contains:
{
"allowed": false,
"reason": "...",
"violation_type": "...",
"suggestions": "..."
}
Fix the SQL based on the error and retry.
Workflow
- Understand - Parse user's question, identify metrics/filters needed
- Generate SQL - Use schema.md for tables, query-index.md for templates
- Execute - Run
npx mcporter call civitai_records.query_civitai_dbwith validated SQL - Analyze - Interpret results, find patterns, compare data points
- Present - Format with links, provide insights and recommendations
Key Parameters
civitai_account
- User-provided account identifier
- Default fallback:
'c29'if not specified
on_behalf_of
- User's first name, inferred from session context
- Used to filter assets/stats by uploader
Date Ranges
- Use calendar weeks (Monday 00:00 to Sunday 23:59 UTC)
- Format: PostgreSQL timestamptz
'2025-01-06T00:00:00Z'
Date Calculations:
- "This week" = Current Monday to next Monday
- "Last week" = Previous Monday to current Monday
- "Past 2 weeks" = Monday 2 weeks ago to next Monday
Link Formatting
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.
Analysis Guidelines
Engagement Metrics
- Positive engagement: likes + hearts + laughs
- Total engagement: all reactions + comments
- Engagement rate: total_engagement / asset_count
Pattern Recognition
- Compare top performers vs average
- Identify common tags in high-engagement videos
- Correlate quality_score with engagement
- Analyze motion_intensity impact
Comparative Analysis
When comparing videos (e.g., "rank 2 vs rank 9"):
- Extract shared tags
- Compare quality scores
- Analyze description/prompt similarities
- Identify differentiating factors
Recommendation Framework
Based on analysis, provide actionable suggestions:
- Content themes - Which topics/tags drive engagement
- Quality factors - Optimal quality_score ranges
- Timing patterns - Best posting times if data shows trends
- Improvement areas - Underperforming high-quality content
Example insights:
- "Anime + high-motion videos get 2x engagement"
- "Videos with quality_score > 0.85 need better tags for visibility"
- "Comments spike on 'cinematic' tagged content"
Report Generation
For weekly reports, use templates from references/report-templates.md:
- JSON format - Structured data for programmatic use
- HTML format - Visual report with Tailwind CSS styling
Generate reports by:
- Run weekly-feedback-stats.sql for summary
- Run top-performing-assets.sql for highlights
- Run tag-performance.sql for content insights
- Combine into report template
Language
Respond in the same language as the user's query.
- English query → English response
- Chinese query → Chinese response (中文提问 → 中文回答)
Reference Files
| 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 |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
skill-name
A clear, complete description of what this skill does and when Claude should use it
gemini-image-generator
Generate, edit, or transform images with Gemini Nano Banana using bundled Python scripts (Flash or Pro) including aspect ratio, resolution, image-to-image edits, logo overlays, and reference images. Use when users request image generation, image edits, image-to-image transformations, logo placement, or specific aspect ratios or resolutions.
feedmob-reporting-skills
MUST use this skill when using mcp__feedmob-reporting__* tools. Provides structured workflows for FeedMob reporting analysis. Key: All clients (Possible Finance, Koho Financial, TextNow, AppsFlyer MMP, etc.) use client_paid_action_count × gross_cpi (dynamic event field based on client_paid_action in click_url_histories). Critical for ensuring correct multi-step workflows and accurate data reconciliation. Trigger words: any feedmob-reporting MCP tool usage, Possible Finance, Koho Financial, TextNow, AppsFlyer, Singular reports, Adjust reports, direct spend, gross spend verification, spend reconciliation, client_paid_action.
feedmob-campaign-creator
Create FeedMob campaigns with guided workflow. Use when users request campaign creation, link generation, or new partner launches. Handles: (1) Campaign naming via feedmob-campaign-naming, (2) Client data retrieval, (3) App selection, (4) Campaign preview, (5) Campaign creation. Trigger keywords: create campaign, new campaign, generate campaign, campaign setup, link generation, partner launch, media plan campaign, 创建campaign, 生成活动, 新建campaign.
install-civitai-videoflow-bundle
Automatically installs and validates the Civitai Videoflow skill bundle from the civitai-agent-skills repository. Supports git clone or manual zip upload, runs npx skills add in dependency-safe order, and guides environment and tool prerequisite checks for CIVITAI_RECORDS_DATABASE_URL, DUOMI_API_TOKEN, IMAGEKIT_PRIVATE_KEY, and CIVITAI_ACCOUNT. Use when: user needs videoflow setup, install Civitai pipeline skills, configure image-to-video workflow, enable Civitai publish pipeline, or when civitai-videoflow and related worker skills are mentioned but unavailable. Triggers: install videoflow skills, setup civitai skills bundle, configure civitai-agent-skills, enable videoflow commands, install duomi/civitai pipeline skills.
install-weekly-hubspot-report-bundle
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.
Didn't find tool you were looking for?