Skip to content

Add CI skills#7138

Merged
dmerand merged 1 commit intomainfrom
dlm-cli-ci-skills
Apr 1, 2026
Merged

Add CI skills#7138
dmerand merged 1 commit intomainfrom
dlm-cli-ci-skills

Conversation

@dmerand
Copy link
Copy Markdown
Contributor

@dmerand dmerand commented Apr 1, 2026

What

Add repo-local CI guidance under .agents/skills/ for Shopify CLI:

  • cli-pre-submit-ci
  • _shared/shopify-cli-ci-repo-contracts.md

Also point .claude/skills at .agents/skills.

Why

Agents working in this repo keep rediscovering the same pre-submit CI behavior:

  • workflow definitions matter more than memory
  • generated outputs are sometimes part of the CI contract
  • broad local validation is often unnecessary for narrow PRs
  • docs/config/wiring-only changes should stay lightweight unless the diff suggests otherwise

This change preserves the high-value pre-submit guidance in a reusable repo-local skill without over-encoding CI triage that the model can usually infer on its own.

How

  • add a pre-submit skill that derives the minimal recommended checks from workflow definitions, dev.yml, package.json, and helper scripts
  • keep PR-time behavior advisory by default so agents suggest checks before submission rather than running a full local workflow automatically
  • keep shared repo-specific CI facts in _shared/shopify-cli-ci-repo-contracts.md
  • use .agents/skills as the canonical in-repo location and keep .claude/skills as a compatibility symlink

Copy link
Copy Markdown
Contributor Author

dmerand commented Apr 1, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dmerand dmerand marked this pull request as ready for review April 1, 2026 00:38
@dmerand dmerand requested a review from a team as a code owner April 1, 2026 00:38
Copilot AI review requested due to automatic review settings April 1, 2026 00:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two repo-local CI “skills” (pre-submit guidance and CI triage) for Shopify CLI agents, plus shared repo-contract notes, and repoints .claude/skills to the new canonical .agents/skills location.

Changes:

  • Add cli-pre-submit-ci skill to derive minimal pre-submit checks from workflow/dev.yml/package.json contracts.
  • Add cli-ci-triage skill to map broad CI failures to the real failing job/shard and recommend a single next action.
  • Add shared _shared/shopify-cli-ci-repo-contracts.md and point .claude/skills at .agents/skills for compatibility.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
.claude/skills Compatibility pointer intended to route skills lookup to .agents/skills.
.agents/skills/cli-pre-submit-ci/SKILL.md New pre-submit guidance skill focused on minimal checks + staging guidance.
.agents/skills/cli-ci-triage/SKILL.md New CI triage skill with GH CLI workflow-to-job drilldown and classification.
.agents/skills/_shared/shopify-cli-ci-repo-contracts.md Shared repo-specific CI contract facts referenced by both skills.
Comments suppressed due to low confidence (1)

.claude/skills:1

  • PR description says this is a compatibility symlink. Please ensure this is committed as an actual symlink (git mode 120000) rather than a regular text file containing the target path; otherwise consumers that expect a symlink may not follow it correctly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +28 to +33
| Situation | Default response |
|---|---|
| User is at PR time (`submit`, `open`, `update`, `restack`) | advisory mode: suggest minimal checks, staging needs, and likely CI risk; ask before running anything substantial |
| User asks what to run before push | recommend the minimal high-signal checks implied by the workflow |
| User asks what to commit or stage | reproduce the relevant generator/check path, then inspect git status and diffs |
| User explicitly asks to run checks | run the minimal derived set, not the whole world |
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown table rows are written with double leading pipes (|| ...). On GitHub this renders as an extra empty column (or otherwise malformed table). Use standard pipe table syntax with a single leading pipe per row (e.g., | Situation | Default response |).

Copilot uses AI. Check for mistakes.
Comment on lines +43 to +50
| Class | Signal | Next action |
|---|---|---|
| Generated artifact drift | cleanliness assertion after generation; diff-only failure | reproduce the exact generator locally, inspect/stage output |
| Static check failure | lint, type-check, bundle, knip, schema freshness | run the exact local contract and fix deterministically |
| Aggregate/gate failure | visible failed check depends on other jobs | drill into the underlying failed job first |
| Deterministic test failure | same file/test fails repeatedly on completed runs | reproduce or narrow locally, then push a code/test fix |
| Likely flake | isolated shard failure with weak repetition or infra smell | recommend rerun or focused investigation before broad conclusions |
| Queue/cancellation noise | cancelled runs or long wait before job start | explain that this is not necessarily execution slowness or product failure |
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as the other skill: the tables use || which typically renders as an extra empty column / malformed table in GitHub Markdown. Switch to standard |-delimited table rows (single leading pipe).

Copilot uses AI. Check for mistakes.
Comment on lines +54 to +59
| Situation | Default advice |
|---|---|
| same file/test/check fails repeatedly on completed runs | push a fix |
| failure is isolated and weakly reproducible | rerun or investigate further |
| current run is still in progress and earlier runs were cancelled | wait |
| workflow contract is clearly unmet | push a fix |
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as the other skill: the tables use || which typically renders as an extra empty column / malformed table in GitHub Markdown. Switch to standard |-delimited table rows (single leading pipe).

Copilot uses AI. Check for mistakes.
@dmerand dmerand force-pushed the dlm-cli-ci-skills branch from eab4323 to 221b97b Compare April 1, 2026 00:46
@dmerand dmerand force-pushed the dlm-cli-ci-skills branch from 221b97b to 76cd34d Compare April 1, 2026 01:17
@dmerand dmerand mentioned this pull request Apr 1, 2026
5 tasks
Copy link
Copy Markdown
Contributor

@ryancbahan ryancbahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm open to trying this and seeing if it helps.

@dmerand dmerand added this pull request to the merge queue Apr 1, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 1, 2026
@dmerand dmerand added this pull request to the merge queue Apr 1, 2026
Merged via the queue into main with commit 943cb2c Apr 1, 2026
26 checks passed
@dmerand dmerand deleted the dlm-cli-ci-skills branch April 1, 2026 22:21
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.

3 participants