Skip to content

Add Cursor CI-fix skill and gh/git/go rules#21020

Draft
pkcll wants to merge 1 commit intodevelopfrom
cursor-skill-fix-chainlink-ci
Draft

Add Cursor CI-fix skill and gh/git/go rules#21020
pkcll wants to merge 1 commit intodevelopfrom
cursor-skill-fix-chainlink-ci

Conversation

@pkcll
Copy link
Collaborator

@pkcll pkcll commented Feb 4, 2026

Summary

  • Add a Cursor skill to triage/fix Chainlink GitHub Actions CI failures (merge conflicts, gomod/gofmt, deterministic failures, flakes).
  • Add project-local Cursor rules for gh, git, and Go style/testing references.
  • Add .cursorignore baseline to avoid indexing secrets and heavy dependency dirs.

Usage

If CI is red, you can use the Cursor command /fix-chainlink-ci with a PR link or failing job/run link to triage and suggest the minimal fix.

  • Prereqs: authenticated gh CLI; local repo checkout (~/repos/chainlink)
  • Usage: /fix-chainlink-ci <PR URL | PR number | failing Actions job/run URL>
  • Loop: run → apply minimal fix (rebase / gofmt / gomod tidy / targeted test fix) → run again until green
  • Flakes: prefer rerunning failed jobs; avoid “retry-only” commits

Examples

  • /fix-chainlink-ci https://github.com/smartcontractkit/chainlink/pull/20708
  • /fix-chainlink-ci https://github.com/smartcontractkit/chainlink/actions/runs/<run-id>/job/<job-id>

@pkcll pkcll requested review from a team as code owners February 4, 2026 02:42
Copilot AI review requested due to automatic review settings February 4, 2026 02:42
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

👋 pkcll, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Contributor

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

This PR adds Cursor IDE configuration for triaging and fixing Chainlink CI failures, along with project-specific rules for Git, GitHub CLI, and Go development workflows.

Changes:

  • Added a Cursor skill (fix-chainlink-ci) with reference documentation, examples, and workflow guidance for handling GitHub Actions failures
  • Added Cursor rules for gh CLI usage, Git workflow safety, and Go coding standards
  • Added .cursorignore to exclude sensitive files and large dependency directories from indexing

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.cursorignore Excludes secrets, credentials, cloud config, and dependency directories from Cursor indexing
.cursor/skills/fix-chainlink-ci/reference.md Command reference for debugging Chainlink PR CI failures using gh and git
.cursor/skills/fix-chainlink-ci/examples.md Worked example demonstrating CI triage workflow for PR #20708
.cursor/skills/fix-chainlink-ci/SKILL.md Main skill definition with workflow for diagnosing and fixing CI failures
.cursor/rules/go.mdc Go coding guidelines for Chainlink including style, testing, and module management
.cursor/rules/git.mdc Git workflow rules covering safety, rebasing, staging discipline, and worktree usage
.cursor/rules/gh-cli.mdc GitHub CLI usage patterns for PR inspection, CI debugging, and API queries

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

- edit files, remove conflict markers, keep intended behavior
- `git add <files>`
- `git rebase --continue`
- If the rebase requires rewriting history, push with `--force-with-lease` (never plain `--force`). If session rules require it, propose the exact command and wait for explicit confirmation.
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The phrase 'If session rules require it' is ambiguous. Consider clarifying what 'session rules' means in this context or removing the conditional if it always requires confirmation.

Suggested change
- If the rebase requires rewriting history, push with `--force-with-lease` (never plain `--force`). If session rules require it, propose the exact command and wait for explicit confirmation.
- If the rebase requires rewriting history, push with `--force-with-lease` (never plain `--force`). If your organization’s or this project’s contribution policies require prior approval before force-pushing, propose the exact command and wait for explicit confirmation.

Copilot uses AI. Check for mistakes.
@pkcll pkcll marked this pull request as draft February 4, 2026 02:44
@pkcll pkcll requested a review from patrickhuie19 February 4, 2026 02:44
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@trunk-io
Copy link

trunk-io bot commented Feb 4, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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