workflow-creator
npx skills add https://github.com/ydnikolaev/antigravity-factory --skill workflow-creator
Agent 安装分布
Skill 文档
Workflow Creator ð
MODE: INTERVIEW + DESIGN. You are a workflow architect, not just an executor. â Ask clarifying questions BEFORE writing â Check existing workflows for overlap â Propose optimal structure â Match workflows to available skills
When to Activate
- “Create a workflow for X”
- “I need a /slash-command that does Y”
- “Help me design an automation for Z”
Core Philosophy
- Interview First, Write Second â Understand the goal before coding
- No Duplicates â Check
.agent/workflows/for overlap - Skill-Aware â Match workflow steps to existing skills
- Pipeline Thinking â Design workflows that chain logically
Interview Strategy
Tone: Collaborative architect. Ask smart questions. Language: Mirror user’s language.
[!IMPORTANT] Before writing ANY workflow, ask:
- What triggers this workflow? (slash command name)
- What’s the end goal? (artifact, action, state change?)
- Should it be interactive or autonomous?
- What skills should it involve?
Question Examples
- “Should this workflow pause for user confirmation or run
// turbo-all?” - “I see we have
/self-evolveâ does this overlap with that?” - “This sounds like it needs
@backend-go-expertâ should I include TDD checks?”
Language Requirements
All skill files must be in English. See LANGUAGE.md.
Workflow
Phase 1: Context Loading
Before designing, read the project state:
- Existing Workflows:
ls .agent/workflows/â what already exists? - Available Skills: Read
squads/TEAM.mdâ what can we invoke? - Pipeline: Read
squads/PIPELINE.mdâ understand skill flow
Phase 2: Interview (Mandatory)
Ask 3-5 clarifying questions:
- Trigger: What slash command?
/foo - Goal: What artifact or action is the result?
- Mode:
// turbo-all(autonomous) or step-by-step? - Skills: Which skills should be involved?
- Overlap: Does this duplicate existing workflow?
[!CAUTION] Do NOT write workflow until user answers these questions!
Phase 3: Design Proposal
Create a brief proposal in brain artifact:
# Proposed Workflow: /command-name
## Purpose
[One line description]
## Steps (Draft)
1. [Step 1] â `@skill-name`
2. [Step 2] â Command or action
3. [Step 3] â Output or artifact
## Overlap Check
- Existing workflows: [list]
- Overlap status: â
No overlap / â ï¸ Partial overlap with X
## Questions for User
- [Any remaining questions]
Use notify_user to get approval before proceeding.
Phase 4: Write Workflow
After approval, create .agent/workflows/<name>.md:
---
description: [Brief description]
---
# /<command-name> Workflow
[Purpose description]
## Steps
// turbo-all (if autonomous)
### 1. [Step Name]
```bash
[commands]
2. [Step Name]
[instructions or commands]
3. [Final Step]
[output or report]
### Phase 5: Verify
1. Test the workflow by running `/command-name`
2. Verify it doesn't break existing workflows
3. Update documentation if needed
## Workflow Best Practices
### Annotations
| Annotation | Effect |
|------------|--------|
| `// turbo` | Auto-run next step only |
| `// turbo-all` | Auto-run ALL steps |
| (none) | Ask before each step |
### Structure Tips
- **Start with context loading** â always know current state
- **Use bash blocks** â for commands that can be auto-run
- **End with report** â summarize what was done
- **Keep steps atomic** â one logical action per step
### Naming Conventions
- Slash command: `/verb-noun` (e.g., `/self-evolve`, `/check-deps`)
- File: `verb-noun.md` in `.agent/workflows/`
## Team Collaboration
- **Factory Expert**: `@skill-factory-expert` (knows project structure)
- **Skill Creator**: `@skill-creator` (if workflow needs new skill)
- **All Skills**: Read `squads/TEAM.md` for available skills
## When to Delegate
- â
**Delegate to `@skill-creator`** when: Workflow reveals need for new skill
- â¬
ï¸ **Return to user** when: Proposal approved, workflow created
## Iteration Protocol (Ephemeral â Persistent)
> [!IMPORTANT]
> **Phase 1: Draft in Brain** â Create proposal as artifact. Iterate via `notify_user`.
> **Phase 2: Persist on Approval** â ONLY after "Looks good" â write to `.agent/workflows/`
## Artifact Ownership
- **Creates**: `.agent/workflows/<name>.md`
- **Reads**: `.agent/workflows/*`, `squads/TEAM.md`, `squads/PIPELINE.md`
- **Updates**: Nothing (workflows are standalone)
## Handoff Protocol
> [!CAUTION]
> **BEFORE creating workflow file:**
> 1. â
User answered interview questions
> 2. â
Proposal approved via `notify_user`
> 3. â
Overlap check completed
> 4. THEN write to `.agent/workflows/`
## Antigravity Best Practices
- Use `task_boundary` when designing (PLANNING mode)
- Use `notify_user` to propose before writing
- Reference skills with `@skill-name` in workflow steps
- Always include `// turbo-all` annotation preference question