eric-cielo/moflo / .claude/skills/spell-builder
spell-builder
VerifiedCreate, edit, and validate spell definitions (YAML/JSON) that compose connectors and step commands into end-to-end spells. Use when building new spell definitions, modifying existing ones, or exploring available spell components.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.9 KB |
| architecture.md | markdown | 8.5 KB |
| connectors/github-cli/README.md | markdown | 2.0 KB |
| connectors/http/README.md | markdown | 1.4 KB |
| connectors/local-outlook/README.md | markdown | 1.9 KB |
| connectors/playwright/README.md | markdown | 1.7 KB |
| permissions.md | markdown | 4.3 KB |
| preflight.md | markdown | 4.1 KB |
| steps/agent/README.md | markdown | 1.8 KB |
| steps/bash/README.md | markdown | 1005 B |
| steps/browser/README.md | markdown | 2.1 KB |
| steps/condition/README.md | markdown | 1.1 KB |
| steps/github/README.md | markdown | 1.6 KB |
| steps/loop/README.md | markdown | 1.2 KB |
| steps/memory/README.md | markdown | 1.6 KB |
| steps/outlook/README.md | markdown | 2.9 KB |
| steps/parallel/README.md | markdown | 1.1 KB |
| steps/prompt/README.md | markdown | 923 B |
| steps/wait/README.md | markdown | 667 B |
steps/loop/README.md
View on GitHub# `loop` — Iterate Over Items
**Purpose:** Use this step to run nested steps once per item in an array. Choose this over `parallel` when order matters or when each iteration depends on the previous one.
## Usage
```yaml
- id: process-files
type: loop
config:
over: "{args.files}"
itemVar: file
indexVar: idx
maxIterations: 50
steps:
- id: lint-one
type: bash
config:
command: "eslint {file} --fix"
```
## Config
| Field | Required | Default | Description |
|-------|----------|---------|-------------|
| `over` / `items` | Yes | — | Array expression to iterate over |
| `itemVar` | No | `"item"` | Variable name for the current item |
| `indexVar` | No | `"index"` | Variable name for the current index |
| `maxIterations` | No | `100` | Safety cap to prevent runaway loops |
Nested steps are defined on the step itself via the `steps` field, not inside `config`.
## Outputs
| Field | Type | Description |
|-------|------|-------------|
| `totalItems` | number | Length of the input array |
| `iterations` | number | Number of iterations actually executed |
| `truncated` | boolean | Whether `maxIterations` was reached |
| `items` | array | Per-iteration results |
## Source
`src/cli/spells/commands/loop-command.ts`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |