source-command-loop
БесплатноБез исполняемых скриптовНе проверенStart continuous development loop for automated workflows
от databayt★ 19 звёзд на GitHubОб этом скилле
source-command-loop
Use this skill when the user asks to run the migrated source command loop.
Command Template
Loop Command - Continuous Automation
Launch orchestrated loops for automated development workflows that run until targets are met.
Usage
/loop [type] [target]
Loop Types
Story Loop
Execute all stories in an epic
/loop story EPIC-001
Bug Loop
Fix bugs matching criteria
/loop bug priority:high
/loop bug status:open assignee:me
Refactor Loop
Improve code quality to target
/loop refactor coverage:95
/loop refactor complexity:10
Test Loop
Increase test coverage
/loop tests 95 # Target 95% coverage
Examples
# Execute all stories in epic
/loop story EPIC-001-student-attendance
# Fix all critical bugs
/loop bug priority:critical status:open
# Refactor until 95% coverage and low complexity
/loop refactor coverage:95 complexity:8
# Write tests until 95% coverage
/loop tests 95
# Quality improvement loop
/loop quality all # Runs all quality improvements
Story Loop
Executes stories with full TDD cycle:
/loop story EPIC-001
Process:
- Load stories from epic
- Order by dependencies
- For each story:
- Write tests (TDD)
- Implement feature
- Validate tests pass
- Commit changes
- Update metrics
- Generate report
Bug Loop
Systematically fixes bugs:
/loop bug priority:high
Process:
- Query bugs by filter
- For each bug:
- Create reproduction test
- Debug with 5 Whys
- Implement fix
- Verify tests pass
- Commit fix
- Update bug tracker
- Generate fix report
Filters:
priority: critical, high, medium, lowstatus: open, in_progressassignee: usernamelabel: bug labelage: days since created
Refactor Loop
Improves code quality:
/loop refactor coverage:95 complexity:10
Process:
- Analyze code quality metrics
- Identify improvement areas
- For each issue:
- Ensure test coverage
- Apply refactoring
- Verify tests pass
- Measure improvement
- Commit improvements
- Update quality metrics
Targets:
coverage: Test coverage percentagecomplexity: Cyclomatic complexitysmells: Code smell countlint: Linting error counttypes: TypeScript error count
Test Loop
Generates tests systematically:
/loop tests 95
Process:
- Measure current coverage
- Find uncovered code
- For each uncovered file:
- Generate test cases
- Write test implementation
- Run tests
- Update coverage
- Commit new tests
- Generate coverage report
Progress Display
Real-time progress tracking:
═══════════════════════════════════════
🔄 LOOP PROGRESS
═══════════════════════════════════════
Type: Bug Fix Loop
Filter: priority:high
Progress: ████████████░░░░░░░ 60%
Bugs Fixed: 6/10
Success Rate: 100%
Time: 1h 30m elapsed
ETA: 45m remaining
═══════════════════════════════════════
Current: Fixing BUG-123 - Login validation
Status: Running tests...
Stop Conditions
Loops stop when:
- Target achieved ✓
- All items processed ✓
- Max iterations reached (default: 50)
- Max duration reached (default: 4 hours)
- Error threshold exceeded (3 consecutive)
- User interruption (Ctrl+C)
Checkpoint System
Automatic Checkpoints
- Saved after each item
- Allows resume after interruption
- Preserves progress
Resume Loop
/loop resume [loop-id]
View Checkpoints
/loop status
Configuration
Loop Settings
{
"loop": {
"maxIterations": 50,
"maxDuration": "4h",
"stopOnError": false,
"saveCheckpoints": true,
"delayBetweenItems": 1000,
"parallel": false
}
}
Custom Targets
# Multiple targets
/loop refactor coverage:95 complexity:10 smells:0
# Complex bug filter
/loop bug "priority:high AND (label:security OR label:performance)"
Error Recovery
Retry Strategy
- Transient errors: Automatic retry (3 attempts)
- Persistent errors: Skip and continue
- Critical errors: Pause and checkpoint
Error Handling
On Error:
1. Log error details
2. Save checkpoint
3. Determine strategy
4. Apply recovery
5. Continue or pause
Metrics Tracked
Performance Metrics
- Items processed per hour
- Success rate
- Average time per item
- Error rate
Quality Metrics
- Coverage improvement
- Bugs fixed
- Code complexity reduction
- Performance gains
Implementation
// Invokes the loop agent
await invokeAgent("/agents/bmad/loop", {
type: loopType,
target: loopTarget,
config: {
maxIterations: 50,
maxDuration: 4 * 60 * 60 * 1000,
saveCheckpoints: true,
},
})
// Loop agent orchestrates:
// - Loading items to process
// - Executing each item
// - Tracking progress
// - Handling errors
// - Saving checkpoints
// - Generating reports
Loop Combinations
Quality Sprint
/loop quality all
Установить source-command-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл source-command-loop?
Start continuous development loop for automated workflows
Как установить скилл source-command-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл source-command-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic