Swarm manager processing guidance

From Vrooli/Vrooli · View interactive version

Swarm manager processing guidance is an AI agent skill from the GitHub repository Vrooli/Vrooli. This document provides shared guidance for all processing operations (process-idea, process-fix, process-execute). Agents should read this file before executing any processing task.

How to use this skill

Skill file

Processing Guidance

Purpose

This document provides shared guidance for all processing operations (process-idea, process-fix, process-execute). Agents should read this file before executing any processing task.

Required reading: prompt-manager skill read swarm-manager-backlog-tools — canonical reference for folder structure, artifact schemas, reading order, and decision hierarchy.

Core Principles

1. Folder is Source of Truth

The backlog item folder at {{ITEM_FOLDER}} contains everything you need:

item-folder/
├── spec.json              # Item metadata (kind, title, description, status)
├── clarify/
│   └── questions.json     # Clarifying Q&A (if clarify workflow ran)
├── suggest/
│   └── suggestions.json   # Suggestions with accept/reject (if suggest ran)
├── enhance/
│   └── summary.md         # Refined plan (if enhance ran)
├── handoff/
│   ├── brief.md           # (idea only, generated at process-time) execution brief for ecosystem-manager
│   ├── manifest.json      # (idea only) machine-readable downstream contract
│   └── source-index.json  # (idea only) pointers back to source artifacts
├── research/
│   └── summary.md         # Research findings (if deep research ran)
├── archive/
│   └── ...                # Superseded artifacts from previous runs
└── [user files]           # Any additional context added by user

Always read what exists before acting.

2. Respect Decisions

See swarm-manager-backlog-tools for the full reading order and decision hierarchy.

2.1 Preserve-First Artifact Policy (Ideas)

For idea processing that initializes or updates scenarios:

2.2 Idea Handoff Contract

For process-idea runs, swarm-manager may generate {{ITEM_FOLDER}}/handoff/ just before execution begins. When that directory exists:

3. Leave Clear Evidence

Every processing operation must leave evidence of what was done:

For Ideas (scenario creation/improvement):

For Fixes:

For Execute tasks:

For Research items:

4. Completion Summary Requirements

Every processing operation must produce a summary in the item folder. This summary should include:

  1. What was done - Specific actions taken
  2. Files affected - Created, modified, deleted
  3. Deviations - Any differences from the plan (and why)
  4. Verification - How the result was verified
  5. Follow-up - Any remaining work or considerations

Example completion summary:

# Completion Summary

## Actions Taken
- Created ecosystem-manager task for `scenarios/my-scenario/`
- Selected steering profile: `balanced` (standard new scenario scope)
- Started queue processor

## Ecosystem Manager Task
- **Task ID**: em-task-20260216-001
- **Steering**: Profile `balanced` (progress -> test -> refactor -> polish)
- **Rationale**: Standard scope new scenario with no special UX or quality requirements
- **Monitor**: `ecosystem-manager task show em-task-20260216-001`

## Specification Highlights
- API with 3 endpoints, UI with React components
- Depends on postgres and redis resources
- Key suggestion accepted: use Redis for caching (s3)
- Admin panel deferred to v2 (scope reduction noted in enhance/summary.md)

## Verification
- [x] Task created with correct steering configuration
- [x] Queue processor running
- [x] Task confirmed via `ecosystem-manager task show`

## Follow-up
- Monitor task progress: `ecosystem-manager task show em-task-20260216-001`
- Queue status: `ecosystem-manager queue status`

5. Error Handling

If processing cannot complete:

  1. Document what blocked you - Be specific
  2. Document what was accomplished - Partial progress matters
  3. Leave the codebase in a clean state - Don't leave broken code
  4. Update item status - Mark as blocked with reason

Do NOT:

Verification Steps

Before marking processing complete:

For Scenario Creation/Improvement

For Fixes

For Execute Tasks

Common Anti-Patterns

Don't Ignore Context

Don't Deviate Silently

Don't Over-Engineer

Don't Under-Document

Don't Leave Partial State

Don't Forget Ecosystem Fit

Integration Patterns

When creating scenarios, follow Vrooli patterns:

API Structure

scenario/
├── api/
│   ├── main.go
│   ├── internal/
│   │   └── [domain]/
│   │       ├── handler.go
│   │       ├── service.go
│   │       └── types.go
│   └── go.mod

UI Structure

scenario/
├── ui/
│   ├── src/
│   │   ├── components/
│   │   ├── hooks/
│   │   ├── App.tsx
│   │   └── main.tsx
│   ├── package.json
│   └── vite.config.ts

Service Configuration

{
  "name": "scenario-name",
  "version": "1.0.0",
  "services": {
    "api": {
      "type": "go",
      "port": 8080
    },
    "ui": {
      "type": "vite",
      "port": 3000
    }
  }
}

Using Existing Resources

When your scenario needs common capabilities:

| Need | Use Resource | How |

|------|--------------|-----|

| Database | postgres | Connect via POSTGRES_URL env var |

| Caching | redis | Connect via REDIS_URL env var |

| Vector search | qdrant | Connect via QDRANT_URL env var |

| LLM inference | ollama | Connect via OLLAMA_URL env var |

| Code execution | judge0 | Connect via JUDGE0_URL env var |

Never reinvent what resources provide.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.