Paypal Integration
wshobson/agents
Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management.
Implement BM25 ranking function for e-commerce product search relevance scoring.
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/algo-ecom-bm25 .claude/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .claude/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/algo-ecom-bm25 .agents/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .agents/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/algo-ecom-bm25 .cursor/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .cursor/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/asgard-ai-platform/skills.git --path algo-ecom-bm25--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/algo-ecom-bm25 .gemini/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .gemini/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/algo-ecom-bm25 .github/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .github/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install asgard-ai-platform/skills algo-ecom-bm25 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/algo-ecom-bm25 .opencode/skills/algo-ecom-bm25 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "algo-ecom-bm25" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 into .opencode/skills/algo-ecom-bm25/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-ecom-bm25", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
algo-ecom-bm25Implement BM25 ranking function for e-commerce product search relevance scoring.
Algo Ecom Bm25 is an agent skill from asgard-ai-platform/skills. Implement BM25 ranking function for e-commerce product search relevance scoring. Use this skill when the user needs to build a text-based product search engine, improve search result relevance, or replace basic TF-IDF with a more robust ranking function — even if they say 'product search ranking', 'search relevance', or 'BM25 implementation'.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `examples/sample_input.json`, `references/bm25f.md` and `references/parameter-tuning.md`).
It sits in Sales & Support, covering Search implementation and E-commerce operations. The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Algo Ecom Bm25 loads about 1.4k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 90 tokens; SKILL.md has 619 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 619 words, ~1,432 tokens.
.claude/skills/algo-ecom-bm25/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.BM25 (Best Matching 25) is an improved TF-IDF ranking function that adds term frequency saturation and document length normalization. Score = Σ IDF(t) × (TF(t,d) × (k₁+1)) / (TF(t,d) + k₁ × (1 - b + b × |d|/avgdl)). Standard parameters: k₁=1.2, b=0.75. The backbone of most text search engines (Elasticsearch, Solr).
Trigger conditions:
When NOT to use:
IRON LAW: BM25 Has Two Critical Parameters — k₁ and b
k₁ controls term frequency saturation: higher k₁ = more weight to
repeated terms. k₁=0 ignores TF entirely (boolean).
b controls document length normalization: b=1 fully normalizes by
length, b=0 ignores length. Default k₁=1.2, b=0.75 works for most
cases but MUST be tuned for your specific corpus.Tokenize each document to lowercase word tokens. Remove stop words before
counting — the bundled script drops a standard English stop list (the, a, an, and, or, but, of, in, on, at, to, for, with, by, from, as, is, are, was, were, be, been, being). Then build an inverted index: term → list of (document, term
frequency). Compute: document lengths (post stop-word removal), average document
length, document frequency per term.
⚠️ Stop-word removal affects
|d|andavgdl: because stop words are dropped before length is measured, hand-computing BM25 without removing them will give the wrong length normalization and scores will be off by 3–5%. If you're reproducing BM25 by hand to compare against the script, apply the same stop list first — or just run the script.
Gate: Index built, statistics computed, corpus non-empty.
For query Q with terms t₁...tₙ against document d:
⚠️ IDF variant lock-in: BM25 has several IDF formulations in the wild (Robertson-Sparck Jones, classic Okapi, Lucene's smoothed
+1, BM25+, BM25L). This skill — and the bundled script — uses the Lucene-style smoothed variant shown above (log((N - df + 0.5) / (df + 0.5) + 1)), which never returns negative IDF for very common terms. If you compare scores against another engine (Elasticsearch, Solr, Whoosh), they may differ by ~3–5% even on identical inputs. Do not "correct" the script unless you intend to change the variant globally.
Spot-check: query "red shoes" should rank documents containing both "red" and "shoes" higher than documents with only one term. Shorter product titles with both terms should rank above long descriptions with sparse mentions. Gate: Relevance spot-check passes on 10+ test queries.
Return ranked results with scores.
{
"results": [{"doc_id": "SKU-123", "score": 12.5, "title": "Red Running Shoes"}],
"metadata": {"query": "red shoes", "hits": 85, "k1": 1.2, "b": 0.75, "avg_doc_length": 45}
}Input: Query "wireless earbuds", corpus of 1000 product listings Expected: Products with "wireless earbuds" in title rank highest; "wireless headphones" ranks lower (no "earbuds" term).
| Input | Expected | Why |
|---|---|---|
| Single-word query | IDF-dominated ranking | Only one term's IDF differentiates |
| Very common term ("the") | Near-zero IDF, low impact | IDF suppresses common terms |
| Document with 100 repetitions | Saturated TF, not 100x score | k₁ caps the benefit of repetition |
| Script | Description | Usage |
|---|---|---|
scripts/bm25.py | Score documents against a query using BM25 ranking function | python scripts/bm25.py --help |
Run python scripts/bm25.py --verify to execute built-in sanity tests.
references/bm25f.mdreferences/parameter-tuning.md© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts, references) in algo-ecom-bm25 of asgard-ai-platform/skills.
Open the folder on GitHubat commit 4e7f4f8
Algo Ecom Bm25 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Algo Ecom Bm25 this skillasgard-ai-platform/skills | 242 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Paypal Integrationwshobson/agents | 40k | 11 repos | ~1k | Automated safety check: Pass | MIT | |
| EtsyAnil-matcha/awesome-muse-connectors | 1.3k | — | ~660 | Automated safety check: Pass | MIT | |
| Agentkeychainbase-labs/Agentkey | 656 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Amazon Buy Box Monitorbrowser-act/skills | 6.1k | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Tourmind Bookingtourmind-com/Tourmind-Booking-Skills | 1.8k | — | ~13k | Automated safety check: Pass | MIT |
wshobson/agents
Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management.
Anil-matcha/awesome-muse-connectors
Read Etsy shop data: receipts, listings, transactions, payment ledger; create listings.
chainbase-labs/Agentkey
PROACTIVELY use whenever the user needs data outside your training set or requires a live network call — web search, URL scraping, news, social media (any platform), market prices…
browser-act/skills
Pulls Amazon product details, competing seller prices and seller ratings for a given ASIN through the BrowserAct API, without browser automation.
tourmind-com/Tourmind-Booking-Skills
MUST USE for any hotel or accommodation intent in any language, including hotel search, hotel recommendations, nearby accommodation, hostels, guesthouses, resorts, where-to-stay questions, room…
wzj177/ecommerce-image-suite
电商套图生成助手。用户明确提出需要生成电商套图、商品主图、卖点图、场景图、模特图等图片内容时触发. An agent skill from wzj177/ecommerce-image-suite.
asgard-ai-platform/skills
Calculate Cpk process capability index to assess whether a process meets specification requirements.
asgard-ai-platform/skills
Calculate price elasticity of demand to quantify how price changes affect sales volume.
asgard-ai-platform/skills
Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.
asgard-ai-platform/skills
Implement Elo rating system to rank items or players from pairwise comparison outcomes.
asgard-ai-platform/skills
Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.
asgard-ai-platform/skills
Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.
Categories
Implement BM25 ranking function for e-commerce product search relevance scoring. Algo Ecom Bm25 is an agent skill from asgard-ai-platform/skills. Implement BM25 ranking function for e-commerce product search relevance scoring.
Algo Ecom Bm25 fits situations like: the user needs to build a text-based product search engine; improve search result relevance; replace basic TF-IDF with a more robust ranking function — even if they say product search ranking; search relevance.
Run `npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a claude-code`. Or copy the skill folder (algo-ecom-bm25 in asgard-ai-platform/skills) into .claude/skills/algo-ecom-bm25 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a codex`. Or copy the skill folder (algo-ecom-bm25 in asgard-ai-platform/skills) into .agents/skills/algo-ecom-bm25 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill algo-ecom-bm25 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algo-ecom-bm25, .gemini/skills/algo-ecom-bm25, .github/skills/algo-ecom-bm25 and .opencode/skills/algo-ecom-bm25 in your project.
Going by SKILL.md and its folder, Algo Ecom Bm25 needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Algo Ecom Bm25 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Algo Ecom Bm25: Paypal Integration (wshobson/agents, 40k stars), Etsy (Anil-matcha/awesome-muse-connectors, 1.3k stars), Agentkey (chainbase-labs/Agentkey, 656 stars) and Amazon Buy Box Monitor (browser-act/skills, 6.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.
Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.