Created pit.crew.style.agent agent and updated pit.crew.schema#713
Created pit.crew.style.agent agent and updated pit.crew.schema#713lscalabrini01 wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s GitHub Copilot CLI custom agents documentation and agent definitions by adding a new code-style enforcement agent and expanding/refining the PIT schema generator agent guidance.
Changes:
- Added a new
pit.crew.code.styleagent definition for enforcing Go test code style conventions. - Expanded
pit.crew.schemaagent instructions (rules + broader list of referenced test/schema locations). - Updated
.github/agents/README.mdto document the new code-style agent and how to invoke it.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/agents/README.md |
Documents the new code-style agent in the custom agents list. |
.github/agents/pit.crew.schema.agent.md |
Refines PIT schema agent front matter and adds explicit schema-generation rules + more referenced suites. |
.github/agents/pit.crew.code.style.agent.md |
Introduces a new agent file containing code-style checklist and reference test files. |
Comments suppressed due to low confidence (1)
.github/agents/pit.crew.code.style.agent.md:90
- The linter checklist contradicts the earlier logging guidance: it says not to use
t.Log()for logging, but later suggests using “the testing package” as an alternative tofmt.Print*. Pick a single standard to avoid sending mixed guidance to agent users.
### Linter compliance
* No `time.Sleep` calls — use appropriate polls and watches instead.
* No `fmt.Print*` calls — use `logrus` or the `testing` package.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ts into qa-issue_pitcrew-agent
006ce1a to
7a09611
Compare
hamistao
left a comment
There was a problem hiding this comment.
Looks good but I included some suggestions
| ## Checklist | ||
|
|
||
| ### File and package structure | ||
| * Helper functions specific to a test package must live in a separate file that does **not** end in `_test.go`. |
There was a problem hiding this comment.
Maybe include some direction on where these functions should live, or give an example
| ### Naming conventions | ||
| ### Naming conventions |
| * Automatic cleanup registration (via `session.Cleanup()`) is required. | ||
|
|
||
| ### Helper functions | ||
| * Default to returning an `error` instead of accepting a `*testing.T` parameter. |
There was a problem hiding this comment.
We can point out some exceptions here perhaps. Like when additional logging should be included as part of the function.
This PR updates the repository’s GitHub Copilot CLI custom agents documentation and agent definitions by adding a new code-style enforcement agent and expanding/refining the PIT schema generator agent guidance.
Changes: