Skip to content
Back to skills

Write Ci Workflow

ASecurity

Create or change a GitHub Actions workflow in .github/workflows for Othrys. Covers what the workflow proves, triggers and scope selection that keep docs-only changes out of code checks, running safely on pull requests from forks, permissions, timeouts and concurrency, and checking a filter against real PR file lists. Read before adding or editing any workflow file.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 11, 2026
developmentrustnodegit

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add leonardourci/pnyx --skill write-ci-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Ci Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Ci Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leonardourci-write-ci-workflow/badge)](https://www.skillsdirectory.com/skills/leonardourci-write-ci-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-ci-workflow
description: Create or change a GitHub Actions workflow in .github/workflows for Othrys. Covers what the workflow proves, triggers and scope selection that keep docs-only changes out of code checks, running safely on pull requests from forks, permissions, timeouts and concurrency, and checking a filter against real PR file lists. Read before adding or editing any workflow file.
---

# Write a CI workflow

A check that runs on changes that cannot affect it, or fails for reasons unrelated to the change, teaches people to ignore red. Pick every trigger and permission on purpose.

- [ ] Follow [Verification](../../../docs/development.md#verification) for Othrys's scope policy. Say first what the workflow proves. Keep `Tests` on `pull_request` without path filters or an `edited` trigger, so every PR gets a scope decision and description edits start no gated runs.
- [ ] Treat every pull request as untrusted. Keep permissions read-only and `persist-credentials: false`. The scope job installs the selector without package lifecycle hooks. A PR that edits `tests.yml` or `deslop.config.json` changes its own scope; review those edits. Tests and builds wait for approval of the `ci` environment. A `pull_request_target` or `workflow_run` job must never check out or execute PR code.
- [ ] Set `timeout-minutes` on every job and a `concurrency` group per PR with `cancel-in-progress: true`, so a new push replaces the old run.
- [ ] Use a Node version the project supports and the pnpm version it pins, so CI fails for the same reasons a contributor's machine would.
- [ ] Before pushing, exercise the scope decision against real file lists from `gh pr view <number> --json files`: a merged docs-only PR must skip tests, and a PR that changes the checked source must choose full CI. Put both results in the PR description.
- [ ] Describe when the workflow runs and what it checks in `docs/development.md`, and update `CONTRIBUTING.md` if contributors see it as a PR check, in the same change.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.