Skip to content
Blog
AI Agent Skill

Search this blog with your AI Agent

This blog is fully machine-readable. Install the search-blog-post skill and any agent — Claude Code, Cursor, OpenCode, Codex — can find, read, and cite posts in raw Markdown.

What the skill does

The skill is a small instruction file (SKILL.md) plus a ranking script. It works from anywhere — always against the live site, never against local files.

1 · Rank

Score the index once

Fetches search.json once per session, then ranks posts by title, tag, and description relevance.

2 · Read

Pull raw Markdown

Downloads the .md source of only the top 1–3 posts — frontmatter, code blocks, and tables intact.

3 · Cite

Link both URLs

Every result cites the readable HTML page and the byte-identical Markdown source, so answers are verifiable.

Install the skill

The skill lives in the RedLine-Software/skills repository. Pick one of two ways:

Option 1 — Skills CLI

Recommended

Install interactively with the Skills CLI and pick your target agent (Claude Code, Cursor, Codex, OpenCode…).

# install just this skill
npx skills add RedLine-Software/skills/search-blog-post

# or the whole collection
npx skills add RedLine-Software/skills

Option 2 — Manual copy

Each skill is a self-contained folder — clone the repo and copy search-blog-post/ into your agent's skills directory.

git clone https://github.com/RedLine-Software/skills.git
cd skills

# Claude Code (user-level)
cp -r search-blog-post ~/.claude/skills/

# Project-level (shared across agents)
cp -r search-blog-post .claude/skills/

Any agent that reads SKILL.md files will pick up skills placed in its skills directory. Restart the agent after installing, then just ask it to search the blog.

Try asking your agent

Once installed, the agent invokes the skill automatically when your request matches its description.

›

"Search the blog for ADK swarm multi-agent"

Ranks matching posts, then returns the top hits with links.

›

"Find and summarize the post about Flutter web performance"

Fetches the raw Markdown of the best match and summarizes it.

›

"Get the raw Markdown source of the last Docker Compose post"

Returns /posts/<slug>.md with frontmatter intact for citation.

›

"Which posts are tagged with google-adk?"

Lists every post from the /tags/<tag> index page.

Endpoints the skill uses

The blog is a static site — these public endpoints are the entire search API. All verified live.

URL What it gives you Notes
https://blog.redlinesoft.net/search.json Full post index: [{title, description, slug, tags}] ~546 KB, 1478 entries. Fetch once per session.
https://blog.redlinesoft.net/llms.txt One line per post: [Title](html) — [Markdown source](md) Titles + both URL types, no tags/descriptions
https://blog.redlinesoft.net/posts/<slug>.md Raw post: YAML frontmatter + markdown body text/markdown; charset=utf-8, byte-identical to repo source
https://blog.redlinesoft.net/tags/<tag> HTML listing of every post with that tag Tags are lowercase-hyphenated (google-adk)
https://blog.redlinesoft.net/blog/<n> Paginated archive (HTML) 12 posts per page
https://blog.redlinesoft.net/sitemap-0.xml Every URL on the site Last-resort discovery

Agent workflow

What the agent does under the hood when you ask it to find a post.

  1. Rank with the helper script

    One command fetches the index, scores it, and prints the best matches.

    node .agents/skills/search-blog-post/scripts/rank.mjs "ADK swarm multi-agent" --top 5
    • --md also fetches and prints the raw Markdown of the top hit
    • --json prints machine-readable {query, results[], topMarkdown}
    • Exit codes: 0 results, 2 no match, 3 network/index failure
  2. Or rank manually

    If the script can't run, fetch search.json once and score locally — title match (×10 per token) > tag match (×8 exact / ×4 partial) > description match (×3), plus a +50 bonus for an exact title phrase. Keep the top 3–5.

  3. Fetch raw content

    Pull the .md source only for the posts you'll actually use — the frontmatter (title, date, description, author, tags, image) is your citation metadata, and the body is the complete original Markdown.

    GET https://blog.redlinesoft.net/posts/<slug>.md
  4. Cite results with both URLs

    Every answer links to the readable page and the raw Markdown source.

    HTML:             https://blog.redlinesoft.net/posts/<slug>
    Markdown source:  https://blog.redlinesoft.net/posts/<slug>.md
  5. Fetch only what you need

    Never download all 1478 posts. Ranking is metadata-only — pull .md files for the 1–3 posts you'll actually read.

Fallback chain

  1. search.json failed → fetch llms.txt and match query tokens against titles (coarser, no tags/descriptions).
  2. Need everything on one topic → try /tags/<tag> (guess the tag: lowercase, hyphenated).
  3. Need a URL inventory → sitemap-0.xml.

Within one session the agent caches both index fetches (search.json ~546 KB, llms.txt ~150 KB) — it never re-downloads them per query.

Gotchas

  • .md responses include the YAML frontmatter block — don't strip it; it carries title/date/tags.
  • search.json has no body text — for content-level search, fetch .md for a shortlist and grep locally.
  • Tags are lowercase-hyphenated; prefer the exact tags listed in search.json when building tag URLs.
  • The site is static: no search API, no query parameters — all searching happens after one index fetch.
  • A 404 on a .md URL means the slug is wrong (check llms.txt); a 5xx/timeout means retry and fall back.

Resources