From find-apartments
Use when checking if a listing URL is already cached, adding new listings to the cache, or updating the notified flag after Telegram operations
How this skill is triggered — by the user, by Claude, or both
Slash command
/find-apartments:cacheThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manages the local JSON cache at `~/.claude/plugins/find-apartments/data/cache.json`. The cache is the single source of truth for deduplication — a listing is "new" if its URL is not a key in this file.
Manages the local JSON cache at ~/.claude/plugins/find-apartments/data/cache.json. The cache is the single source of truth for deduplication — a listing is "new" if its URL is not a key in this file.
{
"https://www.yad2.co.il/item/abc123": {
"first_seen": "2026-04-10",
"city": "הוד השרון",
"price": 9000,
"rooms": 5,
"address": "יונה וולך 4",
"source": "Yad2",
"notified": true
}
}
Read ~/.claude/plugins/find-apartments/data/cache.json using the Read tool. If the file doesn't exist, all listings are new. Check if the listing URL exists as a key in the JSON object.
After scraping, for each new listing (URL not in cache), add an entry:
# Read existing cache (or start with empty object)
# Add new entries with notified: false
# Write back with the Write tool
Use the Read tool to read the current cache, then use the Write tool to write the updated cache. Always set first_seen to today's date (ISO format) and notified to false for new entries.
After successful Telegram send, update notified to true for the notified URLs.
Read the cache, update the flags, write it back.
Read the cache and filter for entries where notified is false — these need to be retried for Telegram notifications.
Ensure ~/.claude/plugins/find-apartments/data/ exists before reading/writing:
mkdir -p ~/.claude/plugins/find-apartments/data
If cache.json does not exist, treat it as an empty object {}.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub cxt9/find-apartments --plugin find-apartments