All skills
onmax avatar

/setup-for-oss

@7e0cb91

Review and bootstrap open-source repo health (OSS) by auditing or scaffolding README, CONTRIBUTING, CODE_OF_CONDUCT, LICENSE, SECURITY, GitHub templates, CI workflows, Renovate, publishing (pkg-pr-new + npm Trusted Publishing), linting/formatting, Changesets, and automation. Use when asked to review OSS setup, check OSS health, or set up/add OSS files and workflows.

  • 7 files
  • 17 KB
  • Updated 8 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/onmax/claude-config/setup-for-oss

This session only. Nothing lands on disk.

referencesci-workflows.md

≈792 tokens on demand. Your agent reads this file only when SKILL.md points to it.

CI workflows

Use these templates as starting points. Ensure each check runs as a separate job in ci.yml.

.github/workflows/autofix.yml

name: autofix.ci
on:
  pull_request:
permissions: {}

jobs:
  autofix:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: autofix-ci/action@v1

.github/workflows/ci.yml

name: ci
on:
  pull_request:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: latest
          cache: pnpm
      - run: corepack enable
      - run: pnpm install
      - run: pnpm run build

  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: latest
          cache: pnpm
      - run: corepack enable
      - run: pnpm install
      - run: pnpm run lint

  typecheck:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: latest
          cache: pnpm
      - run: corepack enable
      - run: pnpm install
      - run: pnpm run typecheck

  test:
    if: ${{ false }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: latest
          cache: pnpm
      - run: corepack enable
      - run: pnpm install
      - run: pnpm run test

Notes:

  • Replace pnpm commands with npm/yarn/bun based on detected package manager.
  • Enable the test job only if tests exist.
  • For monorepos, scope commands (e.g., pnpm -r run build).

.github/workflows/semantic-pull-request.yml

name: semantic-pull-request
on:
  pull_request_target:
    types: [opened, edited, synchronize]
permissions:
  pull-requests: read

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: amannn/action-semantic-pull-request@v6
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/label-pr.yml

name: label-pr
on:
  pull_request_target:
    types: [opened, edited, synchronize]
permissions:
  pull-requests: write

jobs:
  label:
    runs-on: ubuntu-latest
    steps:
      - name: Label by conventional commit type
        uses: actions/github-script@v7
        with:
          script: |
            const title = context.payload.pull_request.title;
            const match = title.match(/^(\w+)(\(.+\))?:/);
            if (!match) return;
            const type = match[1];
            const map = {
              feat: 'feature',
              fix: 'bug',
              docs: 'docs',
              refactor: 'refactor',
              chore: 'chore',
              test: 'test',
              ci: 'ci',
              build: 'build'
            };
            const label = map[type] || type;
            await github.rest.issues.addLabels({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.payload.pull_request.number,
              labels: [label]
            });

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at 7e0cb91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 8 hours ago.

Activeupdated 8 months ago

README badge

README badge for onmax/claude-config/setup-for-oss