github-script

Official

Master JavaScript for GitHub Actions.

Authorgithubnext
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides developers in writing high-quality, robust JavaScript code for GitHub Actions using actions/github-script@v8, preventing common errors and ensuring reliable automation. It helps streamline the development of custom action logic.

Core Features & Use Cases

  • Standardized Logging: Use core.info, core.warning, and core.error for consistent and effective logging.
  • Input/Output Management: Learn to set action outputs (core.setOutput), export environment variables (core.exportVariable), and retrieve inputs (core.getInput).
  • Robust Error Handling: Implement core.setFailed for clear action failure reporting and proper error catching.
  • Step Summary Generation: Utilize core.summary.* functions to create rich, informative step summaries in Markdown.
  • Use Case: A developer needs to write a JavaScript action that processes an input and sets an output. This skill guides them to use core.getInput and core.setOutput correctly, along with proper error handling.

Quick Start

Consult the github-script skill to learn how to use core.info for logging and core.setOutput to define outputs in your GitHub Action JavaScript.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: github-script
Download link: https://github.com/githubnext/gh-aw/archive/main.zip#github-script

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository