github-script
Best practices for writing JavaScript code for GitHub Actions using github-script
Skill by kaushal-waygood
Chalk Labs
Need help deploying github-script?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kaushal-waygood-github-script
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
github-script- Description
- Best practices for writing JavaScript code for GitHub Actions using github-script
- License
- MIT
- Instructions
- 50 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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/core` and `@actions/github` packages globally
- Do not add import or require for `@actions/core`
- Reference documentation:
- https://github.com/actions/toolkit/blob/main/packages/core/README.md
- https://github.com/actions/toolkit/blob/main/packages/github/README.md
## Best Practices
- Use `core.info`, `core.warning`, `core.error` for logging, not `console.log` or `console.error`
- Use `core.setOutput` to set action outputs
- Use `core.exportVariable` to set environment variables for subsequent steps
- Use `core.getInput` to get action inputs, with `required: true` for mandatory inputs
- Use `core.setFailed` to mark the action as failed with an error message
## Step Summary
Use `core.summary.*` function to write output the step summary file.
- Use `core.summary.addRaw()` to add raw Markdown content (GitHub Flavored Markdown supported)
- Make sure to call `core.summary.write()` to flush pending writes
- Summary function calls can be chained, e.g. `core.summary.addRaw(...).addRaw(...).write()`
## Common Errors
- Avoid `any` type as much as possible, use specific types or `unknown` instead
- Catch handler: check if error is an instance of Error before accessing message property
```js
catch (error) {
core.setFailed(error instanceof Error ? error : String(error));
}
```
- `core.setFailed` also calls `core.error`, so do not call both
## Typechecking
Run `make js` to run the typescript compiler.
Run `make lint-cjs` to lint the files.
Run `make fmt-cjs` after editing to format the file.From kaushal-waygood/agentic-self-healing-ci, MIT.
More from kaushal-waygood/agentic-self-healing-ci
- 0.401score
gh-agent-session
kaushal-waygood
GitHub CLI Agent Session Extension
SkillDFreshness: DClaude Code +9 - 0.401score
gh-agent-task
kaushal-waygood
GitHub CLI Agent Task Extension
SkillDFreshness: DClaude Code +9 - 0.401score
github-mcp-server
kaushal-waygood
GitHub MCP Server Documentation
SkillDFreshness: DClaude Code +9 - 0.387score
Dictation Instructions
kaushal-waygood
Instructions for fixing speech-to-text errors and improving text quality in gh-aw documentation and workflows
SkillDFreshness: DClaude Code +9 - 0.208score
custom-agents
kaushal-waygood
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Dec 2, 2025 (11 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- gh.io/gh-aw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from kaushal-waygood
- 0.401score
gh-agent-session
kaushal-waygood
GitHub CLI Agent Session Extension
SkillDFreshness: DClaude Code +9 - 0.401score
gh-agent-task
kaushal-waygood
GitHub CLI Agent Task Extension
SkillDFreshness: DClaude Code +9 - 0.401score
github-mcp-server
kaushal-waygood
GitHub MCP Server Documentation
SkillDFreshness: DClaude Code +9 - 0.387score
Dictation Instructions
kaushal-waygood
Instructions for fixing speech-to-text errors and improving text quality in gh-aw documentation and workflows
SkillDFreshness: DClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get github-script running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
github-script skill. Agent Mart. https://agentmart.dev/skills/kaushal-waygood-github-script (last updated 2026-10-24)