quality-filtering
БесплатноБез исполняемых скриптовНе проверенAccept/reject logic and quality scoring heuristics for media content
от jmagly★ 233 звезды на GitHubОб этом скилле
Quality Filtering Skill
Overview
Implements the quality assessment logic used by the Quality Assessor agent. Provides reusable scoring heuristics, threshold configuration, and acceptance criteria for media content evaluation.
Title Keyword Scoring
Positive Quality Indicators
| Pattern | Score Modifier | Match Examples | Confidence |
|---|---|---|---|
4K|2160p |
+3 | "4K Official", "2160p Pro Shot" | High |
1080p|HD|High Definition |
+2 | "1080p HD", "High Definition" | High |
Pro Shot|Professional |
+3 | "Pro Shot Concert", "Professional Recording" | High |
Official|Verified |
+2 | "Official Music Video", "Verified Upload" | High |
Studio Session|Soundboard|Board Recording |
+3 | "Studio Session Live", "Soundboard Audio" | High |
FLAC|Lossless|WAV|ALAC |
+3 | "FLAC Audio", "Lossless Recording" | High |
Remastered|Restored|Enhanced |
+2 | "Remastered 2024", "Audio Restored" | Medium |
Multicam|Multi-Camera |
+2 | "Multicam Mix", "Multi-Camera Edit" | Medium |
60fps|HFR |
+1 | "60fps Smooth", "HFR Recording" | Medium |
Negative Quality Indicators
| Pattern | Score Modifier | Match Examples | Confidence |
|---|---|---|---|
phone|mobile|cell |
-4 | "phone recording", "mobile upload" | High |
fan cam|fancam|audience |
-3 | "fan cam row 20", "audience recording" | High |
crowd|venue mic|distant |
-2 | "crowd recording", "distant mic" | Medium |
shaky|unstable|handheld |
-3 | "shaky camera", "unstable footage" | High |
bad audio|poor quality|low quality |
-4 | "bad audio sorry", "poor quality" | High |
240p|360p|potato |
-3 | "240p upload", "potato quality" | High |
vertical|portrait mode |
-2 | "vertical video", "portrait mode" | High |
bootleg|pirated|ripped |
-1 | "bootleg copy", "ripped from DVD" | Low |
compressed|low bitrate |
-2 | "compressed audio", "low bitrate" | Medium |
cropped|zoomed|partial |
-1 | "cropped video", "zoomed in" | Medium |
Scoring Implementation
function calculateTitleScore(title) {
let score = 0;
const normalizedTitle = title.toLowerCase();
// Positive indicators
const positivePatterns = [
{ regex: /4k|2160p/, modifier: 3 },
{ regex: /1080p|hd|high definition/, modifier: 2 },
{ regex: /pro shot|professional/, modifier: 3 },
{ regex: /official|verified/, modifier: 2 },
{ regex: /studio session|soundboard|board recording/, modifier: 3 },
{ regex: /flac|lossless|wav|alac/, modifier: 3 },
{ regex: /remastered|restored|enhanced/, modifier: 2 },
{ regex: /multicam|multi-camera/, modifier: 2 },
{ regex: /60fps|hfr/, modifier: 1 }
];
// Negative indicators
const negativePatterns = [
{ regex: /phone|mobile|cell/, modifier: -4 },
{ regex: /fan cam|fancam|audience/, modifier: -3 },
{ regex: /crowd|venue mic|distant/, modifier: -2 },
{ regex: /shaky|unstable|handheld/, modifier: -3 },
{ regex: /bad audio|poor quality|low quality/, modifier: -4 },
{ regex: /240p|360p|potato/, modifier: -3 },
{ regex: /vertical|portrait mode/, modifier: -2 },
{ regex: /bootleg|pirated|ripped/, modifier: -1 },
{ regex: /compressed|low bitrate/, modifier: -2 },
{ regex: /cropped|zoomed|partial/, modifier: -1 }
];
// Apply positive modifiers
for (const pattern of positivePatterns) {
if (pattern.regex.test(normalizedTitle)) {
score += pattern.modifier;
}
}
// Apply negative modifiers
for (const pattern of negativePatterns) {
if (pattern.regex.test(normalizedTitle)) {
score += pattern.modifier;
}
}
return score;
}
Metadata Assessment Commands
Resolution Detection
# Extract video resolution
get_resolution() {
local file="$1"
ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height \
-of csv=s=x:p=0 "$file"
}
# Score based on resolution
score_resolution() {
local resolution="$1"
local width height
IFS='x' read -r width height <<< "$resolution"
if $width -ge 3840; then
echo 10 # 4K+
elif $width -ge 1920; then
echo 8 # 1080p
elif $width -ge 1280; then
echo 6 # 720p
elif $width -ge 640; then
echo 4 # 480p
else
echo 2 # <480p
fi
}
Audio Bitrate Detection
# Extract audio bitrate
get_audio_bitrate() {
local file="$1"
ffprobe -v error -select_streams a:0 \
-show_entries stream=bit_rate \
-of default=noprint_wrappers=1:nokey=1 "$file"
}
# Score based on bitrate
score_audio_bitrate() {
local bitrate="$1"
if $bitrate -ge 1000000; then
echo 10 # Lossless (>1000kbps)
elif $bitrate -ge 256000; then
echo 8 # High (256-320kbps)
elif $bitrate -ge 192000; then
echo 6 # Medium (192-256kbps)
elif $bitrate -ge 128000; then
echo 4 # Low (128-192kbps)
else
echo 2 #
Установить quality-filtering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл quality-filtering?
Accept/reject logic and quality scoring heuristics for media content
Как установить скилл quality-filtering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quality-filtering запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic