Repository navigation
Conversation
`check-pr-failures` and `write-context-doc` list only the commands they run, so any other command asks first. Each `gh` call of `check-pr-failures` names `google/site-kit-wp`, so it works in a checkout whose remote is a fork. Its `gh api` calls pass `--method GET`, which its list allows. `AGENTS.md` gives the test commands of `implement-issue`, which run the tests of the changed files and end. `npm run test` runs Jest in watch mode, which never ends.
The skill runs the type check, the style lint and PHPStan on the files it changed, and the tests of each caller. Its fixers change those files alone. It checks a change in Storybook, in place of a hand-made copy of the styles. It fixes the code rather than the check, and reads why code was written before it changes that code. It lists only the commands it runs, and each GitHub read names the repository.
The review reads each changed file as the pull request has it, with the code that calls it. It takes lint and test results from the CI checks of the pull request. It reports a finding only where the code gives a wrong result, misses a stated need or breaks a written team rule. Each finding names the input and the line. A brief item built another way is a finding only where it breaks a criterion, removes what the code relies on or adds a risk. Any other such difference needs its reason in the pull request, or the review asks the author for it. Its checklist asks for the checks CI runs, and for checks kept as strict. It lists only the commands it runs, and each GitHub read names the repository.
A brief keeps each sentence to 25 words, writes the verb in place of a noun made from it, and gives each thing one name. It states each fact as checked in the code. An update of a brief already on the issue keeps each name, value, path, link and scope line, or says why one went. A Test Coverage line that says nothing is needed comes after the lines that add tests, in one line with no reason. The skill lists only the commands it runs, and each GitHub read names the repository.
Its criteria cover each state and reader the change reaches, such as loading, an error and a view-only user. They say a shared condition once. Before it writes an issue, the skill searches GitHub for one already filed on the same problem. Its steps to reproduce undo what an earlier visit changed. Its reply names user-facing copy, journeys or experiences that no design gives, for the Product Manager to approve. It takes the sentence, verb, name and fact rules of `write-implementation-brief`. It lists only the commands it runs, and each GitHub read names the repository.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the agent skill definition files and AGENTS.md to restrict allowed Bash commands to specific patterns, enforce the use of the --repo flag for GitHub CLI commands, and refine instructions for issue implementation, PR reviews, and brief writing. The review feedback correctly points out that several essential Git, npm, and Composer commands are missing from the allowed-tools lists in the check-pr-failures and implement-issue skills, offering concrete suggestions to include them.
The skill reruns a failing JS or PHP test locally to reproduce it.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related issue(s):
Relevant technical choices
allowed-toolsgaveBash, which let it run any shell command without asking. It now lists the commands the skill runs, so any other command, such as a push, asks first.google/site-kit-wp, so it reads this repository from a checkout whoseoriginis a fork. Eachgh apicall passes--method GET, becauseallowed-toolsallowsgh apionly with that flag, so a write still asks.git diff --word-diffshows the words that changed in a joined paragraph.AGENTS.mdgives the test commands ofimplement-issuein place ofnpm run test, which runs Jest in watch mode and never ends.write-implementation-briefandwrite-issue-requirementseach get the same four writing rules, because a tool loads only the skill that runs.PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist