agentleFS
Alex72-pyAlex72-py/termux-elite/skills/github-actions/SKILL.md

github-actions

Skill2 starsChanged 57 days agoMITView on GitHub

Investigate a failed GitHub Actions run from Termux without exposing credentials or guessing at the workflow. Use when a workflow, CI job, or check failed, when it passes locally but fails on the runner, or before editing a file under .github/workflows. Do NOT use for local-only test failures with no CI involved, and do not suggest Docker-based local runners such as act, since Termux cannot run Docker.

  • Reads credentials

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-native-brownfield-migration, upgrading-react-native and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • maikotrindadeSkill

    react-native-brownfield-migration

    Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.

    Also in 4 projects that use this

  • maikotrindadeSkill

    upgrading-react-native

    Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.

    Also in 3 projects that use this

  • ihiteshguptaSkill

    terraform

    Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.

    Also in 4 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 5 projects that use this

  • akornmeierSkill

    docker

    Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before editing anything under .github/workflows.

    line 18
  2. Very specific:

    Never print GITHUB_TOKEN, cloud credentials, private keys, or full environment dumps.

    line 47
  3. Very specific:

    After a fix, run the relevant local command and state plainly what still depends on the hosted runner.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub Actions Investigation

Purpose

Turn a failed workflow run into a reproducible diagnosis: first failing step, failure class, and the smallest workflow or code change.

When to use

  • A run, job, or required check failed.
  • Tests pass in Termux and fail on the runner, or the reverse.
  • Before editing anything under .github/workflows.

When NOT to use

  • The failure is purely local and no workflow is involved.
  • As permission to push. Reading run metadata is safe; pushing a workflow change needs explicit intent.

Preconditions

Confirm the repository and commit with git remote -v (do not echo embedded tokens) and git rev-parse --short HEAD. Prefer gh run list --limit 5, gh run view <id>, and gh run view <id> --log-failed when gh auth status succeeds. Otherwise work from the run URL and pasted logs.

Decision tree

  1. Find the first failing step of the first failing job, not the final summary line.
  2. Classify it:
    • Runner or image drift: an ubuntu-latest tool version changed; pin the version or the image.
    • Action deprecation: an action pinned to an old major version running an unsupported runtime; bump the action.
    • Permissions: GITHUB_TOKEN is read-only by default in many repositories; add the narrowest permissions: block the job needs.
    • Secrets: not exposed to pull requests from forks.
    • Dependencies: unpinned or yanked versions, or a cache restored for the wrong key.
    • Matrix or platform: the runner is x86_64 glibc Linux; Termux is usually aarch64 Bionic. A local pass does not prove a runner pass.
    • Flaky or network: rerun once before changing code; record that it was a rerun.
  3. Reproduce deterministically without Docker: same language version, same command from the workflow run: step, same environment variables (names only).
  4. Propose the smallest change and show the exact file and lines before editing.
  5. A rejected push that mentions the workflow scope means the token cannot update workflow files. Use a token with that scope or push through gh auth with it granted; never paste the token anywhere.

Example

  • Situation: CI fails pushing a tag with a permission error while the same steps pass locally.
  • Without the skill: Re-runs the job several times and edits application code.
  • With the skill: Reads gh run view --log-failed, finds the first failing step, classifies it as a read-only GITHUB_TOKEN, and shows the narrowest permissions: block before editing.

Safety

Never print GITHUB_TOKEN, cloud credentials, private keys, or full environment dumps. Re-running a job and pushing workflow edits change shared state; do them only on request.

Verification

After a fix, run the relevant local command and state plainly what still depends on the hosted runner. Confirm with gh run list --limit 3 once the user has pushed.

Handoffs

  • git-credentials when gh or git authentication blocks the investigation or the push.
  • termux-network when gh cannot reach GitHub.
  • termux-environment when local-versus-runner differences need facts.
  • python-native-build when the same dependency failure reproduces locally.
  • node-native-build when the same Node dependency failure reproduces locally.

Report

Failed job and first failing step, failure class, evidence (one log line), the proposed change, and what a local run can and cannot prove.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.