/aictrl:create-workflowfrom aictrl
Creates and validates aictrl.dev workflow v2 YAML files with typed parameters, inline tasks, conditions, loops, retries, triggers, and approval gates. Guides authoring and optional Git-based publication.
Ships in aictrl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Author a reviewable .aictrl/workflows/<kebab-name>.yaml file in its source repository. One workflow can run in several repositories selected in Workflow Studio settings. Workflow v2 with inline task nodes is the default because it keeps task configuration portable in Git.
This skill has two deliberately separate outcomes:
Determine the requested mode before editing:
Inspect repository guidance and existing direct children of .aictrl/workflows/. Reuse established naming and parameter conventions; never create nested workflow directories.
Clarify the intended trigger, typed inputs, stages, outputs, external side effects, failure behavior, cost/time bounds, loops, and human approval points. Ask only when a missing decision changes safety or outcome.
Read reference/authoring-guide.md and reference/workflow.schema.json. Use only skills and workflows known to be available in the target organization or supplied by the user; version-pin every resolvable reference. Do not invent unresolved dependencies.
reference/examples/issue-to-reviewed-pr.yaml.
Change only the values it marks ADAPT (name, label, base branch,
skills). Inside the prompts, only replace the base branch. Do not rewrite
them otherwise; they encode fixes from failed runs.Check whether an existing organization workflow already does the requested work before choosing a new kebab-case filename and workflow name. If the path exists, show the conflict and obtain confirmation before replacing it.
repositories: key in the
file is a validation error.<repo>-implement-issue-from-ai-fix) to distinguish
the variant. If only the repository differs, explain the settings change
and stop without creating a duplicate file.Author schemaVersion: aictrl/workflow/v2 by default:
task nodes for portable skill-backed work;skill references when a resolvable version is available;model on a task/template node, or defaults.model for the workflow, only when the user asks for a specific model;{ from: gate, afterWave };taskType: code-review node exactly one parameter,
{ type: pull-request, required: true }, mapped to the PR. aictrl and the
bundled validator reject any other parameter;issue-url, repository); a branch name or PR body
alone is never proof. A blocked step posts Workflow blocked: <reason-code>, with no URL, PR link or quoted issue, PR or branch text;
repeat that rule word for word in every node that posts, because each
agent reads only its own prompt;taskType: code-review, declare findings: json only. aictrl adds
maxSeverityRank, which is null for an empty review; gate later steps on
the null-guarded findings (see the guide's task node section);closedByPullRequestsReferences, not linkedBranches. GitHub drops a
createLinkedBranch branch from linkedBranches once its PR opens, and
closedByPullRequestsReferences lists only PRs into the default branch
(with another base branch, tell the user a re-run opens a new PR).Run the bundled local validator, fixing errors and re-running until schema and static DAG checks pass. This command needs only Node and npm and installs dependencies in npm's cache, leaving the user's repository untouched:
npx --yes -p ajv@8 -p js-yaml@4 -- node path/to/create-workflow/validate.mjs .aictrl/workflows/<name>.yaml
Local validation proves structure and DAG soundness only. Organization-scoped checks (model, template, workflow and skill references, input mappings and conditions, and workflow name ownership) run when git sync imports the file. Tell the user which of these the file depends on, such as the skills it names, so they can confirm those exist.
Show the created path, inputs, stages, side effects, approvals, limits, unresolved references, and the local validator result: passed, failed, or not run. Say how the file goes live: aictrl syncs .aictrl/workflows/ automatically about 20 s after the file reaches the repository's default branch (a merge or a direct push). There is no manual sync step; do not ask the user to run one. A file on any other branch has no effect.
If the request was authoring only, stop with a reviewable YAML file. Do not publish, start, commit, push, merge, or deploy unless the user separately authorizes that action.
Use this section only when the user explicitly requested publication.
execute-workflow only if the user separately asks to run the published workflow.Always report:
passed, failed, or
not run), including diagnostics and why validation did not run, if applicable;Only report published after confirming the import; include its observed
workflow identifier/version when available. State whether any run was started;
authoring and publication do not start one.
schemaVersion: aictrl/workflow/v2
name: implement-change
parameters:
- { name: repository, type: repository, required: true }
- { name: issue-id, type: number, required: true, validation: { min: 1 } }
nodes:
- id: implement
type: task
skill: [email protected]
taskType: general
prompt: Implement the requested issue and produce a merge-ready pull request.
timeoutMinutes: 10
parameters:
- { name: repository, type: repository, required: true }
- { name: issue-id, type: number, required: true, validation: { min: 1 } }
inputs:
repository: { from: input, name: repository }
issue-id: { from: input, name: issue-id }
outputs:
pull-request-url: string
task nodes for new portable task logic; retain v1-compatible node types only when referencing an existing template or workflow is intentional.Built by aictrl.dev. This skill teaches the workflow; aictrl operationalizes it — grounded in your backlog, team standards, and codebase knowledge graph. See how →
SPEC.md (opens in a new tab)reference/authoring-guide.md (opens in a new tab)reference/examples/inline-review-fix.yaml (opens in a new tab)reference/examples/issue-to-reviewed-pr.yaml (opens in a new tab)reference/examples/pr-review-and-triage.yaml (opens in a new tab)reference/examples/review-fix-loop.yaml (opens in a new tab)reference/v1/workflow.schema.json (opens in a new tab)reference/workflow.schema.json (opens in a new tab)validate-env.mjs (opens in a new tab)validate.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/code-reviewReview the exact head revision of a pull request for actionable correctness, security, reliability, performance, and test findings without modifying code. Use when the user says "review this PR", "do a code review", "find defects in this change", or provides a pull or merge request identifier./create-bugCreate an evidence-backed bug report with reproduction, expected and actual behavior, impact, code context, and a regression-test requirement. Use when the user says "file a bug", "report this defect", "turn these symptoms into a ticket", or describes broken or regressed behavior./create-issueCreate a code-grounded engineering story or task with scope, acceptance criteria, test expectations, risks, and open questions. Use when the user says "create an issue", "open a ticket", "make a backlog item", or describes a feature or chore that should be tracked; delegate defects to create-bug.npx claudepluginhub aictrl-dev/skills --plugin aictrlOther plugins' skills for the same job