github-script
Installation
SKILL.md
GitHub Action Script Best Practices
This skill provides guidelines for writing JavaScript files that run using the GitHub Action actions/github-script@v8.
Important Notes
- This action provides
@actions/coreand@actions/githubpackages globally - Do not add import or require for
@actions/core - Reference documentation:
Best Practices
- Use
core.info,core.warning,core.errorfor logging, notconsole.logorconsole.error - Use
core.setOutputto set action outputs - Use
core.exportVariableto set environment variables for subsequent steps - Use
core.getInputto get action inputs, withrequired: truefor mandatory inputs - Use
core.setFailedto mark the action as failed with an error message
Related skills
More from github/gh-aw
github-mcp-server
GitHub MCP Server Documentation
43developer
Developer Instructions for GitHub Agentic Workflows
38dictation instructions
Instructions for fixing speech-to-text errors and improving text quality in gh-aw documentation and workflows
33javascript-refactoring
Instructions for refactoring JavaScript code into separate files
32github-pr-query
Query GitHub pull requests efficiently with jq argument support for filtering
31documentation
Documentation Brief description for SEO and navigation
30