agentleFS
dandyedandye/ai-runbooks/skills/close-case-artifact/SKILL.md

close-case-artifact

Skill127 starsChanged 4 months agoApache-2.0View on GitHub

Close a case or alert with proper reason and documentation. Use when triage determines an alert is FP/BTP or investigation is complete. Requires artifact ID, type, closure reason, and root cause.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If unsure of valid root cause values:

    line 78

≈ “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

Close Case Artifact Skill

Close a case or alert with the required reason, root cause, and justification comment.

Inputs

  • ARTIFACT_ID - The ID of the case or alert to close
  • ARTIFACT_TYPE - Either "Case" or "Alert"
  • CLOSURE_REASON - Must be one of:
    • MALICIOUS - Confirmed threat
    • NOT_MALICIOUS - False positive or benign
    • MAINTENANCE - System/maintenance activity
    • INCONCLUSIVE - Unable to determine
    • UNKNOWN - Unknown/other
  • ROOT_CAUSE - Must match a predefined root cause (use get_case_settings_root_causes to list options)
  • CLOSURE_COMMENT - Detailed justification for closure
  • (Optional) ALERT_GROUP_IDENTIFIERS - Alert group identifiers
  • (Optional, for alerts) ASSIGN_TO_USER - User to assign closed alert to
  • (Optional, for alerts) TAGS - Comma-separated tags

Workflow

Step 1: Execute Closure

For Cases:

secops-soar.siemplify_close_case(
    case_id=ARTIFACT_ID,
    reason=CLOSURE_REASON,
    root_cause=ROOT_CAUSE,
    comment=CLOSURE_COMMENT,
    alert_group_identifiers=ALERT_GROUP_IDENTIFIERS
)

For Alerts:

secops-soar.siemplify_close_alert(
    alert_id=ARTIFACT_ID,
    reason=CLOSURE_REASON,
    root_cause=ROOT_CAUSE,
    comment=CLOSURE_COMMENT,
    assign_to_user=ASSIGN_TO_USER,
    tags=TAGS
)

Outputs

OutputDescription
CLOSURE_STATUSSuccess/failure status of the closure

Common Closure Patterns

ScenarioReasonTypical Root Cause
False PositiveNOT_MALICIOUS"Legit action", "Normal behavior"
DuplicateNOT_MALICIOUS"Similar case is already under investigation"
Benign True PositiveNOT_MALICIOUS"Legit action"
Confirmed Threat (remediated)MALICIOUSVaries by threat type
Unable to determineINCONCLUSIVE"Insufficient data"

Get Valid Root Causes

If unsure of valid root cause values:

secops-soar.get_case_settings_root_causes()

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.