Skip to content
Back to skills

Get Raw Text Search

ASecurity

Use when the memory-first gate reported a text search and you need the short-lived raw output from its shell grep or rg capture.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspythongoshell

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add Arasz/ai-proxy --skill get-raw-text-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Get Raw Text Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Get Raw Text Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arasz-get-raw-text-search/badge)](https://www.skillsdirectory.com/skills/arasz-get-raw-text-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: get-raw-text-search
description: >-
  Use when the memory-first gate reported a text search and you need the short-lived raw
  output from its shell grep or rg capture.
version: 0.2.0
author: ai-badger
license: MIT
platforms: [linux, macos, windows]
scope: default
metadata:
  hermes:
    tags: [grep, rg, search, retrieval]
    related_skills: [ai-raccoon-memory]
---

# Get Raw Text Search Result

Use this skill when a memory-first gate reports a text search and the original grep or
`rg` output is needed.

## Procedure

1. Select the matching `{pattern, rawResultHash}` entry from `textSearchInput`. The hash is
   a SHA-256 digest of the exact pattern text; a pattern with no capture (a `find` call, for
   instance) carries no hash and has no raw output to fetch.
2. Run `python3 <path-to-this-skill>/scripts/get_raw_text_search.py --pattern-hash <hash>`.
   For an exact pattern string, use `--pattern <pattern>` instead.
3. Parse the JSON response. `status` is `pending`, `ready`, `expired`, or `error`; a ready
   result contains `stdout`, `stderr`, and `returncode`.
4. If the status is `pending`, retry promptly. Results expire about 120 seconds after capture
   begins and are removed when fetched after expiry. Run the command from the same working
   directory as the original search; results are isolated by working directory.

## Pitfalls

- Pass exactly one of `--pattern` and `--pattern-hash`.
- Preserve the pattern exactly when using `--pattern`; even whitespace changes its hash.
- A grep exit code of 1 means no matches and is still a completed `ready` result.
- Each stdout and stderr stream is limited to 1 MiB; the JSON marks truncated streams.
- The capture is best-effort and only starts for a standalone grep/rg command with literal
  operands on a first-sighting gate decision. Pipelines, compound commands, and shell-expanded
  operands are not captured. It is not a durable search history.

## Gotchas

No environment-specific gotchas known.

## Verification

Confirm the output is valid JSON and the returned `hash` matches the requested handle. For a
`ready` response, inspect `returncode`, `stdout`, and `stderr` before relying on the result.

Files in this skill

  • SKILL.md2.1 KB
  • scripts/get_raw_text_search.py9.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.