Skip to content

Add a repo-local pr-workflow skill; correct two stale command docs - #89

Merged
nuttytree merged 1 commit into
masterfrom
chore/repo-pr-workflow-skill
Aug 2, 2026
Merged

nuttytree merged 1 commit into
masterfrom
chore/repo-pr-workflow-skill

Conversation

@nuttytree

Copy link
Copy Markdown
Owner

The pr-workflow skill that surfaces in this working directory belongs to the sibling dev_esphome/ checkout and describes contributing to upstream ESPHome core — base on upstream/dev, fill in their PR template, prefix the title with [component], target esphome/esphome. Invoking it here produces the wrong workflow every time. commit_pr.md warned about this in prose, but nothing owned the name for this repo, so the name still resolved upstream.

Changes:

  • Add .claude/skills/pr-workflow/SKILL.md covering this repo's conventions: branch prefixes (f/, b/, chore/), base master, title and body style, the seven required checks and how long they take, and the squash-merge details. It defers the commit steps to /commit and the full cycle to /commit_pr rather than restating them.
  • Fix commit_pr.md, which said master has no required status checks and that a merge should go through immediately. Master now requires all seven CI checks with enforce_admins on, so a merge waits on CI. Its blanket "don't use the pr-workflow skill" warning is now scoped to the upstream one, with a concrete tell for distinguishing them.
  • Fix commit.md, which said to run python -m pre_commit because the pre-commit CLI is not on PATH. The reverse is now true — pre-commit is installed via pipx and shimmed at ~/.local/bin/pre-commit, and the python on PATH has no pre_commit module, so the documented command fails outright. Verified in both bash and PowerShell.

Verified with pre-commit run --all-files (all hooks pass). Docs and skill files only; no device configs or component code touched.

🤖 Generated with Claude Code

The `pr-workflow` skill that surfaces in this working directory belongs to
the sibling dev_esphome/ checkout and describes contributing to upstream
ESPHome core -- base on upstream/dev, fill in their PR template, prefix the
title with [component], target esphome/esphome. Invoking it here produces
the wrong workflow every time. commit_pr.md warned about this in prose, but
nothing owned the name for this repo, so the name still resolved upstream.

Add .claude/skills/pr-workflow/SKILL.md covering this repo's conventions:
branch prefixes, base master, title and body style, the seven required
checks and how long they take, and the squash-merge details. It defers the
commit steps to /commit and the full cycle to /commit_pr rather than
restating them.

Also fixes two things in the existing command docs that were no longer
true:

- commit_pr.md said master has no required status checks and that a merge
  should go through immediately. Master now requires all seven CI checks
  with enforce_admins on, so a merge waits on CI.
- commit.md said to run `python -m pre_commit` because the pre-commit CLI
  is not on PATH. The reverse is now true: pre-commit is installed via
  pipx and shimmed at ~/.local/bin/pre-commit, and the python on PATH has
  no pre_commit module, so the documented command fails outright.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@nuttytree
nuttytree merged commit 7901770 into master Aug 2, 2026
7 checks passed
@nuttytree
nuttytree deleted the chore/repo-pr-workflow-skill branch August 2, 2026 03:28
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.

1 participant