create-workflow

Creates workflow state machines and content versioning for DaaS collections.

Updated May 27, 2026
One-click install
npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill create-workflow-rkaaaa404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-workflow
Source: https://github.com/Rkaaaa404/cyberhack-SYDT/tree/main/.agents/skills/create-workflow
Command: npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill create-workflow-rkaaaa404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up content lifecycles like draft-to-published approval flows in DaaS requires coordinating collection fields, workflow definitions, assignments, and UI components, and small misconfigurations (like a missing m2o special flag) cause silent failures that are hard to debug. ## Core Features & Use Cases - Workflow Definition Setup: Creates state machines in daas_wf_definition with states, commands, policies, and actions, from simple draft/published flows to multi-level approvals. - Collection Field Configuration: Adds the required workflow_instance and workflow_state fields with correct meta attributes, plus a Supabase migration to keep local databases in sync. - Role-Gated Transitions: Locks specific commands to roles by wiring policies through daas_access so only authorized users can approve or publish. - Use Case: A content team needs articles to move from Draft to Review to Published with only editors allowed to approve; this skill creates the fields, definition, assignment, and WorkflowButton UI, then verifies auto-instance creation works. ## Quick Start Ask the AI to create a review workflow for the articles collection with draft, review, and published states.

Frequently Asked Questions about create-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an approval workflow for a DaaS collection?▼

Add workflow_instance and workflow_state fields to the collection, create a workflow_json definition in daas_wf_definition, then link them with a daas_wf_assignment row. Finally add the WorkflowButton component to your UI so users can execute transitions.

How do I restrict a workflow transition to a specific role?▼

Create a policy, link it to the role via daas_access, and add the resulting access UUID to the command's policies array in workflow_json. Users holding any listed policy can run that command; empty policies mean anyone with write access can.

Why is workflow_instance null on newly created items?▼

The workflow_instance field is missing the special: ["m2o"] meta attribute, so the system does not recognize it as a relation to daas_wf_instance. Update the field meta to include special: ["m2o"] and confirm the assignment row uses the workflow field name.

Can I use an existing status field alongside workflow_state?▼

The old field must be hidden and its required flag dropped, since DaaS cannot delete field metadata via MCP. Then migrate all consumers such as badges, filters, and archive props to workflow_state, or item creates will fail with 400 errors.

What workflow patterns does DaaS support?▼

Supported patterns include simple draft/published, content review with approve and reject, multi-level approval chains like manager then director review, and version-based workflows where each content version carries its own workflow state.