github-actions

github-actions is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 0 tokens per session (935 once invoked), scanned A, original, MIT.

Rules for GitHub Actions workflow files, which describe automated jobs that run on GitHub when code changes or other events occur. They set the default machine image and recommend reusable workflow patterns.

In plain words
What is it for?
It guides CI configuration using the ubuntu-slim runner, reusable workflows, composite actions, and matrix jobs.
Why use it?
They keep automated checks consistent and avoid unnecessary duplicated configuration. They also define when a larger runner is justified.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/github-actions
Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-actions

README.md
[![agentmods](https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/github-actions.svg)](https://agentmods.dev/rules/hiromaily/go-crypto-wallet/github-actions)
Your own site
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/github-actions"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/github-actions.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00935
Opus 5 $0.00000 $0.00467
Sonnet 5 $0.00000 $0.00187
Haiku 4.5 $0.00000 $0.00093

Measured yesterday against content hash 346c5516c25d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github-actions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/github-actions.mdc · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Actions Workflow Rules

Overview

Rules for modifying GitHub Actions workflow files (.github/workflows/*.yml) in go-crypto-wallet.

Runner Configuration

Required Runner

Always use ubuntu-slim as the runner unless there is a specific reason to use another image.

# Good
runs-on: ubuntu-slim

# Avoid (unless specifically needed)
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

Why ubuntu-slim?

  • Faster startup time (smaller image)
  • Lower resource consumption
  • Contains essential tools for most CI tasks
  • Cost-effective for GitHub Actions minutes

Reference: GitHub Actions Runner Images

Available Runners

Image YAML Label Use Case
Ubuntu Slim ubuntu-slim Default choice - most CI tasks
Ubuntu 24.04 ubuntu-latest or ubuntu-24.04 When additional tools are required
Ubuntu 22.04 ubuntu-22.04 Legacy compatibility

Performance Best Practices

Avoid Duplication

  1. Reusable Workflows: Extract common patterns into reusable workflows
  2. Composite Actions: Create composite actions for repeated steps
  3. Matrix Strategy: Use matrix for parallel execution instead of duplicate jobs
# Good: Matrix strategy for parallel execution
strategy:
  matrix:
    go-version: ['1.22', '1.23']

# Avoid: Duplicate jobs for each version
jobs:
  test-go-122:
    ...
  test-go-123:
    ...

Caching

Always use caching for dependencies:

- uses: actions/cache@v4
  with:
    path: |
      ~/.cache/go-build
      ~/go/pkg/mod
    key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

Conditional Execution

Use path filters to avoid unnecessary runs:

on:
  push:
    paths:
      - '**.go'
      - 'go.mod'
      - 'go.sum'

Branch Configuration

Default Branch

This repository uses main as the default branch. Always use main (not master):

# Good
on:
  push:
    branches:
      - main

# Wrong
on:
  push:
    branches:
      - master

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 185 lines · 0 tokens per session scan A 346c5516c25d

Subscribe to this mod's changes

github-actions is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 935 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.