agentleFS
dandyedandye/ai-runbooks/skills/find-relevant-case/SKILL.md

find-relevant-case

Skill127 starsChanged 4 months agoApache-2.0View on GitHub

Search for existing cases related to specific indicators or entities. Use to find correlation with other investigations before starting new analysis. Takes search terms and returns matching case IDs.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If too many results, use get_case_full_details on a subset to verify entity presence:

    line 47
  2. Distinctive:

    Broader filters: - Use time range, alert type, then manually review

    line 65
  3. Distinctive:

    SIEM correlation: - Search SIEM for entity, check if events belong to a case

    line 66
  4. Distinctive:

    Multiple searches: - Search each term separately, combine results

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Find Relevant Case Skill

Identify existing cases that may be related to the current investigation based on IOCs, hostnames, usernames, or other entities.

Inputs

  • SEARCH_TERMS - List of values to search for (e.g., ["198.51.100.10", "mikeross-pc", "jsmith"])
  • (Optional) CASE_STATUS_FILTER - Filter by status: "Opened", "Closed" (default: "Opened")
  • (Optional) TIME_FRAME_HOURS - Lookback period for case creation/update
  • (Optional) MAX_RESULTS - Maximum cases to return

Workflow

Step 1: Construct Search Filter

Build a filter for list_cases based on search terms and filters.

Note: The list_cases tool may have limited ability to search within case entities. If direct entity search isn't supported, use broader filters and refine results.

Step 2: Execute Search

secops-soar.list_cases(
    filter=constructed_filter,
    limit=MAX_RESULTS
)

Step 3: Process Results

Extract case IDs and basic details (DisplayName, Priority) from results.

Step 4: (Optional) Refine Results

If too many results, use get_case_full_details on a subset to verify entity presence:

secops-soar.get_case_full_details(case_id=candidate_case_id)

Outputs

OutputDescription
RELEVANT_CASE_IDSList of case IDs that match the search
RELEVANT_CASE_SUMMARIESBrief summaries (ID, name, priority)
FIND_CASE_STATUSSuccess/failure status of the search

Limitations & Workarounds

The list_cases tool may not support direct entity searching. Alternatives:

  1. Broader filters - Use time range, alert type, then manually review
  2. SIEM correlation - Search SIEM for entity, check if events belong to a case
  3. Multiple searches - Search each term separately, combine results

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.