Product Full-Text Search
lobehub/lobehub
Guides work on LobeHub's own product search: the shared search repository, provider choice, Elasticsearch mappings, change syncing and reindexing.
Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security.
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aspectrr/deer elasticsearch-authz --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .claude/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .claude/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authzType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aspectrr/deer elasticsearch-authz --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .agents/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .agents/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .agents/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aspectrr/deer elasticsearch-authz --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .cursor/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .cursor/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aspectrr/deer.git --path deer-cli/internal/skill/defaults/elasticsearch-authz--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aspectrr/deer elasticsearch-authz --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .gemini/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .gemini/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aspectrr/deer elasticsearch-authzInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .github/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .github/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .github/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aspectrr/deer --skill elasticsearch-authz -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aspectrr/deer elasticsearch-authz --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aspectrr/deer.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/deer-cli/internal/skill/defaults/elasticsearch-authz .opencode/skills/elasticsearch-authz && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "elasticsearch-authz" agent skill from https://github.com/aspectrr/deer/tree/main/deer-cli/internal/skill/defaults/elasticsearch-authz into .opencode/skills/elasticsearch-authz/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elasticsearch-authz", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
elasticsearch-authzManage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security.
Elasticsearch Authz is an agent skill from aspectrr/deer. Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security. Use when creating users or roles, assigning privileges, or mapping external realms like LDAP/SAML.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Search implementation and Authorization and RBAC. It works with Elasticsearch. The repository describes itself as: 🦌 The AI Elasticsearch Engineer. The licence is MIT.
Read from SKILL.md and the folder at commit e4f9845. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
NEW_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Elasticsearch Authz loads about 1.8k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 399 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from aspectrr/deer at commit e4f9845, republished under its MIT licence (© aspectrr). 399 words, ~1,810 tokens.
.claude/skills/elasticsearch-authz/SKILL.md (or your agent's skills folder).Manage Elasticsearch role-based access control: native users, roles, role assignment, and role mappings for external realms.
For authentication methods and API key management, see the elasticsearch-authn skill.
For detailed API endpoints, see references/api-reference.md.
| Item | Description |
|---|---|
| Elasticsearch URL | Cluster endpoint (e.g. https://localhost:9200 or a Cloud deployment URL) |
| Kibana URL | Required only when setting Kibana feature/space privileges |
| Authentication | Valid credentials (see the elasticsearch-authn skill) |
| Cluster privileges | manage_security is required for user and role management operations |
curl -X POST "${ELASTICSEARCH_URL}/_security/user/${USERNAME}" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"password": "'"${PASSWORD}"'",
"roles": ["'"${ROLE_NAME}"'"],
"full_name": "'"${FULL_NAME}"'",
"email": "'"${EMAIL}"'",
"enabled": true
}'Use PUT /_security/user/${USERNAME} with the fields to change. Omit password to keep the existing one.
curl -X POST "${ELASTICSEARCH_URL}/_security/user/${USERNAME}/_password" \
<auth_flags> -H "Content-Type: application/json" \
-d '{"password": "'"${NEW_PASSWORD}"'"}'
curl -X PUT "${ELASTICSEARCH_URL}/_security/user/${USERNAME}/_disable" <auth_flags>
curl -X PUT "${ELASTICSEARCH_URL}/_security/user/${USERNAME}/_enable" <auth_flags>
curl "${ELASTICSEARCH_URL}/_security/user/${USERNAME}" <auth_flags>
curl -X DELETE "${ELASTICSEARCH_URL}/_security/user/${USERNAME}" <auth_flags>Use the Elasticsearch API (PUT /_security/role/{name}) when the role only needs cluster and indices
privileges. Use the Kibana role API (PUT /api/security/role/{name}) when the role includes any Kibana feature or space
privileges.
curl -X PUT "${ELASTICSEARCH_URL}/_security/role/${ROLE_NAME}" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"description": "'"${ROLE_DISPLAY_NAME}"'",
"cluster": [],
"indices": [
{
"names": ["'"${INDEX_PATTERN}"'"],
"privileges": ["read", "view_index_metadata"]
}
]
}'curl -X PUT "${KIBANA_URL}/api/security/role/${ROLE_NAME}" \
<auth_flags> \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{
"description": "'"${ROLE_DISPLAY_NAME}"'",
"elasticsearch": {
"cluster": [],
"indices": [
{
"names": ["'"${INDEX_PATTERN}"'"],
"privileges": ["read", "view_index_metadata"]
}
]
},
"kibana": [
{
"base": [],
"feature": {
"discover": ["read"],
"dashboard": ["read"]
},
"spaces": ["*"]
}
]
}'Restrict which fields a role can see:
curl -X PUT "${ELASTICSEARCH_URL}/_security/role/pii-redacted-reader" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"description": "PII Redacted Reader",
"indices": [
{
"names": ["customers-*"],
"privileges": ["read"],
"field_security": {
"grant": ["*"],
"except": ["ssn", "credit_card", "date_of_birth"]
}
}
]
}'Restrict which documents a role can see by attaching a query filter:
curl -X PUT "${ELASTICSEARCH_URL}/_security/role/emea-logs-reader" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"description": "EMEA Logs Reader",
"indices": [
{
"names": ["logs-*"],
"privileges": ["read"],
"query": "{\"term\": {\"region\": \"emea\"}}"
}
]
}'curl -X PUT "${ELASTICSEARCH_URL}/_security/user/${USERNAME}" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"roles": ["role-a", "role-b"]
}'The roles array is replaced entirely — include all roles the user should have. Fetch the user first to see current
roles before updating.
curl -X PUT "${ELASTICSEARCH_URL}/_security/role_mapping/saml-default-access" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"roles": ["viewer"],
"enabled": true,
"rules": {
"field": { "realm.name": "saml1" }
}
}'curl -X PUT "${ELASTICSEARCH_URL}/_security/role_mapping/ldap-admins" \
<auth_flags> \
-H "Content-Type: application/json" \
-d '{
"roles": ["superuser"],
"enabled": true,
"rules": {
"all": [
{ "field": { "realm.name": "ldap1" } },
{ "field": { "groups": "cn=admins,ou=groups,dc=example,dc=com" } }
]
}
}'elastic superuser for day-to-day operations. Create dedicated minimum-privilege roles.read and view_index_metadata for read-only data access. Leave cluster empty unless explicitly required.query) and FLS (field_security) to restrict access within an index.Never use internal action names (e.g. indices:data/read/search). Always use officially documented named privileges.
logs-reader, apm-data-viewer, metrics-writer.description to a short, human-readable display name.© aspectrr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in deer-cli/internal/skill/defaults/elasticsearch-authz of aspectrr/deer.
Open the folder on GitHubat commit e4f9845
Elasticsearch Authz next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Elasticsearch Authz this skillaspectrr/deer | 405 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Product Full-Text Searchlobehub/lobehub | 83k | — | ~4.1k | Automated safety check: Pass | Custom licence | |
| Foundatio Repositoriesexceptionless/Exceptionless | 2.5k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| API Authzelastic/kibana | 21k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| Elasticsearch File IngestKilo-Org/kilo-marketplace | 190 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Elasticsearcholasunkanmi-SE/codebuddy | 141 | — | ~425 | Automated safety check: Pass | MIT |
lobehub/lobehub
Guides work on LobeHub's own product search: the shared search repository, provider choice, Elasticsearch mappings, change syncing and reindexing.
exceptionless/Exceptionless
Query, aggregate, patch, or paginate Exceptionless data through its Elasticsearch repository abstractions.
elastic/kibana
Kibana API route authorization patterns. An agent skill from elastic/kibana.
Kilo-Org/kilo-marketplace
Ingest and transform data files (CSV/JSON/Parquet/Arrow IPC) into Elasticsearch with stream processing and custom transforms.
olasunkanmi-SE/codebuddy
Interact with Elasticsearch clusters via the API. An agent skill from olasunkanmi-SE/codebuddy.
elastic/agent-skills
Design and review Elasticsearch index mappings for stated access patterns: correct field types, text+keyword multi-fields, docvalues tuning, mapping-explosion avoidance, and explicit shard settings.
aspectrr/deer
Enable, configure, and query Elasticsearch security audit logs.
aspectrr/deer
Authenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos, JWT, or certificate realms.
aspectrr/deer
Ingest and transform data files (CSV/JSON/Parquet/Arrow IPC) into Elasticsearch with stream processing and custom transforms.
aspectrr/deer
Diagnose and resolve Elasticsearch security errors: 401/403 failures, TLS problems, expired API keys, role mapping mismatches, and Kibana login issues.
aspectrr/deer
Kafka topic management, consumer group monitoring, message production/consumption, and cluster health diagnostics.
aspectrr/deer
Create and manage Kibana alerting rules via REST API or Terraform.
Works with
Categories
Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security. Elasticsearch Authz is an agent skill from aspectrr/deer. Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security.
Elasticsearch Authz fits situations like: assigning privileges; mapping external realms like LDAP/SAML.
Run `npx skills add aspectrr/deer --skill elasticsearch-authz -a claude-code`. Or copy the skill folder (deer-cli/internal/skill/defaults/elasticsearch-authz in aspectrr/deer) into .claude/skills/elasticsearch-authz in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aspectrr/deer --skill elasticsearch-authz -a codex`. Or copy the skill folder (deer-cli/internal/skill/defaults/elasticsearch-authz in aspectrr/deer) into .agents/skills/elasticsearch-authz in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aspectrr/deer --skill elasticsearch-authz -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/elasticsearch-authz, .gemini/skills/elasticsearch-authz, .github/skills/elasticsearch-authz and .opencode/skills/elasticsearch-authz in your project.
Going by SKILL.md and its folder, Elasticsearch Authz needs the command-line tools its instructions call (curl) and credentials named NEW_PASSWORD.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Elasticsearch Authz is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Elasticsearch Authz: Product Full-Text Search (lobehub/lobehub, 83k stars), Foundatio Repositories (exceptionless/Exceptionless, 2.5k stars), API Authz (elastic/kibana, 21k stars) and Elasticsearch File Ingest (Kilo-Org/kilo-marketplace, 190 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aspectrr (a GitHub user) maintains it in aspectrr/deer, which has 405 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on April 21, 2026.
Source: aspectrr/deer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.