Skip to content

Conversation

@sgbaird
Copy link
Member

@sgbaird sgbaird commented Oct 22, 2025

Added guidelines for development practices, git operations, external resources, communication style, change logging, and coding agent.

Added guidelines for development practices, git operations, external resources, communication style, change logging, and coding agent.
Copilot AI review requested due to automatic review settings October 22, 2025 00:52
@sgbaird sgbaird merged commit 91b443b into main Oct 22, 2025
0 of 2 checks passed
@sgbaird sgbaird deleted the sgbaird-patch-8 branch October 22, 2025 00:52
Copy link

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

This PR introduces Copilot instructions to standardize development practices and AI assistant behavior. The guidelines establish conventions for minimal implementations, git operations, external resource usage, communication style, change logging, and coding agent behaviors.

Key Changes:

  • Added development practices favoring lean, proof-of-concept implementations
  • Defined git operations and external resource handling conventions
  • Established communication style guidelines emphasizing clarity and objectiveness

Comment on lines +9 to +10
- Avoid `if __name__ == "__main__"` patterns in package code, unless asked
For example, rather than using:
Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The guideline states 'in package code' but the context of when this pattern should be avoided versus allowed is unclear. Consider clarifying whether this applies to all Python files in the repository or specifically to library/package modules (as opposed to standalone scripts or entry points).

Suggested change
- Avoid `if __name__ == "__main__"` patterns in package code, unless asked
For example, rather than using:
- Avoid `if __name__ == "__main__"` patterns in files intended to be imported as modules (i.e., package/library code), unless asked. This pattern is acceptable in standalone scripts or entry points.
For example, in package/library modules, rather than using:

Copilot uses AI. Check for mistakes.

- Validate and access link content using your available MCP tools (Playwright and/or Perplexity)
- Search GitHub for relevant open-source alternatives to commercial tools
- Prioritize official package documentation over inferred usage by using your Context7 MCP tool
Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

[nitpick] References to 'your' MCP tools assume the reader is an AI assistant. Since this is a guidelines document that may be read by human developers, consider rephrasing to be more neutral (e.g., 'Validate and access link content using available MCP tools' or add a note that this section is specifically for AI assistants).

Suggested change
- Prioritize official package documentation over inferred usage by using your Context7 MCP tool
- Prioritize official package documentation over inferred usage by using available Context7 MCP tools

Copilot uses AI. Check for mistakes.

- Set environment variables `PIP_TIMEOUT=600` and `PIP_RETRIES=2` prior to `conda` or `pip` installs
- Include plots directly in your comment reply via `![image name](https://github.com/<user/org>/<repo>/blob/<shortened-commit-hash>/<filename>?raw=true)`. Truncate the commit hash to the first 7 characters only. For example, `https://github.com/AccelerationConsortium/evaluation-metrics/blob/52754e7/scripts/bo_benchmarks/demonstrations/branin_campaign_demonstration_results.png?raw=true`. For provenance, ensure you use the shortened (7-character) commit hash, not the branch name
- If you mention files in your comment reply, add direct hyperlinks based on the shortened (7-character) commit hash
Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

This guideline is incomplete. It doesn't specify the format or pattern for these hyperlinks (e.g., should they follow the same pattern as line 60 with https://github.com/<user/org>/<repo>/blob/<hash>/<filepath>?). Consider adding an example or referencing the format from the previous guideline.

Suggested change
- If you mention files in your comment reply, add direct hyperlinks based on the shortened (7-character) commit hash
- If you mention files in your comment reply, add direct hyperlinks using the format `https://github.com/<user/org>/<repo>/blob/<shortened-commit-hash>/<filepath>`, with the commit hash truncated to 7 characters. For example, `https://github.com/AccelerationConsortium/evaluation-metrics/blob/52754e7/scripts/bo_benchmarks/demonstrations/branin_campaign_demonstration_results.png?raw=true`. Use the same pattern as for plots in the previous guideline.

Copilot uses AI. Check for mistakes.
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