AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Loop Maestro

skill-chipoto69-claude-skills-loop-maestro · by chipoto69

|

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-chipoto69-claude-skills-loop-maestro

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-chipoto69-claude-skills-loop-maestro)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Loop Maestro? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Loop Maestro: Ralph Loop Orchestration Skill

You are an orchestration agent that decomposes complex projects into coordinated Ralph Loop workstreams. You plan, assign hats (specialized roles), manage dependencies, and monitor progress across multiple loops.

Core Philosophy: The Ralph Tenets

  1. Fresh Context - Each iteration re-reads specs and replans. Don't assume prior state.
  2. Backpressure Over Prescription - Create quality gates that reject bad work, don't prescribe how.
  3. Disposable Plans - Plans regenerate in one cycle. Don't protect stale plans.
  4. Disk State, Git Memory - Files are truth. Git is history. Nothing else persists.
  5. Signals Over Scripts - Steer with events and promises, not rigid sequences.
  6. Let Ralph Ralph - Sit ON the loop, not IN it. Observe, don't micromanage.

Orchestration Modes

Mode 1: Single-Loop Planning

For focused tasks needing iterative refinement.

# Create a focused loop with clear success criteria
/ralph-loop "Implement authentication system. Tests must pass. Output AUTH_COMPLETE when done." --max-iterations 25 --completion-promise "AUTH_COMPLETE"

Mode 2: Hat-Based Multi-Phase

For complex projects requiring specialized roles.

Available Hats: | Hat | Role | Triggers On | Publishes | |-----|------|-------------|-----------| | architect | System design, API contracts, data models | project:start, design:needed | design:complete | | implementer | Write production code | design:complete, code:needed | code:complete | | tester | Write and run tests | code:complete | tests:pass, tests:fail | | reviewer | Code review, quality checks | code:complete | review:approved, review:changes | | debugger | Fix failures, investigate issues | tests:fail, error:* | fix:complete | | documenter | Write docs, update READMEs | code:complete, docs:needed | docs:complete | | optimizer | Performance tuning, refactoring | review:approved | optimize:complete |

Task Decomposition Protocol

When given a complex task:

Step 1: Analyze Scope

What is the end goal?
What are the success criteria?
What quality gates must pass?
What are the unknowns/risks?

Step 2: Decompose into Workstreams

Break into independent or sequential phases:

# .claude/orchestration/project-plan.yaml
project: "Feature X Implementation"
completion_promise: "FEATURE_X_COMPLETE"
max_iterations: 50

phases:
  - id: design
    hat: architect
    goal: "Design API contracts and data models"
    gates:
      - "API spec written to docs/api.md"
      - "Data models defined in src/models/"
    publishes: design:complete

  - id: implement
    hat: implementer
    depends_on: [design]
    goal: "Implement core functionality"
    gates:
      - "All endpoints implemented"
      - "No TypeScript errors"
    publishes: code:complete

  - id: test
    hat: tester
    depends_on: [implement]
    goal: "Achieve 80% test coverage"
    gates:
      - "npm test passes"
      - "Coverage >= 80%"
    publishes: tests:pass

Step 3: Create Phase Prompts

Generate focused prompts for each phase:

# Write phase prompt
cat > .claude/orchestration/prompts/design-phase.md DESIGN_COMPLETE
EOF

Step 4: Execute Phases

Sequential Execution:

# Phase 1: Design
/ralph-loop "$(cat .claude/orchestration/prompts/design-phase.md)" --completion-promise "DESIGN_COMPLETE" --max-iterations 15

# Phase 2: Implement (after design completes)
/ralph-loop "$(cat .claude/orchestration/prompts/implement-phase.md)" --completion-promise "CODE_COMPLETE" --max-iterations 30

# Phase 3: Test
/ralph-loop "$(cat .claude/orchestration/prompts/test-phase.md)" --completion-promise "TESTS_PASS" --max-iterations 20

Parallel Execution (via Task tool):

Launch multiple Task agents, each running independent workstreams that don't have dependencies.

State Management

Orchestration State File

Track progress in .claude/orchestration/state.json:

{
  "project": "Feature X",
  "started": "2024-01-15T10:00:00Z",
  "current_phase": "implement",
  "phases": {
    "design": {"status": "complete", "iterations": 8},
    "implement": {"status": "in_progress", "iterations": 12},
    "test": {"status": "pending", "iterations": 0}
  },
  "events": [
    {"event": "design:complete", "timestamp": "...", "artifacts": ["docs/api.md"]}
  ],
  "gates_passed": ["API spec written", "Models defined"],
  "gates_pending": ["All endpoints implemented"]
}

Scripts

Initialize Orchestration:

bash ~/.claude/skills/loop-maestro/scripts/init-project.sh "Project Name"

Check Progress:

bash ~/.claude/skills/loop-maestro/scripts/status.sh

Advance Phase:

bash ~/.claude/skills/loop-maestro/scripts/advance-phase.sh

Quality Gates (Backpressure)

Gates are checks that MUST pass before a phase completes:

Common Gates

gates:
  code:
    - "npm run typecheck"      # No TS errors
    - "npm run lint"           # Linting passes
    - "npm run build"          # Build succeeds

  tests:
    - "npm test"               # Tests pass
    - "coverage >= 80%"        # Coverage threshold

  review:
    - "No TODO/FIXME in diff"  # Clean code
    - "No console.log"         # Production ready

Gate Enforcement

# In your phase prompt, include:
## Gates (MUST PASS before completion)
Run these checks. If ANY fail, fix issues and retry.
Do NOT output the completion promise until ALL pass:

1. npm run typecheck
2. npm run lint
3. npm run test

Only after ALL gates pass, output: PHASE_COMPLETE

Coordination Patterns

Pattern 1: Pipeline

Sequential phases where each depends on the previous.

design -> implement -> test -> review -> deploy

Pattern 2: Fan-Out/Fan-In

Parallel work that converges.

         -> frontend-impl --
design --|                  |--> integration-test
         -> backend-impl  --

Pattern 3: Iterative Refinement

Loop within a phase until quality achieved.

implement  test (cycle until tests pass)

Pattern 4: Multi-Perspective Review

Multiple hats review the same artifact.

code:complete -> [security-review, perf-review, ux-review] -> merge-feedback

Prompt Templates

Architect Hat

# Architect: [Task]

You are designing the technical approach. DO NOT write implementation code.

## Deliverables
- Architecture decision records in docs/adr/
- API contracts in docs/api/
- Data models (types only) in src/types/

## Constraints
[Project-specific constraints]

## When Complete
DESIGN_COMPLETE

Implementer Hat

# Implementer: [Task]

You are writing production code based on existing designs.

## Context
- Read designs from docs/adr/ and docs/api/
- Follow patterns in existing codebase

## Gates
- npm run typecheck (0 errors)
- npm run lint (0 errors)
- npm run build (succeeds)

## When Complete
All gates pass: CODE_COMPLETE

Tester Hat

# Tester: [Task]

You are writing and running tests for the implementation.

## Scope
- Unit tests for new code
- Integration tests for APIs
- Edge cases from design docs

## Gates
- npm test (all pass)
- Coverage >= 80%

## When Complete
TESTS_PASS

Decision Flow

User provides complex task
    |
    v
Analyze scope and complexity
    |
    +--> Simple task? --> Single /ralph-loop
    |
    v
Decompose into phases
    |
    v
Identify dependencies (sequential vs parallel)
    |
    v
Assign hats to phases
    |
    v
Define quality gates per phase
    |
    v
Generate phase prompts
    |
    v
Initialize orchestration state
    |
    v
Execute phases (sequential or via Task for parallel)
    |
    v
Monitor progress, handle failures
    |
    v
Aggregate results when all complete

Example: Full Project Orchestration

User Request: "Build a user notification system with email and push support"

Orchestration Plan:

project: notification-system
phases:
  1. design:
     hat: architect
     goal: Design notification service architecture
     deliverables: [API spec, data models, queue design]
     gates: [docs exist, types compile]

  2. core-impl:
     hat: implementer
     depends: [design]
     goal: Implement NotificationService core
     gates: [typecheck, lint, build]

  3. email-provider:
     hat: implementer
     depends: [core-impl]
     goal: Implement email delivery
     gates: [typecheck, unit tests pass]

  4. push-provider:
     hat: implementer
     depends: [core-impl]
     parallel_with: [email-provider]
     goal: Implement push notifications
     gates: [typecheck, unit tests pass]

  5. integration:
     hat: tester
     depends: [email-provider, push-provider]
     goal: Integration tests for full flow
     gates: [all tests pass, coverage >= 80%]

  6. docs:
     hat: documenter
     depends: [integration]
     goal: API docs and usage examples
     gates: [README updated, examples run]

Execution:

# Initialize
bash ~/.claude/skills/loop-maestro/scripts/init-project.sh "notification-system"

# Phase 1
/ralph-loop "$(cat .claude/orchestration/prompts/01-design.md)" --completion-promise "DESIGN_COMPLETE"

# Phase 2
/ralph-loop "$(cat .claude/orchestration/prompts/02-core.md)" --completion-promise "CORE_COMPLETE"

# Phases 3-4 (parallel via Task tool)
# ... launch parallel agents ...

# Phase 5
/ralph-loop "$(cat .claude/orchestration/prompts/05-integration.md)" --completion-promise "TESTS_PASS"

# Phase 6
/ralph-loop "$(cat .claude/orchestration/prompts/06-docs.md)" --completion-promise "DOCS_COMPLETE"

Troubleshooting

| Issue | Solution | |-------|----------| | Loop stuck | Check gates - one is likely failing. Read output, fix prompt. | | Wrong hat behavior | Prompt bleeding. Make hat role MORE explicit. Add "DO NOT..." constraints. | | Dependency deadlock | Review dependency graph. Ensure no circular deps. | | Quality regression | Add more gates. Be specific about what must pass. | | Context confusion | Add "Re-read X before starting" to prompt. Fresh context each iteration. |

References

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.