torrent-search
Search for torrents by title or IMDB ID via a Torznab-compatible API. Use when: (1) User asks to find a torrent for a movie or show, (2) You need a magnet link for a given title, or (3) User provides an IMDB ID and wants download options.
What this skill does
# Torrent Search
Search any Torznab-compatible indexer (e.g. bitmagnet) for torrents by title or IMDB ID. Returns magnet links, file sizes, seeders, resolution, and codec.
## When to use
- User asks to find a torrent for a movie, TV show, or any other content
- User provides an IMDB ID (e.g. `tt1234567`) and wants download options
- You need to programmatically retrieve a magnet link for a given title
- User asks to compare available qualities (720p, 1080p, 2160p) for a release
## Required tools / APIs
- `curl` — HTTP requests (pre-installed on most systems)
- `jq` — JSON parsing (used after XML→JSON conversion)
- `xmllint` — XML parsing (optional, from `libxml2-utils`)
- A running Torznab endpoint — examples use `https://bitmagnetfortheweebs.midnightignite.me/torznab/api`
Install options:
```bash
# Ubuntu/Debian
sudo apt-get install -y curl jq libxml2-utils
# macOS
brew install curl jq libxml2
# Node.js (no extra packages — uses native fetch + DOMParser via fast-xml-parser)
npm install fast-xml-parser
```
## Skills
### search_by_title
Search for torrents using a free-text title query.
```bash
TORZNAB_URL="https://bitmagnetfortheweebs.midnightignite.me/torznab/api"
QUERY="Breaking Bad"
curl -fsS --max-time 15 \
"${TORZNAB_URL}?t=search&q=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))" "$QUERY")" \
| xmllint --xpath "//item" - 2>/dev/null \
| grep -oP '(?<=<title>).*?(?=</title>)'
```
Full extraction with magnet links:
```bash
TORZNAB_URL="https://bitmagnetfortheweebs.midnightignite.me/torznab/api"
QUERY="Inception 2010"
xml=$(curl -fsS --max-time 15 \
"${TORZNAB_URL}?t=search&q=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))" "$QUERY")")
# Print title + magnet for each result
echo "$xml" | python3 - << 'EOF'
import sys, xml.etree.ElementTree as ET
data = sys.stdin.read()
root = ET.fromstring(data)
ns = {'torznab': 'http://torznab.com/schemas/2015/feed'}
for item in root.findall('.//item'):
title = item.findtext('title', '')
size = item.findtext('size', '0')
enc = item.find('enclosure')
magnet = enc.get('url') if enc is not None else ''
attrs = {a.get('name'): a.get('value') for a in item.findall('torznab:attr', ns)}
seeders = attrs.get('seeders', '?')
resolution = attrs.get('resolution', '')
codec = attrs.get('video', '')
size_gb = round(int(size) / 1_073_741_824, 2)
print(f"{title}")
print(f" Size: {size_gb} GB Seeders: {seeders} {resolution} {codec}")
print(f" Magnet: {magnet[:80]}...")
print()
EOF
```
**Node.js:**
```javascript
import { XMLParser } from 'fast-xml-parser';
const TORZNAB_URL = 'https://bitmagnetfortheweebs.midnightignite.me/torznab/api';
async function searchTorrents(query) {
const url = `${TORZNAB_URL}?t=search&q=${encodeURIComponent(query)}`;
const res = await fetch(url, { signal: AbortSignal.timeout(15000) });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const xml = await res.text();
const parser = new XMLParser({ ignoreAttributes: false, attributeNamePrefix: '@_' });
const doc = parser.parse(xml);
const items = doc?.rss?.channel?.item ?? [];
const list = Array.isArray(items) ? items : [items];
return list.map(item => {
const attrs = {};
const rawAttrs = item['torznab:attr'] ?? [];
const attrList = Array.isArray(rawAttrs) ? rawAttrs : [rawAttrs];
for (const a of attrList) attrs[a['@_name']] = a['@_value'];
return {
title: item.title,
sizeBytes: Number(item.size ?? 0),
sizeGB: +(Number(item.size ?? 0) / 1_073_741_824).toFixed(2),
magnet: item.enclosure?.['@_url'] ?? attrs.magneturl ?? '',
infohash: attrs.infohash ?? '',
seeders: Number(attrs.seeders ?? 0),
leechers: Number(attrs.leechers ?? 0),
resolution: attrs.resolution ?? '',
codec: attrs.video ?? '',
year: attrs.year ?? '',
imdb: attrs.imdb ? `tt${attrs.imdb}` : '',
};
});
}
// Usage
searchTorrents('Inception 2010').then(results => {
results.forEach(r => {
console.log(`${r.title}`);
console.log(` ${r.sizeGB} GB | ${r.resolution} ${r.codec} | ${r.seeders} seeders`);
console.log(` ${r.magnet.slice(0, 80)}...`);
console.log();
});
});
```
---
### search_by_imdb_id
Search by exact IMDB ID to get all available releases for a specific title.
```bash
TORZNAB_URL="https://bitmagnetfortheweebs.midnightignite.me/torznab/api"
IMDB_ID="tt12735488" # Kalki 2898 AD
curl -fsS --max-time 15 \
"${TORZNAB_URL}?t=search&q=${IMDB_ID}" \
| python3 - << 'EOF'
import sys, xml.etree.ElementTree as ET
root = ET.fromstring(sys.stdin.read())
ns = {'torznab': 'http://torznab.com/schemas/2015/feed'}
for item in root.findall('.//item'):
title = item.findtext('title', '')
size = int(item.findtext('size', '0'))
enc = item.find('enclosure')
magnet = enc.get('url') if enc is not None else ''
attrs = {a.get('name'): a.get('value') for a in item.findall('torznab:attr', ns)}
print(f"[{attrs.get('resolution','?'):6}] {round(size/1e9,1):5.1f}GB "
f"S:{attrs.get('seeders','?'):>3} {title}")
EOF
```
**Node.js:**
```javascript
import { XMLParser } from 'fast-xml-parser';
const TORZNAB_URL = 'https://bitmagnetfortheweebs.midnightignite.me/torznab/api';
async function searchByImdb(imdbId) {
// imdbId format: 'tt1234567' or just '1234567'
const id = imdbId.startsWith('tt') ? imdbId : `tt${imdbId}`;
const url = `${TORZNAB_URL}?t=search&q=${id}`;
const res = await fetch(url, { signal: AbortSignal.timeout(15000) });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const xml = await res.text();
const parser = new XMLParser({ ignoreAttributes: false, attributeNamePrefix: '@_' });
const doc = parser.parse(xml);
const items = doc?.rss?.channel?.item ?? [];
const list = Array.isArray(items) ? items : [items];
return list.map(item => {
const attrs = {};
const rawAttrs = item['torznab:attr'] ?? [];
for (const a of Array.isArray(rawAttrs) ? rawAttrs : [rawAttrs]) {
attrs[a['@_name']] = a['@_value'];
}
return {
title: item.title,
sizeGB: +(Number(item.size ?? 0) / 1_073_741_824).toFixed(2),
magnet: item.enclosure?.['@_url'] ?? attrs.magneturl ?? '',
infohash: attrs.infohash ?? '',
seeders: Number(attrs.seeders ?? 0),
resolution: attrs.resolution ?? '',
codec: attrs.video ?? '',
year: attrs.year ?? '',
};
});
}
// Usage — find all releases for a specific IMDB title
searchByImdb('tt12735488').then(results => {
// Sort by seeders descending, then by size descending
results.sort((a, b) => b.seeders - a.seeders || b.sizeGB - a.sizeGB);
results.forEach(r =>
console.log(`[${r.resolution || '?':>6}] ${r.sizeGB}GB S:${r.seeders} ${r.title}`)
);
});
```
---
### pick_best_result
Filter and rank results by quality preference (resolution priority + seeder count).
**Node.js:**
```javascript
function pickBest(results, { preferResolution = '1080p', minSeeders = 1 } = {}) {
const resolutionRank = { '2160p': 4, '1080p': 3, '720p': 2, '480p': 1 };
const preferred = resolutionRank[preferResolution] ?? 3;
return results
.filter(r => r.seeders >= minSeeders)
.sort((a, b) => {
const ra = resolutionRank[a.resolution] ?? 0;
const rb = resolutionRank[b.resolution] ?? 0;
// Exact preferred resolution first, then by seeders
const aMatch = ra === preferred ? 1 : 0;
const bMatch = rb === preferred ? 1 : 0;
if (bMatch !== aMatch) return bMatch - aMatch;
return b.seeders - a.seeders;
})[0] ?? null;
}
// Usage
const results = await searchByImdb('tt12735488');
const best = pickBest(results, { preferResolution: '1080p', minSeeders: 1 });
if (best) {
console.log(`Best pick: ${best.title}`);
console.log(`Magnet: ${best.magnet}`);
}
```
## Output formaRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.