application/skills/retrieve/SKILL.md
Search a knowledge base using Amazon Bedrock RAG (Retrieval-Augmented Generation). Use when users want to find information from uploaded documents, ask questions about stored knowledge, or retrieve relevant content from the knowledge base. Returns matched content with source references and URLs.
npx skillsauth add kyopark2014/strands-agent retrieveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Search and retrieve relevant documents from an Amazon Bedrock Knowledge Base using RAG.
Use the retrieve script to query the knowledge base by keyword:
import subprocess
result = subprocess.run(['python', 'scripts/retrieve_search.py', 'keyword'],
capture_output=True, text=True, cwd='retrieve')
print(result.stdout)
The retrieve script is located at skills/retrieve/scripts/retrieve_search.py relative to the application working directory.
IMPORTANT: Always use the FULL path skills/retrieve/scripts/retrieve_search.py — do NOT shorten to scripts/retrieve_search.py.
# Search for information about a topic
result = subprocess.run(['python', 'scripts/retrieve_search.py', '클라우드 아키텍처'],
capture_output=True, text=True, cwd='retrieve')
# Search for technical documentation
result = subprocess.run(['python', 'scripts/retrieve_search.py', 'API authentication'],
capture_output=True, text=True, cwd='retrieve')
# Search for explanations
result = subprocess.run(['python', 'scripts/retrieve_search.py', '보안 정책'],
capture_output=True, text=True, cwd='retrieve')
The script returns a JSON array. Each element contains:
[
{
"contents": "matched text from the knowledge base",
"reference": {
"url": "https://...",
"title": "document_name.pdf",
"from": "RAG"
}
}
]
The script reads from config.json in the application root directory. Required fields:
{
"region": "us-west-2",
"projectName": "my-project",
"knowledge_base_id": "KB_ID",
"sharing_url": "https://sharing-base-url",
"aws": {
"access_key_id": "optional",
"secret_access_key": "optional",
"session_token": "optional"
}
}
retrieve API with vector searchResourceNotFoundException by automatically looking up the knowledge base by project nameThe script requires:
boto3 - for AWS Bedrock API callsbotocore - for AWS exception handling (included with boto3)Install dependencies:
pip install boto3
development
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.
development
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
data-ai
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
documentation
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.