Skip to content

Auto generate skill for agent-skills-sandbox repo#2466

Draft
tehbooom wants to merge 4 commits intoelastic:mainfrom
tehbooom:agent-skills
Draft

Auto generate skill for agent-skills-sandbox repo#2466
tehbooom wants to merge 4 commits intoelastic:mainfrom
tehbooom:agent-skills

Conversation

@tehbooom
Copy link
Copy Markdown
Contributor

@tehbooom tehbooom commented Apr 24, 2026

Auto generates a skill to put in elastic/agent-skills-sandbox repo

Will need to discuss if this fits here or if we would like to have another repo pull in the providers to generate and then push to that repo.

Note

Add skill generator CLI for the elasticstack-terraform agent-skills-sandbox repo

  • Adds a Go CLI at scripts/generate-skill that produces a deterministic skill directory tree under dist/skill/ by combining hand-authored assets and provider docs.
  • Scans docs/resources and docs/data-sources, parses frontmatter, and merges entities into a generated references/index.md with descriptions and file links.
  • Copies static assets (including SKILL.md and reference docs) into the output tree, substituting {{VERSION}} with the value passed via --provider-version.
  • Writes a GENERATED.md provenance file summarising entity counts and provider version.
  • Adds make skill-generate and make skill-test targets to invoke the generator and its unit tests respectively.

Macroscope summarized 6f18ed1.

@github-actions
Copy link
Copy Markdown
Contributor

PR Changelog Check failed

The following issues were found with the ## Changelog section:

  • No ## Changelog section found in PR body
Expected format
## Changelog
Customer impact: <none|fix|enhancement|breaking>
Summary: <one-line description>  (required when Customer impact is not "none")

### Breaking changes
<free-form markdown>  (required when Customer impact is "breaking")

Or add the no-changelog label to bypass this check.

Comment thread scripts/generate-skill/emit.go Outdated
Comment thread scripts/generate-skill/assets/references/provider.md
Comment thread scripts/generate-skill/assets/references/provider.md
| Subsystem | Endpoint env | Auth envs |
|---|---|---|
| Elasticsearch | `ELASTICSEARCH_ENDPOINTS` | `ELASTICSEARCH_USERNAME` + `ELASTICSEARCH_PASSWORD`, or `ELASTICSEARCH_API_KEY`, or `ELASTICSEARCH_BEARER_TOKEN` |
| Kibana | `KIBANA_ENDPOINT` | `KIBANA_USERNAME` + `KIBANA_PASSWORD`, or `KIBANA_API_KEY` |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Low references/provider.md:38

The Kibana auth environment variables table at line 38 omits KIBANA_BEARER_TOKEN, which is a supported authentication mechanism per the provider implementation. Since this document is used to generate AI skills, the missing token type means generated skills will never suggest bearer token authentication for Kibana even when it is valid.

-| Kibana | `KIBANA_ENDPOINT` | `KIBANA_USERNAME` + `KIBANA_PASSWORD`, or `KIBANA_API_KEY` |
+| Kibana | `KIBANA_ENDPOINT` | `KIBANA_USERNAME` + `KIBANA_PASSWORD`, or `KIBANA_API_KEY`, or `KIBANA_BEARER_TOKEN` |
🤖 Copy this AI Prompt to have your agent fix this:
In file scripts/generate-skill/assets/references/provider.md around line 38:

The Kibana auth environment variables table at line 38 omits `KIBANA_BEARER_TOKEN`, which is a supported authentication mechanism per the provider implementation. Since this document is used to generate AI skills, the missing token type means generated skills will never suggest bearer token authentication for Kibana even when it is valid.

Copy link
Copy Markdown
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious what this solves over one of:

I suppose referencing HTTP docs in a skill might be less effective than sourcing local content, but basing this off the generated docs feels like a better path (they're for the right audience, where the specs are more developer focused).

@tehbooom
Copy link
Copy Markdown
Contributor Author

I'm curious what this solves over one of:

I suppose referencing HTTP docs in a skill might be less effective than sourcing local content, but basing this off the generated docs feels like a better path (they're for the right audience, where the specs are more developer focused).

You're right using the docs directory is better than the specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants