Skip to content
Prompt

ensure-immutable-actions — Copilot Instructions

by joshjohanning

AI Summary

A GitHub Copilot instruction booster that helps developers write and maintain Node.js GitHub Actions with enforced code quality standards (ESLint, Prettier, Jest). It benefits teams building or modifying third-party actions who want immutable release validation and consistent code practices.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "ensure-immutable-actions — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/joshjohanning/ensure-immutable-actions

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

🛡️ GitHub Action that validates third-party actions in your workflows are using immutable releases

Project Overview

This is a Node.js GitHub Action template with ESLint, Prettier, Jest testing, and ncc bundling. Follow these guidelines when making changes.

GitHub API Usage

• Use @octokit/rest for REST API calls • Use @actions/github for context and helpers • Handle rate limiting and authentication errors • Cache API responses when appropriate • Use pagination when necessary

ESLint Configuration

• Follow the existing ESLint configuration in eslint.config.js • Use ES modules (import/export) consistently • Prefer const over let when variables don't change • Use descriptive variable names and JSDoc comments for functions • Handle errors gracefully with try/catch blocks

Prettier Formatting

• Code is automatically formatted with Prettier • Run npm run format:write to format all files • Use single quotes for strings unless they contain single quotes • Line length limit is enforced by Prettier config

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
0 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Issues1
Updated2mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more