ctf-similar-search

ctf-similar-search is a skill for Claude Code from ljagiello/ctf-skills. It costs 59 tokens per session (1,567 once invoked), scanned A, original, MIT.

A web search helper for finding and extracting CTF writeups. CTFs, or capture-the-flag competitions, are security puzzles where participants solve challenges and document their methods.

In plain words
What is it for?
Use it to search Tavily for similar challenges by name, competition, or distinctive text, then extract content from selected URLs.
Why use it?
It provides related examples when a challenge is hard to identify or solve, instead of relying only on the current challenge details.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to search Tavily for similar challenges by name, competition, or distinctive text, then extract content from selected URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ljagiello/ctf-skills/ctf-similar-search
About the project

ctf-skills is a collection of agent instructions for solving capture-the-flag security challenges, including web exploitation, binary vulnerabilities, cryptography, reverse engineering, forensics, and OSINT. It is intended for agents and people working through CTF problems, and its skills can be loaded into supported coding-agent workflows.

ljagiello/ctf-skills · 3,549 stars · on GitHub · ljagiello.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ljagiello/ctf-skills --skill ctf-similar-search
Clone the repo
git clone --depth 1 https://github.com/ljagiello/ctf-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ctf-similar-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/ljagiello/ctf-skills/ctf-similar-search/github.svg)](https://agentmods.dev/skills/ljagiello/ctf-skills/ctf-similar-search)
Your own site
<a href="https://agentmods.dev/skills/ljagiello/ctf-skills/ctf-similar-search"><img src="https://agentmods.dev/badge/skills/ljagiello/ctf-skills/ctf-similar-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ctf-similar-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/ljagiello/ctf-skills/ctf-similar-search"><img src="https://agentmods.dev/badge/skills/ljagiello/ctf-skills/ctf-similar-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.01567
Opus 5.5 $0.00024 $0.00627
Sonnet 5.5 $0.00012 $0.00313
Haiku 4.5 $0.00006 $0.00157

Measured yesterday against content hash cfeb99deb4cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ctf-similar-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (search.py, search.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ctf-similar-search/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Search for similar CTF challenge writeups using Tavily API.

Prerequisites

pip install requests tavily

Set your Tavily API key (from https://tavily.com) before running:

export TAVILY_API_KEY='tvly-...'

API Overview

This skill provides two interfaces:

Interface Purpose Command
Tavily Search Search for writeups and articles ./search.sh search <keyword>
Tavily Extract Extract content from URLs ./search.sh extract <url1> [url2] ...

Search Workflow

Step 1: Search with Keywords

Choose keywords based on available information:

Scenario 1: Known Competition + Challenge Name
# Format: [Competition Name] [Challenge Name] — max 3 words
./search.sh search "DASCTF URL Storage"
./search.sh search "HGAME baby web"
./search.sh search "BUUCTF pwn1"
Scenario 2: Challenge Name Only (no competition info)
# Use challenge name directly — max 3 words
./search.sh search "URL Storage"
./search.sh search "baby overflow"
./search.sh search "crypto-rsa"
Scenario 3: Unique Identifiers (code snippets, strings)
# Use unique, non-trivial strings from the challenge — NO word limit
./search.sh search "def encrypt_flag(key): return base64"
./search.sh search "CUSTOM_MAGIC_BYTES"
./search.sh search "ERROR: invalid padding in AES block"

⚠️ Critical: 3-Word Limit for Non-Code Queries

All keyword searches that are NOT code snippets or unique identifier strings MUST NOT exceed 3 words. This constraint ensures precise, focused queries that return relevant CTF writeup results instead of broad, diluted searches.

Search Type Word Limit Examples
Competition + Challenge name ≤ 3 words "DASCTF URL Storage", "HGAME baby web"
Challenge name only ≤ 3 words "URL Storage", "baby overflow"
Code snippets / strings No limit "def encrypt_flag(key): return base64"
Error messages / identifiers No limit "CUSTOM_MAGIC_BYTES", "ERROR: invalid padding in AES block"

Read the full file on GitHub · 176 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines cfeb99deb4cd
  2. 8d ago First seen · 175 lines · 59 tokens per session scan A 408c4d219bec

Subscribe to this mod's changes

ctf-similar-search is a skill published in the GitHub repository ljagiello/ctf-skills (3,549 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,567 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

Other skills, from other repositories

chief-data-officer-advisor

Chief Data Officer advisory for startups: AI training data rights and consent provenance, data product strategy (warehouse vs lakehouse vs mesh, build-vs-buy), B2B customer-data-as-asset valuation and M&A readiness, data team org evolution. Use when deciding whether to train models on customer data, choosing data…

alirezarezvani/claude-skills · 131 tokens

wrap-up

Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says "wrap up", "close this out", "what do I own now", "give me the summary", "recap the agent", or when the orchestrator routes…

alirezarezvani/claude-skills · 150 tokens

add-cloud-flow

Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional…

microsoft/power-platform-skills · 91 tokens

edit-site

Plans, coordinates and customizes PAC CLI-downloaded Standard or Enhanced data model non-SPA Power Pages sites created from Microsoft templates or manually in Design Studio. Use for requests involving pages, localized content, navigation, assets, snippets, site markers, Liquid/web templates, page layouts, or styling.…

microsoft/power-platform-skills · 104 tokens

deploy-site

Deploys an existing Power Pages site to a Power Pages environment using PAC CLI. Routes SPA sites to the existing build and upload-code-site workflow, and PAC-downloaded non-SPA (classic) sites to an isolated upload workflow with explicit data-model and website-identity checks. Handles tooling verification…

microsoft/power-platform-skills · 91 tokens

create-formal-verification-skill

Generate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, "model-check this race", "prove this invariant", or when concurrency, retries, state machines, parsers…

michael-denyer/pstack-claude · 82 tokens