Files
pm-claude-skills/action/action.yml
T
mohitagw15856 51bf4be52f AI-powered tooling: GitHub Action, generate command, evals + leaderboard (#41)
Three features riding 2026 trends (agentic CI, codegen, evals), sharing one
dependency-free Anthropic client (bin/lib/anthropic.mjs).

1. GitHub Action (action/) — run any skill in a consumer repo's CI:
   uses: mohitagw15856/pm-claude-skills/action@main. Composite action +
   run.mjs (loads the bundled SKILL.md, calls the API, exposes result as a
   step output / file). Docs with auto-PR-description example.

2. generate command — `npx pm-claude-skills generate --from <url|file>` turns
   a team's docs into a SKILL.md following the authoring standard
   (bin/generate.mjs, wired into the CLI; needs ANTHROPIC_API_KEY).

3. Skill evals + Leaderboard — evals/run-evals.mjs runs each case across models
   and scores output with an LLM judge (structure/completeness/usefulness/
   grounding); scripts/build-leaderboard.mjs renders web/leaderboard.html
   (built in the Pages deploy, falls back to clearly-labelled example data).
   Linked from README, catalog, and playground.

Offline-testable parts verified (prompt building, skill loading, graceful
errors, leaderboard render). SkillCheck/audit/exports all green.


Claude-Session: https://claude.ai/code/session_016JWn5jRD5tcEFKrubjQ6Px

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-18 08:37:40 +01:00

52 lines
1.5 KiB
YAML

name: 'PM Skills — Run a Skill'
description: 'Run any pm-claude-skills SKILL.md in CI — auto PR descriptions, changelogs, release notes, code-review checklists, and more.'
author: 'Mohit Aggarwal'
branding:
icon: 'cpu'
color: 'purple'
inputs:
skill:
description: 'Skill name to run (e.g. pr-description-writer, changelog-generator, code-review-checklist).'
required: true
input:
description: 'The input/context text the skill should work on.'
required: false
input_file:
description: 'Read the input from this file instead of the `input` string.'
required: false
api_key:
description: 'Anthropic API key (store it as a secret).'
required: true
model:
description: 'Claude model id.'
required: false
default: 'claude-sonnet-4-6'
output_file:
description: 'If set, also write the result to this file.'
required: false
max_tokens:
description: 'Max output tokens.'
required: false
default: '4096'
outputs:
result:
description: 'The skill output (also use output_file for multi-line results).'
value: ${{ steps.run.outputs.result }}
runs:
using: composite
steps:
- id: run
shell: bash
run: node "$GITHUB_ACTION_PATH/run.mjs"
env:
INPUT_SKILL: ${{ inputs.skill }}
INPUT_INPUT: ${{ inputs.input }}
INPUT_INPUT_FILE: ${{ inputs.input_file }}
INPUT_API_KEY: ${{ inputs.api_key }}
INPUT_MODEL: ${{ inputs.model }}
INPUT_OUTPUT_FILE: ${{ inputs.output_file }}
INPUT_MAX_TOKENS: ${{ inputs.max_tokens }}