Skip to content
Back to skills

Features

ASecurity

Create a new `/ll:` Agent Skill that uses `ll-messages` output to analyze user message history and suggest new FSM loops with 3-15 steps, bypassing the interactive `/ll:create-loop` wizard.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 6, 2026
ai-agentsgodocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add BrennonTWilliams/little-loops --skill features --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Features?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Features
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brennontwilliams-features-e241d371/badge)](https://www.skillsdirectory.com/skills/brennontwilliams-features-e241d371)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
discovered_date: 2026-02-02
discovered_by: capture_issue
status: done
completed_at: 2026-02-13T00:00:00Z
priority: P3
---

# FEAT-219: Agent Skill to suggest loops using ll-messages

## Summary

Create a new `/ll:` Agent Skill that uses `ll-messages` output to analyze user message history and suggest new FSM loops with 3-15 steps, bypassing the interactive `/ll:create-loop` wizard.

## Context

**Direct mode**: User description: "New `/ll:` Agent Skill that uses `ll-messages` to suggest new loops with 3-15 steps, bypassing `/ll:create-loop`"

The `/ll:create-loop` command provides an interactive wizard for creating FSM loops, but for users who have existing workflow patterns captured in their message history, an automated suggestion system would be more efficient.

## Current Behavior

- `/ll:create-loop` requires interactive wizard input to select paradigm, configure steps, and define evaluator behavior
- No automated analysis of existing message patterns to suggest loop configurations
- Users must manually identify repetitive workflows that could be automated as loops

## Expected Behavior

A new Agent Skill that:
1. Analyzes `ll-messages` output (user message history)
2. Identifies repetitive 3-15 step workflows
3. Suggests FSM loop configurations with:
   - Appropriate paradigm selection
   - Step definitions with tool usage
   - Evaluator configuration
   - Variable interpolation setup
4. Outputs ready-to-use loop YAML or prompts for approval

## Proposed Solution

Create a new Agent Skill `skills/loop-suggester/SKILL.md` that:

1. **Input**: User messages from `ll-messages` output (JSONL format)
2. **Analysis**: Identify repeated multi-step patterns (3-15 steps)
3. **Output**: Suggested loop YAML files with:
   - Paradigm (goal, state_machine, imperative, template)
   - Steps with tool usage patterns
   - Evaluator type and configuration
   - Max iterations based on observed behavior
   - On_handoff handler if applicable

### Key Features

- Bypass `/ll:create-loop` interactive wizard
- Suggest loops based on actual user behavior patterns
- Support all existing loop paradigms
- Generate valid YAML matching FSM schema
- Provide confidence scores for suggestions

### Integration Points

- Uses existing `ll-messages` CLI output
- Follows FSM schema from `scripts/little_loops/fsm/`
- Compatible with `ll-loop` execution engine
- Can pipe suggestions directly to loop files

## Impact

- **Priority**: P3
- **Effort**: Medium
- **Risk**: Low - New skill, no changes to existing functionality

## Related Key Documentation

| Category | Document | Relevance |
|----------|----------|-----------|
| architecture | docs/ARCHITECTURE.md | Documents agents/skills structure |
| guidelines | .claude/CLAUDE.md | Development preferences (prefer Skills over Agents) |

## Labels

`feature`, `skill`, `fsm`, `loops`, `ll-messages`, `automation`

---

## Resolution

- **Action**: implement
- **Completed**: 2026-02-02
- **Status**: Completed

### Changes Made
- `skills/loop-suggester/SKILL.md`: Created new skill with complete pattern detection and loop suggestion logic
- `thoughts/shared/plans/2026-02-02-FEAT-219-management.md`: Implementation plan

### Features Implemented
1. Input resolution from arguments or live ll-messages extraction
2. Pattern detection rules for all four FSM paradigms (goal, invariants, convergence, imperative)
3. Confidence scoring with frequency and session bonuses
4. YAML output schema with metadata, summary, and structured suggestions
5. Complete paradigm templates for generated loop configurations
6. Example suggestions demonstrating typical outputs
7. Guidelines and limitations documentation
8. Comparison with /ll:create-loop for user guidance

### Verification Results
- File structure: PASS (skill directory and SKILL.md created)
- Lint: PASS (no new issues introduced)
- FSM tests: PASS (433 passed)
- User messages tests: PASS (54 passed)

---

## Status

**Completed** | Created: 2026-02-02 | Completed: 2026-02-02 | Priority: P3

Files in this skill

  • P0-FEAT-3398-quality-regression-detection-with-model-attribution.md52.3 KB
  • P0-FEAT-3404-ll-version-history-db-stamp-and-typed-reader-path.md20.4 KB
  • P0-FEAT-3405-quality-regression-detection-attribution-and-report-cli-wiring.md43.1 KB
  • P1-FEAT-020-product-analysis-opt-in-configuration.md5.2 KB
  • P1-FEAT-022-product-analyzer-skill.md9.6 KB
  • P1-FEAT-040-fsm-schema-definition-and-validation.md7 KB
  • P1-FEAT-041-paradigm-compilers.md10.6 KB
  • P1-FEAT-042-variable-interpolation-system.md8.9 KB
  • P1-FEAT-043-tier1-deterministic-evaluators.md12.3 KB
  • P1-FEAT-045-fsm-executor-core.md17.9 KB
  • P1-FEAT-047-ll-loop-cli-tool.md16.6 KB
  • P1-FEAT-210-add-end-to-end-cli-workflow-tests.md4.3 KB
  • P1-FEAT-2878-trace-level-assertions-in-the-eval-harness-with-optional-multi-host-divergence-runs.md28.2 KB
  • P1-FEAT-3329-conftest-guards-for-live-host-cli-spawns-and-unpatched-rate-limit-ladders.md86.3 KB
  • P1-FEAT-3399-cross-repo-history-db-aggregation.md43.4 KB
  • P1-FEAT-3409-workspace-membership-discovery-for-cross-repo-history-db-aggregation.md80.3 KB
  • P1-FEAT-3410-attach-based-cross-repo-history-db-aggregation-and-workspace-cli-flag.md67.7 KB
  • P1-FEAT-914-greenfield-project-builder-meta-loop.md39.6 KB
  • P2-FEAT-011-user-message-history-extraction.md12.6 KB
  • P2-FEAT-021-goals-vision-ingestion-mechanism.md10.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.