Skip to content

Follow elastic-docs-skills#153: move skill imports to frontmatter skills: - #354

Merged
theletterf merged 4 commits into
mainfrom
rename-apm-skill-paths
Sep 20, 2026
Merged

theletterf merged 4 commits into
mainfrom
rename-apm-skill-paths

Conversation

@theletterf

@theletterf theletterf commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Summary

elastic/elastic-docs-skills#153 renamed the 13 skill directories whose folder name disagreed with their frontmatter name. Skill references are directory paths, so this repo had to follow — and the blast radius was wider than the two workflows I first identified.

Six workflows referenced renamed directories. Five imported skills through APM; the sixth is gh-aw-docs-review, which #352 had just moved to the frontmatter skills: key but still using the old paths.

Workflow Was Now
docs-agent-experimental APM, 4 packages skills:, 4 pinned
gh-aw-docs-applies-to-sweep APM, 1 package skills:, 1 pinned
gh-aw-docs-frontmatter-sweep APM, 2 packages skills:, 2 pinned
gh-aw-docs-openings-sweep APM, 4 packages skills:, 4 pinned
gh-aw-docs-style-sweep APM, 2 packages skills:, 2 pinned
gh-aw-docs-review skills: with old paths paths, invocation names, and the review-criteria.md import updated

Why convert rather than rename in place

Renaming the paths would have fixed the instance and left the class. APM package references carry no @ref, and gh-aw passes them straight to apm-action with no lockfile, so they resolve from the catalog's default branch on every run. That is precisely what let a rename in another repository break five workflows silently, with nothing in this repo to review.

The frontmatter skills: key resolves at compile time and records the SHA in actions-lock.json. All nine distinct skills now pin to 4d8ad27, the rename commit, so the next catalog rename cannot reach these workflows until someone recompiles deliberately.

Things worth a reviewer's attention

gh-aw-docs-review needed more than a path change. Its prompt invoked skills by directory name — correct before the rename, wrong after. Now that each directory matches its frontmatter name, both collapse to one name, so the "Invoke as / Skill" table became two identical columns and is now a single column. The imports: entry for review-criteria.md also moved with review-pr → docs-review-pr; the compiler caught that one, which is the only reason I found it.

Security review. This compilation removes the microsoft/apm-action dependency from the five converted workflows and adds no new actions, secrets, or network destinations. apm-action remains in the repo where other workflows still use it. The only additions to actions-lock.json are SHA-pinned skill paths in elastic/elastic-docs-skills, a repository these workflows already consumed — previously unpinned.

Verified

  • gh aw compile across all 13 workflows, 0 warnings
  • Every skill path referenced in any workflow resolves against the renamed catalog
  • All nine skills pin to 4d8ad27
  • skills: is supported on the copilot engine: the compiler emits GH_AW_GH_SKILL_AGENT_NAME: "github-copilot" with GH_AW_SKILL_DIR: ".github/skills"

Not verified

The skills: mechanism is proven at runtime under the claude engine only (four sandbox runs on docs-review). These six are copilot, so the install path is compile-verified but not run-verified. A skill that fails to install is loud rather than silent — agent declares needs: activation and the install failure count gates the run — but a first real run is still worth watching.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b

Related to #402

elastic/elastic-docs-skills#153 renames the skill directories whose
folder name disagreed with their frontmatter name. APM package paths are
directory paths, so these two workflows have to follow.

These references carry no @ref and resolve from the catalog's default
branch at runtime, so they cannot be pinned ahead of the rename — gh-aw
passes the dependency list straight to apm-action with no lockfile. The
mitigation is ordering, not pinning: merge the rename first, then this.

A stale path fails loudly rather than silently degrading the review: the
agent job needs the apm job, and the bundle guard exits 1 when no bundle
is produced.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
@theletterf theletterf self-assigned this Sep 20, 2026
@theletterf theletterf added the fix label Sep 20, 2026
@theletterf
theletterf marked this pull request as ready for review September 20, 2026 14:29
@theletterf
theletterf requested a review from a team as a code owner September 20, 2026 14:29
@theletterf
theletterf requested a review from technige September 20, 2026 14:29
elastic/elastic-docs-skills#153 renamed the skill directories whose folder
disagreed with their frontmatter name. APM package references are directory
paths, so five workflows pointed at directories that no longer exist.

Renaming the paths in place would have fixed the instance and left the
class: APM package refs carry no @ref, gh-aw passes them to apm-action
without a lockfile, and they resolve from the catalog default branch on
every run. That is what made this breakage possible and silent to review.

The frontmatter skills: key is resolved at compile time and pinned into
actions-lock.json, so a future catalog rename cannot reach these workflows
until someone recompiles deliberately. All five skills now pin to
4d8ad27, the rename commit.

Removing the APM import also drops the apm job and the apm-action
dependency from these workflows. apm-action remains in the repo for
gh-aw-docs-review, which #352 converts separately.

Security review: this compilation removes the microsoft/apm-action
dependency from the affected workflows and adds no new actions, secrets,
or network destinations. The only additions to actions-lock.json are five
SHA-pinned skill paths in elastic/elastic-docs-skills, a repository these
workflows already consumed unpinned.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No blocking issues found in this change.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

theletterf and others added 2 commits September 20, 2026 16:39
# Conflicts:
#	.github/workflows/docs-agent-experimental.lock.yml
#	.github/workflows/gh-aw-docs-applies-to-sweep.lock.yml
#	.github/workflows/gh-aw-docs-frontmatter-sweep.lock.yml
#	.github/workflows/gh-aw-docs-openings-sweep.lock.yml
#	.github/workflows/gh-aw-docs-style-sweep.lock.yml
.github/aw/logs/run-30910942575 is local agent-run output that was
untracked in the working tree and is not on main. A broad git add during
the merge resolution swept it in. Removed from the index; the files stay
on disk.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
@theletterf theletterf changed the title Point APM skill packages at the renamed catalog directories Follow elastic-docs-skills#153: move skill imports to frontmatter skills: Sep 20, 2026
@theletterf
theletterf merged commit 74f0ca1 into main Sep 20, 2026
8 checks passed
@theletterf
theletterf deleted the rename-apm-skill-paths branch September 20, 2026 14:46

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Requesting changes due to one blocking workflow-resolution issue in the inline comment.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

jobs:
run-docs-review:
name: Test docs review (branch)
uses: elastic/docs-actions/.github/workflows/gh-aw-docs-review.lock.yml@scope-quality-and-docs-impact

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[HIGH] Reusable workflow ref currently cannot resolve

uses: elastic/docs-actions/.github/workflows/gh-aw-docs-review.lock.yml@scope-quality-and-docs-impact points to a branch ref that is not present on this repository, so manual dispatches of this test workflow will fail before jobs start when Actions cannot resolve the called workflow revision.

Please pin this to an existing ref (ideally a commit SHA, or at least an existing branch/tag).

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant