Add detailed PR description skill#3
Merged
Conversation
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
This PR adds a new installable Agent Skill named
detailed-pr-description. The skill turns an ad hoc prompt for writing rich PR descriptions into a reusable workflow that tells agents how to inspect a PR, gather tracked repository context, write a self-contained PR body, include reviewer-focused gotchas and code snippets, and explicitly assess whether the branch's tests are strong enough to catch regressions.The only runtime surface added here is skill documentation and Codex/OpenAI skill metadata. There are no application code changes, no repository validator changes, and no new helper scripts.
What This PR Does
skills/detailed-pr-description/SKILL.md, an installable skill file with valid frontmatter and a complete workflow for writing or updating GitHub PR descriptions.skills/detailed-pr-description/agents/openai.yaml, so Codex/OpenAI surfaces can display and implicitly invoke the skill for PR-description work..context/as untracked scratch context that must be restated in the PR body when relevant,gh pr editwhen available.What This Improves
.context/notes.agents/openai.yaml.What This Does Not Do
.context/whengh pr editcannot update the PR.Important Context
skills/<skill-name>/SKILL.md. The new skill follows that convention withskills/detailed-pr-description/SKILL.md.nameexactly matches the parent directory, which is required byscripts/validate-skills.mjs.descriptionis the trigger surface for skill discovery. It explicitly mentions updating GitHub PR descriptions, self-contained change context, gotchas, follow-up work, code snippets, and test coverage assessment..context/is intentionally not tracked. The skill calls that out directly so future agents do not leave important review context only in local scratch files.scripts/,references/, orassets/directory. This workflow is judgment-heavy and repository-specific, so the reusable value is the procedure and output standard rather than deterministic local automation.Code To Review Closely
skills/detailed-pr-description/SKILL.mdThe frontmatter is what determines installability and discovery. Reviewers should confirm the skill name matches the folder and that the description is specific enough to trigger on PR-description requests without being so broad that it fires for unrelated GitHub work.
The core workflow is the most important part of the skill. It tells the agent to inspect tracked artifacts, treat
.context/as non-authoritative scratch space, and explicitly answer whether the tests are sufficient.The body template deliberately includes sections that the original prompt asked for, including non-goals, gotchas, code snippets, follow-up work, and test coverage. The outer fence uses four backticks so the example can safely contain an inner code fence.
skills/detailed-pr-description/agents/openai.yamlThis metadata makes the skill show up cleanly in Codex/OpenAI skill UI and allows implicit invocation when the user asks for this kind of PR-description work.
Gotchas, Risks, And Edge Cases
allow_implicit_invocation: trueis intentional because users often ask for "update the PR description" without naming the skill. Reviewers should still check whether the description is scoped tightly enough for that implicit trigger.gh pr editfor updates, but GitHub auth and network conditions remain external dependencies. The fallback path is to leave a draft in.context/pr-description.md.Not applicable.PyYAML; this PR useduv run --with pyyaml ...to avoid changing the repository's Python environment.Tests And Regression Coverage
Validation Run
uv run --with pyyaml python /Users/ben/.codex/skills/.system/skill-creator/scripts/quick_validate.py skills/detailed-pr-description: passed withSkill is valid!pnpm validate: passed withValidated 6 skills.pnpm skills add . --list --yes: passed and listed 6 available skills, includingdetailed-pr-description.Coverage Assessment
The current checks are partially sufficient for this branch.
They are strong enough for the mechanical contract of publishing a skill: they verify frontmatter shape, folder/name alignment, allowed installable location, description length constraints, OpenAI metadata presence, YAML validity, required interface fields, and local CLI discovery. For a docs-only skill addition, that is the highest-risk structural surface.
They are not strong enough to guarantee the skill's behavioral quality. They do not automatically prove that a future agent will gather enough PR context, include the right code snippets, make a sound regression-coverage judgment, preserve useful existing PR body content, or choose the right level of detail for every repository.
Regressions These Tests Should Catch
namestops matching thedetailed-pr-descriptiondirectory.agents/openai.yamlis missing, malformed, or lacks required display fields.policy.allow_implicit_invocationis present but not a boolean.Gaps And Recommended Follow-Up Tests
Workflow,Quality Bar, andFinal Response.pnpm skills add . --list --yesoutput if CLI discovery regressions have been recurring..context/assumptions.Follow-Up Work
agents/openai.yamlpolicy defaults if more skills should consistently allow or disallow implicit invocation.Screenshots, Rollout, Migrations, And Release Notes
mainpublishes the skill from this repository in the same way existing skills are published.detailed-pr-descriptionis available for agents that need to write or update detailed GitHub PR descriptions.