# Create Workflow

> Create Workflow is an Agent Skill for devops & security published in the OpenCTI-Platform/opencti repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when: scaffolding a new GitHub Actions CI/CD workflow, adding automation for tests, builds, releases, or security scans

- Skill name: `create-workflow`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/OpenCTI-Platform/opencti/blob/HEAD/.github/skills/create-workflow/SKILL.md
- Repository: OpenCTI-Platform/opencti (9,685 GitHub stars when collected)

## SKILL.md

# Create GitHub Action Workflow

## Prerequisites
- **Workflow Name**: e.g., "Review Security Scans"
- **Trigger**: e.g., `pull_request`, `push`
- **Job Steps**: e.g., checkout, install deps, run scan

## Procedure

### Step 1 — Create Workflow File
Create a new file in `.github/workflows/<workflow-name>.yml`.

```yaml
name: [Workflow Name]

on:
  [Trigger]:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: 'yarn'
      - run: corepack enable
      - run: yarn install --immutable
      - name: Run Scan
        run: [Command]
```

### Step 2 — Verify Job Dependencies
Ensure any required secrets or environment variables are available.

### Step 3 — Commit
Commit with format: `[CI] Add <workflow-name> workflow (#<issue-number>)`

---

Source: https://www.openparable.com/skill/devops-security/create-workflow (OpenParable). Cite the canonical URL above.
