fix-linting-types-on-pr

Fix linting and TypeScript errors on GitHub pull requests.

Updated May 26, 2026
One-click install
npx skills add https://github.com/anukkrit149/anukkrit-skills --skill fix-linting-types-on-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-linting-types-on-pr
Source: https://github.com/anukkrit149/anukkrit-skills/tree/main/cloud/skills/fix-linting-types-on-pr
Command: npx skills add https://github.com/anukkrit149/anukkrit-skills --skill fix-linting-types-on-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates failing CI checks by automatically resolving linting and TypeScript type errors directly on a pull request.

Core Features & Use Cases

  • PR checkout with fork support: Uses GitHub CLI to check out both same-repo and fork-based PRs reliably via gh pr checkout.
  • Deterministic maintenance workflow: Installs dependencies, compiles the repo to generate needed TS declarations, runs lint, then runs a TypeScript type-check to identify remaining issues.
  • Minimal, targeted changes: Stages only the files you edited, avoiding broad refactors while fixing issues that are clearly lint or TS related.

Use it when your PR has red checks due to formatting/lint failures or strict-mode TypeScript issues and you want the maintainer to get back to green without manual back-and-forth.

Quick Start

Ask the assistant to fix the linting and TypeScript errors on PR number 12345.

Frequently Asked Questions about fix-linting-types-on-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix linting and TypeScript errors on a GitHub pull request?

To fix linting and TypeScript errors on a GitHub pull request, an automated workflow checks out the branch, runs yarn lint and Nx type checks, then commits the corrected files. This restores CI checks to green automatically.

Can I run an automated lint fix on a forked PR without failing GitHub Actions permissions?

Yes, automated lint fixes can be applied to forked PRs. The process utilizes the GitHub CLI to reliably check out fork-based pull requests, allowing local linting and TypeScript checks to run and push fixes back successfully.

What is the process to resolve Nx TypeScript check failures in CI?

Resolving Nx TypeScript check failures involves installing dependencies, compiling the repository to generate TS declarations, and running a targeted type-check. The workflow identifies remaining issues and commits only the modified files to pass CI.

Does this automated PR fix workflow support yarn and Nx monorepos?

Yes, this workflow supports yarn and Nx monorepos by running yarn install and yarn nx run-many -t check. It specifically targets formatting and strict-mode TypeScript issues within the Nx architecture to clear failing CI pipelines.

Will an automated lint and TypeScript fix modify unrelated files in my pull request?

No, automated lint and TypeScript fixes apply minimal and targeted changes. The workflow stages only the files you edited or that require lint corrections, avoiding broad refactors to keep your pull request focused on its intended changes.