Index of every page on this site: llms.txt
All skills
Run it yourself

Build search applications and query log analytics data with OpenSearch. Use this skill when the user mentions OpenSearch, search app, index setup, search architecture, semantic search, vector search, hybrid search, BM25, dense vector, sparse vector, agentic search, RAG, embeddings, KNN, PDF ingestion, document processing, or any related search topic. Also use for log analytics and observability — when the user wants to set up log ingestion, query logs with PPL, analyze error patterns, set up index lifecycle policies, investigate traces, or check stack health. Activate even if the user says log analysis, Fluent Bit, Fluentd, Logstash, syslog, traceId, OpenTelemetry, or log analytics without mentioning OpenSearch.

Use this Skill: https://skilld.dev/gh/opensearch-project/opensearch-agent-skills/opensearch-skills

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

cloudaws-setupaossaoss-nextgen-provisioningDEPROVISION.md

≈733 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Deprovision (Teardown)

Companion file for the AOSS NextGen provisioning skill. Read this when user selects Flow 5.


Flow 5: Deprovision

Steps

1. Collect region:

Ask the user for their AWS region.

2. List existing resources:

aws opensearchserverless list-collection-groups --region <region>
aws opensearchserverless list-collections --region <region>

Display all collection groups (with numberOfCollections) and collections as a numbered list.

3. User selects teardown scope:

Ask:

What would you like to delete?

1. A specific collection only
2. A collection group and all its collections
3. Full teardown (all groups + collections + associated policies)

4. If deleting a specific collection:

Ask which collection. Then:

aws opensearchserverless delete-collection --cli-input-json '{
  "id": "<collection-id>"
}' --region <region>

5. If deleting a collection group (and its collections):

First, identify collections in that group from the list-collections output (check collectionGroupName field).

Show confirmation:

The following resources will be deleted:
  - Collection group: <group-name> (id: <group-id>)
    - Collection: <coll-name> (id: <coll-id>)
    [... for each collection in the group]
  - Encryption policy: <name>-enc-policy (if exists)
  - Network policy: <name>-net-policy (if exists)

Type the collection group name to confirm deletion:

Wait for user to type the exact group name. If it doesn't match, abort.

Then execute in order:

a. Delete each collection:

aws opensearchserverless delete-collection --cli-input-json '{
  "id": "<collection-id>"
}' --region <region>

b. Poll until collections are deleted (every 10 seconds, max 5 minutes):

aws opensearchserverless batch-get-collection --ids <id1> <id2> --region <region>

Deletion is complete when EITHER:

  • The collection appears in collectionErrorDetails with "errorCode": "NOT_FOUND", OR
  • The collectionDetails array is empty for all requested IDs

Do NOT look for a "DELETED" status — AWS removes the collection entirely and returns NOT_FOUND.

If timeout (5 minutes), inform user and stop.

c. Delete collection group:

aws opensearchserverless delete-collection-group --cli-input-json '{
  "id": "<group-id>"
}' --region <region>

d. Delete associated security policies (if they exist and match the naming pattern):

aws opensearchserverless delete-security-policy --cli-input-json '{
  "type": "encryption",
  "name": "<name>-enc-policy"
}' --region <region>

aws opensearchserverless delete-security-policy --cli-input-json '{
  "type": "network",
  "name": "<name>-net-policy"
}' --region <region>

6. If full teardown:

Same as option 5 but for ALL groups. Show full confirmation list and require typed confirmation.

Success Output

Report what was deleted and confirm cleanup is complete.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert3d4 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides a comprehensive set of tools for OpenSearch development, including data ingestion, deployment to AWS/Aiven, and observability analytics. It implements robust security measures such as SSRF protection for remote data loading. Potential security considerations include the ingestion of unstructured data (Indirect Prompt Injection surface) and the transmission of feedback to a third-party domain.

  • Socket3d

    5 alerts: gptSecurity, gptAnomaly

  • Snyk5d

    Risk: CRITICAL · 3 issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c4f7b1e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 6 days ago
compatibility
Requires Docker and uv. AWS deployment requires AWS credentials.
metadata
{
  "author": "opensearch-project",
  "version": "2.0"
}

README badge

README badge for opensearch-project/opensearch-agent-skills/opensearch-skills