SkillAgentSearch skills...

sampling-and-indexing

Standardize video sampling and frame indexing so interval instructions and mask frames stay aligned with a valid key/index scheme.

Install / Use

npx skills add benchflow-ai/skillsbench --skill sampling-and-indexing

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

78/100

Supported Platforms

Universal

Tags

Our assessment of sampling-and-indexing

sampling-and-indexing scores 78/100 on our quality scale, 3392nd of 4,653 Development & Engineering skills we index.

Its SKILL.md is 1.4 KB long, split into 5 sections with 1 code example: moderately detailed.

With 1,813 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
20/30
Structure
15/20
Description
15/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so sampling-and-indexing is actively maintained.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

sampling-and-indexing compared with similar skills

All 4 of these similar skills score higher than sampling-and-indexing; compare them before choosing.

SkillScoreStarsUpdatedFormat
sampling-and-indexing (this skill)by benchflow-ai781.8k2mo agoSKILL.md
ai-job-searchby MadsLorentzen10044.7ktodayCLAUDE.md
claude-howtoby luongnv8910041.7k2d agoCLAUDE.md
algorithmic-artby anthropics100177.9k9d agoSKILL.md
pptxby anthropics100177.9k9d agoSKILL.md

Frequently asked questions

How do I install sampling-and-indexing?
Run npx skills add benchflow-ai/skillsbench --skill sampling-and-indexing. The install tabs above show the steps for each supported agent.
Which AI agents does sampling-and-indexing work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is sampling-and-indexing safe to use?
It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is sampling-and-indexing still maintained?
The repository was last updated about 2 months ago, so sampling-and-indexing is actively maintained.

name: sampling-and-indexing description: "Standardize video sampling and frame indexing so interval instructions and mask frames stay aligned with a valid key/index scheme."

When to use

  • You need to decide a sampling stride/FPS and ensure all downstream outputs (interval instructions, per-frame artifacts, etc.) cover the same frame range with consistent indices.

Core steps

  • Read video metadata: frame count, fps, resolution.
  • Choose a sampling strategy (e.g., every 10 frames or target ~10–15 fps) to produce sample_ids.
  • Only produce instructions and masks for sample_ids; the max index must be < total_frames.
  • Use a strict interval key format such as "{start}->{end}" (integers only). Decide (and document) whether end is inclusive or exclusive, and be consistent.

Pseudocode

import cv2
VIDEO_PATH = "<path/to/video>"
cap=cv2.VideoCapture(VIDEO_PATH)
n=int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
fps=cap.get(cv2.CAP_PROP_FPS)
step=10  # example
sample_ids=list(range(0, n, step))
if sample_ids[-1] != n-1:
    sample_ids.append(n-1)
# Generate all downstream outputs only for sample_ids

Self-check list

  • [ ] sample_ids strictly increasing, all < total frame count.
  • [ ] Output coverage max index matches sample_ids[-1] (or matches your documented sampling policy).
  • [ ] JSON keys are plain start->end, no extra text.
  • [ ] Any per-frame artifact store (e.g., NPZ) contains exactly the sampled frames and no extras.

Related Skills

View on GitHub
GitHub Stars1.8k
CategoryDevelopment
Updated2mo ago
Forks368

Languages

PDDL

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions