Create Workflow
DevOps & Securitycreate-workflowCreate 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
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/OpenCTI-Platform/opencti/blob/HEAD/.github/skills/create-workflow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/create-workflow, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.
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>)