Irasutoya search

From Mineru98/skills-store · View interactive version

Irasutoya search is an AI agent skill from the GitHub repository Mineru98/skills-store. Search and preview Irasutoya illustrations with the installed `irasutoya` command-line tool. Use this skill whenever the user wants to find, recommend, preview, randomly pull up, or get the page/image URL of an Irasutoya (いらすとや) image — from a topic, scene, Korean/Japanese/English phrase, visual des

How to use this skill

Skill file

irasutoya-search

Overview

Use the installed irasutoya command-line tool to find Irasutoya illustrations. The skill drives the CLI that is already installed on the system — it does not run, build, or modify any Ruby source. Optimize vague or natural-language requests into short Japanese search candidates before reporting results.

Command Choice

Expected commands:

irasutoya random
irasutoya search "cat"
irasutoya help search

The search command returns up to 3 matching images. Each result prints:

Fast Search Workflow

  1. Parse the request into visual facets:
  1. Generate 2-4 concise query candidates. Prefer Japanese nouns and short noun phrases because Irasutoya titles/descriptions are Japanese.
  2. Search candidates in parallel when possible. Avoid launching many broad searches; stop once a strong match appears.
  3. Score results before reporting. Prefer results whose title or description matches at least two facets.
  4. Return the best result first, with any close alternative only if it captures a different interpretation.

Pass condition: the first search batch should produce a 4-5 point result in the top two results for at least one candidate query. If it does not, run one refinement batch using the failure rules below.

Query Rubric

Score each candidate result from 0-5:

Cap the score at 5. Use a result scoring 4-5 as the primary answer. Use a 3 only when no better result appears and explain the limitation briefly.

Query Strategy

Failure Rules

Run exactly one refinement batch before reporting a partial match:

Checking Candidate Queries (metadata only)

When comparing several candidate queries or checking whether the rubric holds, the inline image preview can flood the terminal. Suppress it by piping the CLI output through grep so only the metadata lines remain:

for q in "不思議 男の子" "虫眼鏡 男の子"; do
  echo "=== $q ==="
  irasutoya search "$q" | grep -E "Page URL|Title|Description|Image URL"
done

Use at least these smoke cases:

The rubric is acceptable when at least three of four smoke cases find a 4-5 point result within the first refinement batch. If a case fails, add only the missing query synonym or failure rule; do not add broad generic search advice.

Running the CLI

The skill always uses the globally installed irasutoya executable:

irasutoya random
irasutoya search "query"

Quote multi-word queries. If the irasutoya command is not found, install it with gem install irasutoya-cli (requires Ruby >= 3.1); the gem ships the irasutoya, terminal_image, and thor dependencies it needs.

Terminal Preview Behavior

Inline previews depend on terminal_image. If the terminal does not support inline images, the CLI still prints the page/image URLs and warns:

warn: This terminal is not able to show images inline
warn: Please use iTerm2 or terminal installed libsixel.

Treat that warning as non-fatal. Return the printed URLs to the user when image rendering is unavailable.

Output Guidance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.