From github
This skill should be used when the user wants to configure actionlint CI on a repository to automatically lint GitHub Actions workflow files on push and pull request events using reviewdog/action-actionlint. Activates on: "actionlint", "setup actionlint", "configure actionlint", "lint actions", "lint workflows", "lint github actions", "action linter", "workflow linting", "configurare actionlint", "lint azioni github", "lint workflow github".
npx claudepluginhub fabn/claude-plugins --plugin githubThis skill uses the workspace's default tool permissions.
Configures [actionlint](https://github.com/rhysd/actionlint) CI on any repository using [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint). The workflow lints `.github/workflows/` files on push and pull request, reporting errors inline on PRs via reviewdog.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Configures actionlint CI on any repository using reviewdog/action-actionlint. The workflow lints .github/workflows/ files on push and pull request, reporting errors inline on PRs via reviewdog.
ls, cat — detect existing setup in .github/workflows/reference/workflow-template.md — for the workflow YAML template and configuration notesRun the following commands to inspect the current state of .github/workflows/:
ls .github/workflows/ 2>/dev/null
cat .github/workflows/actionlint.yml 2>/dev/null
cat .github/workflows/actionlint.yaml 2>/dev/null
Branch based on what is found:
Detect the default branch by running:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||'
If detection fails, default to main.
Ask via AskUserQuestion with the following options. Show the detected branch and recommended defaults:
Target branch (default: detected branch):
main)Fail level — the severity at which actionlint causes the check to fail:
error (recommended) — only errors fail the check; warnings are reported but non-blockingwarning — both errors and warnings fail the checkStore the choices for use in Steps 3 and 4.
Before writing any files, present a summary table via AskUserQuestion. Do NOT write any files before this confirmation.
| File | Action | Key config |
|---|---|---|
.github/workflows/actionlint.yml | Create | Branch: main; fail level: error; reporter: auto-detect (PR check / push check) |
Populate the "Key config" column with the actual choices the user made. Ask: "Create this file?" with options:
Read reference/workflow-template.md and locate the ## Workflow Template section. Then generate the workflow file:
.github/workflows/actionlint.yml:
Adapt the template as follows:
main with the user's choice in both the push.branches and pull_request.branches arrayserror with the user's choice in the fail_level inputWrite the file using the Write tool. If .github/workflows/ does not exist, create it first with mkdir -p .github/workflows.
Stage the generated file:
mcp__git__git_add([".github/workflows/actionlint.yml"])
Propose a plain-English commit message (no conventional prefixes). Examples:
Confirm the message with the user via AskUserQuestion, then commit:
mcp__git__git_commit(message)
If mcp__git__git_commit fails, fall back to:
git add .github/workflows/actionlint.yml
git commit -m "Add actionlint CI workflow"
Present a final summary showing:
.github/workflows/."| Situation | Action |
|---|---|
.github/workflows/ directory does not exist | Create it with mkdir -p .github/workflows before writing |
| Existing actionlint workflow found | Show current config, offer reconfigure or exit |
| Default branch detection fails | Fall back to main, mention it to the user |
mcp__git__git_commit fails | Fall back to Bash(git add ... && git commit -m "...") |
| User cancels at confirmation step | Abort gracefully; no files written |
/github:setup — Verify prerequisites (gh CLI, authentication, MCP token)/github:feature — Create a branch, commit, push, and open a pull requestreference/workflow-template.md — Complete workflow YAML template, configuration notes, and local usage instructions