Skip to content

docs: replace hardcoded runner paths with repo-relative paths in prompts - #1693

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/fix-prompt-absolute-paths-fba8a3b0dca4ba4c
Draft

docs: replace hardcoded runner paths with repo-relative paths in prompts#1693
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/fix-prompt-absolute-paths-fba8a3b0dca4ba4c

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Agent Documentation Update

Findings

Area Issue File(s)
accuracy All three workflow-authoring prompts used absolute paths tied to the GitHub Actions runner workspace (/home/runner/work/ado-aw/ado-aw/...). These paths break for any agent consuming the prompts via the published GitHub raw URLs in a consumer repository. prompts/create-ado-agentic-workflow.md, prompts/update-ado-agentic-workflow.md, prompts/debug-ado-agentic-workflow.md

Applied Fixes

  • Replaced Apply /home/runner/work/ado-aw/ado-aw/prompts/prompt-contract.mdApply prompts/prompt-contract.md in all three prompts
  • Replaced all /home/runner/work/ado-aw/ado-aw/docs/... reference entries with repo-relative docs/... paths in all three prompts

Notes

The SKILL.md template (both src/data/init-skill.md and agency/plugins/ado-aw/skills/*/SKILL.md) instruct agents to fetch these prompts from versioned GitHub raw URLs. Once fetched, a consumer agent has no access to /home/runner/work/ado-aw/ado-aw/ paths. Repo-relative paths (prompts/prompt-contract.md, docs/front-matter.md, etc.) work in any clone of the repository and serve as stable references for agents looking up files via GitHub API.

Verified: grep -rn "home/runner" prompts/ returns no matches after this change.


Created by the agent-documentation maintainer workflow.

Generated by Agent Documentation Maintainer · 93.8 AIC · ⌖ 12.3 AIC · ⊞ 8.7K ·

All three workflow-authoring prompts referenced prompt-contract.md and
doc pages using absolute paths tied to the GitHub Actions runner workspace
(/home/runner/work/ado-aw/ado-aw/...). These paths break for any agent
consuming the prompts via the published GitHub raw URLs in a consumer
repository.

Switch to repo-relative paths (e.g. `prompts/prompt-contract.md`,
`docs/front-matter.md`) which work in any clone of the repository and
serve as stable references for agents looking up files via GitHub API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

0 participants