Skip to content

Workflows cheat-sheet: clarify the shared-- naming convention#7095

Open
benironside wants to merge 1 commit into
mainfrom
workflows-cheat-sheet-shared-prefix-note
Open

Workflows cheat-sheet: clarify the shared-- naming convention#7095
benironside wants to merge 1 commit into
mainfrom
workflows-cheat-sheet-shared-prefix-note

Conversation

@benironside

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #6826. Adds a one-line note to composition gotcha #7 in the Workflows cheat-sheet clarifying that the shared-- prefix on workflow-id is an optional shared-workflow naming convention (shared--<verb>-<noun>), not required syntax.

Background

In a post-merge review on #6826, the double dash in workflow-id: "shared--enrich-alerts" read as a possible typo. The double dash is intentional and documented (see Compose workflows), and it's used consistently across composition.md, troubleshooting.md, and the security use-case pages. Rather than change the value (which would make the cheat-sheet inconsistent with the rest of the docs), this PR adds a brief note so readers don't mistake -- for required syntax.

Change

Generative AI disclosure

Yes — Claude Opus 4.8 / Cursor.

Made with Cursor

Adds a one-line note to composition gotcha #7 explaining that the
`shared--` prefix on `workflow-id` is an optional shared-workflow
naming convention, not required syntax. Follow-up to a post-merge
review comment on #6826 where the double dash read as a possible typo.

The double dash is intentional and documented (shared--<verb>-<noun>),
so the YAML example is unchanged; only the clarifying note is added.

Co-authored-by: Cursor <cursoragent@cursor.com>
@benironside benironside requested review from a team as code owners June 23, 2026 23:44
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@florent-leborgne florent-leborgne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, a very optional suggestion

alerts: "${{ event.alerts }}"
```

The `shared--` prefix in the workflow ID is an optional [naming convention](/explore-analyze/workflows/authoring-techniques/compose-workflows.md) for shared workflows, not required syntax.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
The `shared--` prefix in the workflow ID is an optional [naming convention](/explore-analyze/workflows/authoring-techniques/compose-workflows.md) for shared workflows, not required syntax.
:::{tip}
The `shared--` prefix in the workflow ID is an optional [naming convention](/explore-analyze/workflows/authoring-techniques/compose-workflows.md) for shared workflows, not required syntax.
:::

Optional, I think it fits this case, but up to you

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.

3 participants