opensearch-agent-skills
AGENTS.md56 starsChanged 4 months agoApache-2.0View on GitHub
This file provides guidance for AI coding agents working on the opensearch-agent-skills repository. A collection of Agent Skills for building search applications and analyzing observability data with OpenSearch. Skills are organized in a tree structure under skills/opensearch-skills/ — users can install the entire tree or individual skills at any level.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- cloudSkill
- ingestSkill
- observabilitySkill
- searchSkill
- opensearch-skillsSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 96
All tests pass on your local machine.
- Distinctive: line 97
Commit messages are clear and descriptive.
- Very specific: line 99
If adding a new skill, follow the conventions in DEVELOPER_GUIDE.md.
- Very specific: line 100
If adding new Python modules under scripts/lib/, add corresponding test files named test_agent_skills_<module>.py.
- Very specific: line 108
Scripts: use uv run python to execute.
- Very specific: line 109
SKILL.md body: keep under 500 lines; use separate reference files for detail.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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.
Files
AGENTS.md
This file provides guidance for AI coding agents working on the opensearch-agent-skills repository.
Project Overview
A collection of Agent Skills for building search applications and analyzing observability data with OpenSearch. Skills are organized in a tree structure under skills/opensearch-skills/ — users can install the entire tree or individual skills at any level.
Tech Stack
- Language: Python 3.11+
- Package manager: uv
- Testing: pytest
- CI: GitHub Actions (Linux, macOS, Windows)
- Dependencies:
opensearch-py(runtime),pytest>=7.0(dev)
Repository Structure
skills/
opensearch-skills/ # Top-level meta-skill (install all)
SKILL.md # Routes to category skills
cli-reference.md # CLI command reference
scripts/ # Shared scripts, UI, sample data
opensearch_ops.py # Main CLI tool
start_opensearch.sh # Docker bootstrap
lib/ # Core Python modules
client.py # Connection, auth, preflight
operations.py # Index/model/pipeline ops
search.py # Query building, UI logic
evaluate.py # Search quality metrics
samples.py # Sample data loading
ui.py # Search Builder UI server
ui/ # React frontend (index.html, app.jsx, styles.css)
sample_data/ # Bundled IMDB sample dataset
search/ # Category: Search
SKILL.md # Category router
opensearch-launchpad/ # Leaf skill: search app builder
SKILL.md
*.md # Reference files (models, strategies, evaluation)
observability/ # Category: Observability
SKILL.md # Category router
log-analytics/ # Leaf skill: log querying & analysis
SKILL.md
log-analytics.md # Full workflow reference
ppl-reference.md # PPL syntax reference
trace-analytics/ # Leaf skill: distributed trace investigation
SKILL.md
traces.md # Trace query templates
ppl-reference.md # PPL syntax reference
cloud/ # Category: Cloud deployment
SKILL.md # Category router
aws-setup/ # Leaf skill: AWS provisioning & deployment
SKILL.md
aos/ # Amazon OpenSearch Service guides
aoss/ # Amazon OpenSearch Serverless guides
reference.md # Cost, security, troubleshooting
aiven-setup/ # Leaf skill: Aiven provisioning & deployment
SKILL.md
aiven-01-provision.md # Provision the managed Aiven service
aiven-02-deploy-search.md # Deploy the search configuration
reference.md # Plan sizing, TLS/CA, HA, troubleshooting
tests/ # pytest test suite (no cluster required)Build & Test Commands
# Install dependencies (automatic on first run)
uv sync
# Run full test suite
uv run pytest tests/ -v
# Run tests for a specific module
uv run pytest tests/test_agent_skills_client.py -v
# Run tests matching a keyword
uv run pytest tests/ -v -k "preflight"
# Run a single test
uv run pytest tests/test_agent_skills_evaluate.py::test_ndcg_perfect_ranking -vBefore Committing
- Run all tests and ensure they pass:
uv run pytest tests/ -v - Update CHANGELOG.md with a summary of your changes under
## [Unreleased]. - Do not commit
.env,.mcp.json, credentials, or secrets.
Before Raising a PR
- All tests pass on your local machine.
- Commit messages are clear and descriptive.
- Include DCO signoff on all commits (
git commit -s). - If adding a new skill, follow the conventions in DEVELOPER_GUIDE.md.
- If adding new Python modules under
scripts/lib/, add corresponding test files namedtest_agent_skills_<module>.py.
Code Conventions
- Skill names: lowercase with hyphens, max 64 chars, must match folder name.
- Test files: named
test_agent_skills_<module>.pyto matchscripts/lib/<module>.py. - Tests must not require a running OpenSearch cluster — use mocks/fakes.
- Imports in tests: insert scripts dir onto
sys.path(see existing test files for pattern). - Scripts: use
uv run pythonto execute; include--helpflag for discoverability. - SKILL.md body: keep under 500 lines; use separate reference files for detail.
Architecture Notes
- Skills are organized as a tree: top-level meta-skill → category skills → leaf skills. Each level has its own SKILL.md. Users can install at any level.
- Skills follow the Agent Skills specification with three-level progressive disclosure: metadata (~100 tokens) -> SKILL.md body (<5000 tokens) -> bundled reference files (loaded on demand).
- Category SKILL.md files are lightweight routers (~30 lines) that describe child skills and when to use them.
- Leaf SKILL.md files contain the actual workflow instructions for agents.
- The main CLI (
opensearch_ops.py) uses PEP 723 inline script dependencies and is designed to be run directly by AI agents viauv run. - The React UI (
scripts/ui/) is served by a lightweight Python HTTP server (lib/ui.py) on port 8765. - MCP server integration is optional and configured per-IDE.
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
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.

