Skip to content

build: run skills lint after Prettier in pre-commit - #460

Merged
joe-bell merged 2 commits into
mainfrom
claude/project-thread-uzjl5t
Oct 6, 2026
Merged

joe-bell merged 2 commits into
mainfrom
claude/project-thread-uzjl5t

Conversation

@joe-bell

@joe-bell joe-bell commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Requested by Joe · project thread

Description

Before: lint-staged ran pnpm lint:skills as its own entry, alongside the Prettier entry. When a skill file was staged, the lint could read it while Prettier was still rewriting it.

After: lint:skills runs inside the non-code Prettier entry, after prettier --write, and only when a skill input (skills/**, .agents/skills/** or skill-check.config.json) is staged. Other files get Prettier only. AGENTS.md describes the new order.

This also renames the snapshot directory in .github/rulesets/README.md to /tmp/cva-default-branch.

Additional context

lint-staged runs the commands in one entry in sequence, so the race can no longer happen. The change assumes skill inputs are non-code files, which is true today; the config comment says so.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Follow the Style Guide.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).

🤖 Generated with Claude Code

https://claude.ai/code/session_01G8Kd268BopJxWoW8pPYq7T


Generated by Claude Code

claude added 2 commits October 5, 2026 06:30
The owner migration commands wrote their snapshots under a directory
named after a tracking ticket. Name it after what it holds instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8Kd268BopJxWoW8pPYq7T
lint-staged runs separate config entries concurrently, and every skill
input also matches the entry that runs `prettier --write` on non-code
files, so `pnpm lint:skills` could read a skill while Prettier was
rewriting it. Run the skills lint from that entry instead, after
Prettier, and only when a staged file is a skill input.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8Kd268BopJxWoW8pPYq7T
@joe-bell joe-bell self-assigned this Oct 5, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cva 5538235 Commit Preview URL

Branch Preview URL
Oct 05 2026, 06:34 AM

@joe-bell
joe-bell marked this pull request as ready for review October 5, 2026 06:45
@joe-bell
joe-bell merged commit 939eb1b into main Oct 6, 2026
12 checks passed
@joe-bell
joe-bell deleted the claude/project-thread-uzjl5t branch October 6, 2026 12:57
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