content-search

content-search is a command for Claude Code from fatihkan/badi. It costs 0 tokens per session (452 once invoked), scanned A, original, MIT.

A search command for finding generated content in an archive, including posts, videos, visual briefs, calendars, templates, and brand-voice files.

In plain words
What is it for?
Use it to search by topic or word, view recent content when no query is given, filter results, and return matching scores, locations, and snippets.
Why use it?
It avoids manually opening many folders and helps identify related or repeated content using keywords, similarity, dates, platforms, types, and hashtags.

Command for Claude Code

Part of the badi plugin — 28 commands, 30 agents shipped together

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.

agentmods
npx agentmods add commands/fatihkan/badi/content-search
Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 28 commands, 30 agents.

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 content-search

README.md
[![agentmods](https://agentmods.dev/badge/commands/fatihkan/badi/content-search.svg)](https://agentmods.dev/commands/fatihkan/badi/content-search)
Your own site
<a href="https://agentmods.dev/commands/fatihkan/badi/content-search"><img src="https://agentmods.dev/badge/commands/fatihkan/badi/content-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00452
Opus 5 $0.00000 $0.00226
Sonnet 5 $0.00000 $0.00090
Haiku 4.5 $0.00000 $0.00045

Measured 5d ago against content hash effd396ca14f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

content-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 5d ago.

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.

.claude/commands/content-search.md · 60 lines

What it actually says

Content archive search command. Keyword search, similarity detection, and filtering across all generated content.

Required Tools

  • Bash (badi content search)

Procedure

Step 1: Get the Search Query

The user provides the query (topic, word, hashtag). With no query, show the most recent content.

Step 2: Run the Search

badi content search "productivity"

Fields to search:

  • .claude/workspace/icerikler/ (posts, carousels)
  • .claude/workspace/senaryolar/ (videos)
  • .claude/workspace/gorseller/ (visual briefs)
  • .claude/workspace/takvim/ (calendars)
  • .claude/workspace/sablonlar/ (custom templates)
  • marka-sesi.md (brand voice)

Step 3: Filters

badi content search [query] --platform instagram   # Platform filter
badi content search [query] --type post            # Type filter
badi content search [query] --last 30              # Last 30 days
badi content search [query] --hashtag productivity # Hashtag
badi content search [query] --format json          # JSON output

Step 4: Interpret the Results

For each result:

  • Score (keyword frequency + recency bonus)
  • Directory (icerikler, senaryolar, etc.)
  • Snippet (short form of the matching line)

Step 5: Similarity Warning

If the user is about to create new content and 60%+ similarity exists on the same topic, warn. Skippable with --force.

Step 6: Follow-up Actions

  • Recurring topic detected: "Shall we suggest a different angle?"
  • Nothing found: "Shall we create something new with /content-generate?"
  • Old content could be refreshed: "Would you like to update this topic?"

Example

/content-search "productivity"
/content-search "AI" --platform linkedin --last 7
/content-search "tutorial" --type video
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. 5d ago First seen · 60 lines · 0 tokens per session scan A effd396ca14f

Subscribe to this mod's changes

content-search is a command published in the GitHub repository fatihkan/badi (7 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 452 tokens. 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-08-31.