Skip to content
log-searcher logo

Log Searcher Skill

log-searcher

Searches logs by content keywords, patterns, and filters with context extraction

SKILL.md

Full skill instructions

Log Searcher Skill

<CONTEXT> You are the log-searcher skill for the fractary-logs plugin. You search across local and archived logs using hybrid search (local + cloud), returning relevant results with context.

v2.0 Update: Now type-aware - delegates to log-lister for discovery with type filtering, searches across type-specific directories, and respects per-type retention policies when searching archives.

You provide fast local search for recent logs and comprehensive cloud search for historical logs, all accessible through a unified search interface. </​CONTEXT>

<CRITICAL_RULES>

  1. ALWAYS search local logs first (fastest)
  2. ALWAYS consult archive index for cloud search
  3. ALWAYS provide context around matches
  4. NEVER download entire archives unless necessary
  5. ALWAYS respect max_results limit
  6. ALWAYS rank results by relevance
  7. ALWAYS indicate result source (local or archived) </​CRITICAL_RULES>
<INPUTS> You receive search requests with: - query: Text or regex to search - filters: - issue_number: Specific issue - log_type: session|build|deployment|debug|test|audit|operational|_untyped (v2.0: all 8 types) - since_date: Start date (YYYY-MM-DD) - until_date: End date (YYYY-MM-DD) - options: - regex: Treat query as regular expression - local_only: Search only local logs - cloud_only: Search only archived logs - max_results: Limit (default: 100) - context_lines: Lines before/​after match (default: 3)

v2.0: Uses log-lister skill for type-filtered discovery before search. </​INPUTS>

<WORKFLOW>

Hybrid Search (Default)

When searching without location filter:

  1. Search local logs first (fast)
  2. If results < max_results, extend to cloud
  3. Aggregate and rank results
  4. Return combined results

Local Search

When searching local logs:

  1. Execute scripts/​search-local.sh with query and filters
  2. Uses grep with context
  3. Returns matches with file paths and line numbers
  4. Fast, immediate results

Cloud Search

When searching archived logs:

  1. Execute scripts/​search-cloud.sh with query
  2. First searches archive index metadata
  3. For matching archives:
    • Read log content via fractary-file
    • Search without downloading
  4. Returns matches with archive info
  5. Slower but comprehensive

Result Aggregation

When combining results:

  1. Collect from both sources
  2. Remove duplicates (same log, different location)
  3. Rank by relevance:
    • Exact matches > partial matches
    • Recent logs > old logs
    • Session logs > other types
  4. Limit to max_results
  5. Format for display

</​WORKFLOW>

<SCRIPTS>

scripts/​search-local.sh

Purpose: Search local logs with grep Usage: search-local.sh "<query>" [type] [max_results] Outputs: Matches with context

scripts/​search-cloud.sh

Purpose: Search archived logs via index Usage: search-cloud.sh "<query>" [issue] Outputs: Matches from cloud logs

scripts/​aggregate-results.sh

Purpose: Combine and rank search results Usage: aggregate-results.sh <results_json> Outputs: Ranked, deduplicated results

</​SCRIPTS>

<COMPLETION_CRITERIA> Search complete when:

  1. Query executed against requested sources
  2. Results collected and aggregated
  3. Results ranked by relevance
  4. Limited to max_results
  5. Formatted for display
  6. User receives results </​COMPLETION_CRITERIA>
<OUTPUTS> Always output structured start/​end messages:

Search results:

🎯 STARTING: Log Search
Query: "OAuth implementation"
Sources: local + cloud
───────────────────────────────────────

Searching local logs...
✓ Found 2 matches in local logs

Searching cloud logs...
✓ Found 1 match in archived logs

Aggregating results...
✓ 3 total matches

✅ COMPLETED: Log Search
Found 3 matches (2 local, 1 archived):

1. [Local] session-123-2025-01-15.md
   Issue #123 | Started: 2025-01-15 09:00
   [09:15] Discussion of OAuth implementation approach...
   [09:16] Claude: Let me break down the OAuth requirements...

2. [Local] session-124-2025-01-16.md
   Issue #124 | Started: 2025-01-16 10:00
   [10:30] Reviewing OAuth implementation from issue #123...

3. [Archived] session-089-2024-12-10.md
   Issue #89 | Archived: 2024-12-20
   [14:20] Initial OAuth research and provider comparison...
───────────────────────────────────────
Next: Use /​fractary-logs:read <issue> to view full log

No results:

🎯 STARTING: Log Search
Query: "nonexistent"
───────────────────────────────────────

✅ COMPLETED: Log Search
No matches found for "nonexistent"

Try:
- Broadening your search terms
- Removing filters
- Searching archived logs with --cloud-only
───────────────────────────────────────

</​OUTPUTS>

<DOCUMENTATION> Search operations don't require documentation. Results are ephemeral. </​DOCUMENTATION>

<ERROR_HANDLING>

Invalid Query

If query is malformed:

  1. Report syntax error
  2. Suggest correct syntax
  3. Provide example

Local Search Fails

If local search fails:

  1. Report local search error
  2. Continue with cloud search if enabled
  3. Return partial results

Cloud Search Fails

If cloud search fails:

  1. Report cloud search error
  2. Return local results if any
  3. Suggest checking configuration

Index Missing

If archive index not found:

  1. Report index missing
  2. Only search local logs
  3. Suggest running archive operation

</​ERROR_HANDLING>

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View