Skip to content

Agent instructions - refine ort-build skill#28082

Draft
edgchen1 wants to merge 7 commits intomainfrom
edgchen1/update_agent_instructions
Draft

Agent instructions - refine ort-build skill#28082
edgchen1 wants to merge 7 commits intomainfrom
edgchen1/update_agent_instructions

Conversation

@edgchen1
Copy link
Copy Markdown
Contributor

@edgchen1 edgchen1 commented Apr 15, 2026

Description

This pull request updates the .agents/skills/ort-build/SKILL.md documentation to clarify build instructions and improve guidance for agents working with the ONNX Runtime build system. The changes focus on providing clearer recommendations for build configuration, output handling, and troubleshooting.

Key documentation improvements:

Build configuration and workflow:

  • Clarified that --update is not needed when modifying existing .cc/.h files in an already-configured build tree, and recommended using a fresh --build_dir for major configuration changes instead of reconfiguring in-place to avoid stale CMake cache issues.
  • Added an example of invoking build.py directly, emphasizing that --build_dir must be specified when not using wrapper scripts.

Flag and option explanations:

  • Improved the description of the --skip_tests flag to clarify its behavior when used with or without explicit phase flags.

Build output and troubleshooting:

  • Expanded recommendations for redirecting build output, explaining differences between wrapper scripts and direct build.py usage, and advising agents to store logs under the build directory to keep the repo root clean.
  • Added guidance on interpreting build results, including exit codes and expected outputs, and how to verify build success or troubleshoot errors.

Motivation and Context

Attempt to refine ort-build skill.

edgchen1 and others added 4 commits April 10, 2026 12:38
- Clarify build.py requires --build_dir and add direct invocation example
- Improve incremental build guidance: note when fresh build_dir is needed
- Fix --skip_tests description to reflect actual semantics
- Refine agent tips: exit code as primary success signal, specific output
  types per command, precise log redirection advice, clearer long-running
  build handling, and better explanation of .bat redirection issues

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edgchen1 edgchen1 requested a review from Copilot April 15, 2026 18:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the ort-build agent skill documentation to reduce build iteration friction and improve guidance around configuration changes, flag behavior, and build logging/troubleshooting.

Changes:

  • Clarifies when --update is (and isn’t) required, and recommends using a fresh --build_dir for major configuration changes.
  • Adds a direct build.py invocation example and expands guidance on output redirection/log storage.
  • Refines documentation for --skip_tests behavior and adds build success/troubleshooting heuristics.
Comments suppressed due to low confidence (1)

.agents/skills/ort-build/SKILL.md:1

  • <build_dir> may be treated as an HTML tag in Markdown renderers and disappear or render oddly. Use backticks around the example path (or switch to a placeholder like {build_dir}) so the placeholder reliably displays.
---

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .agents/skills/ort-build/SKILL.md
Comment thread .agents/skills/ort-build/SKILL.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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