Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)33k Β· #8763

github-actions-creator

Fungsinya

Skill ini membuat berkas otomatisasi GitHub Actions untuk proyek dengan bahasa apa pun. Skill ini ditujukan untuk orang yang ingin kodenya diperiksa atau dirilis secara otomatis setiap kali mereka melakukan push.

Kapan dipakai

  • βœ“Saat Anda ingin pengujian berjalan otomatis pada setiap push atau pull request.
  • βœ“Saat Anda ingin proyek dibangun, di-lint, atau dipindai masalah keamanannya secara otomatis.
  • βœ“Saat Anda ingin rilis atau build Docker terjadi sesuai jadwal atau pada tag.

Link skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/github-actions-creator/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/github-actions-creator/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat alur kerja GitHub Actions yang menjalankan pengujian saya setiap kali saya membuka pull request.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memindai proyek Anda untuk mengetahui bahasanya, alur kerja yang sudah ada, dan alatnya, mengajukan pertanyaan klarifikasi bila perlu, lalu menulis berkas alur kerja yang siap produksi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

GitHub Actions Creator

You are an expert at creating GitHub Actions workflows. When the user asks you to create a GitHub Action, follow this structured process to deliver a production-ready workflow file.

Workflow Creation Process

Step 1: Analyze the Project

Before writing any YAML, scan the project to understand the stack:

  1. Check for language/framework indicators:

    • package.json β†’ Node.js (check for React, Next.js, Vue, Angular, Svelte, etc.)
    • requirements.txt / pyproject.toml / setup.py β†’ Python
    • go.mod β†’ Go
    • Cargo.toml β†’ Rust
    • pom.xml / build.gradle β†’ Java/Kotlin
    • Gemfile β†’ Ruby
    • composer.json β†’ PHP
    • pubspec.yaml β†’ Dart/Flutter
    • Package.swift β†’ Swift
    • *.csproj / *.sln β†’ .NET
  2. Check for existing CI/CD:

    • .github/workflows/ β†’ existing workflows (avoid conflicts)
    • Dockerfile β†’ container builds available
    • docker-compose.yml β†’ multi-service setup
    • vercel.json / netlify.toml β†’ deployment targets
    • terraform/ / pulumi/ β†’ infrastructure as code
  3. Check for tooling:

    • .eslintrc* / eslint.config.* β†’ ESLint configured
    • prettier* β†’ Prettier configured
    • jest.config* / vitest.config* / pytest.ini β†’ test framework
    • .env.example β†’ environment variables needed
    • Makefile β†’ build commands available

Step 2: Ask Clarifying Questions (if needed)

If the user's request is ambiguous, ask ONE focused question. Common clarifications:

  • "Create a CI pipeline" β†’ "Should it run tests only, or also lint and type-check?"
  • "Add deployment" β†’ "Where does this deploy? (Vercel, AWS, GCP, Docker Hub, etc.)"
  • "Set up tests" β†’ "Should tests run on PR only, or also on push to main?"

If the intent is clear, skip this step and proceed.

Step 3: Generate the Workflow

Create the .github/workflows/{name}.yml file following these rules:

File Naming

  • Use descriptive kebab-case names: ci.yml, deploy-production.yml, release.yml
  • For simple CI: ci.yml
  • For deployment: deploy.yml or deploy-{target}.yml
  • For scheduled tasks: scheduled-{task}.yml

YAML Structure Rules

name: Human-readable name        # Always include

on:                               # Use the most specific triggers
  push:
    branches: [main]              # Specify branches explicitly
    paths-ignore:                 # Skip docs-only changes when appropriate
      - '**.md'
      - 'docs/**'
  pull_request:
    branches: [main]

permissions:                      # Always set minimal permissions
  contents: read

concurrency:                      # Prevent duplicate runs on PRs
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  job-name:
    runs-on: ubuntu-latest        # Default to ubuntu-latest
    timeout-minutes: 15           # Always set a timeout
    steps:
      - uses: actions/checkout@v4 # Always pin to major version

Core Patterns by Use Case

CI (Test + Lint)

Trigger: pull_request + push to main Jobs: lint, test (parallel when possible) Key features: dependency caching, matrix testing for multiple versions

Deployment

Trigger: push to main (or release tags) Jobs: test β†’ build β†’ deploy (sequential with needs) Key features: environment protection, secrets for credentials, status checks

Release / Publish

Trigger: push tags matching v* or workflow_dispatch Jobs: test β†’ build β†’ publish β†’ create GitHub Release Key features: changelog generation, artifact upload, npm/PyPI/Docker publish

Scheduled Tasks

Trigger: schedule with cron expression Jobs: single job with the task Key features: workflow_dispatch for manual trigger too, failure notifications

Security Scanning

Trigger: pull_request + schedule (weekly) Jobs: dependency audit, SAST, secret scanning Key features: SARIF upload to GitHub Security tab, fail on critical

Docker Build & Push

Trigger: push to main + tags Jobs: build β†’ push to registry Key features: multi-platform builds, layer caching, image tagging strategy

Essential Actions Reference

Setup Actions (always pin to major version)

Action Purpose
actions/checkout@v4 Clone repository
actions/setup-node@v4 Node.js with caching
actions/setup-python@v5 Python with caching
actions/setup-go@v5 Go with caching
`actions/set
Pertanyaan umum

Apakah skill akan menghindari konflik dengan alur kerja saya yang sudah ada?

Ya. Skill memeriksa folder alur kerja yang ada terlebih dahulu untuk menghindari benturan.

Bahasa apa saja yang didukung?

Skill mendukung banyak bahasa, termasuk JavaScript, Python, Go, Rust, Java, Ruby, dan .NET.

Apakah skill bertanya sebelum menulis berkas?

Ya. Skill mengajukan pertanyaan klarifikasi jika proyek tidak menjelaskan tujuannya dengan jelas.

Detail

Deskripsi asli dari pembuat

Use when the user wants to create, generate, or set up a GitHub Actions workflow. Handles CI/CD pipelines, testing, deployment, linting, security scanning, release automation, Docker builds, scheduled tasks, and any custom workflow for any language or framework.

repo: davila7/claude-code-templates

Popularitas

Bintang GitHub
33k
Peringkat
#8763
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa