ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Runs prompt/slash command on recurring interval until done or limit. Triggers: repeat, recurring task, poll status, run every N minutes, interval.
$ npx -y skills add softspark/ai-toolkit --skill repeat --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/repeatContext preview
The summary Claude sees to decide when to auto-load this skill.
Runs prompt/slash command on recurring interval until done or limit. Triggers: repeat, recurring task, poll status, run every N minutes, interval.
name: repeat description: "Runs prompt/slash command on recurring interval until done or limit. Triggers: repeat, recurring task, poll status, run every N minutes, interval." user-invocable: true effort: medium argument-hint: "[interval] [command or prompt] (e.g., /repeat 5m /test, defaults to 10m)" allowed-tools: Read, Write, Edit, Grep, Glob, Bash, Agent
$ARGUMENTS
Parse the user input into three components:
1. **Interval** — duration between iterations (default: `10m`)
2. **Command or prompt** — the slash command or freeform prompt to execute each iteration 3. **Flags**:
Examples of parsed input:
These limits are constitutionally mandated (Article I, Section 4). Violating them is not permitted.
After each iteration, inspect the output for completion signals:
For iteration = 1 to max_iterations:
1. Log iteration start (timestamp, iteration number)
2. Execute the command or prompt
3. Capture output and exit status
4. Check exit detection:
- If completion marker found -> STOP, report success
5. Check circuit breaker:
- If failure: increment consecutive_failures
- If success: reset consecutive_failures to 0
- If consecutive_failures >= 3 -> HARD STOP, report failure
6. Log iteration result to stats
7. If not last iteration: wait for interval duration
8. Repeat
After loop ends:
- Print summary: total iterations, pass/fail counts, elapsed time
- Final status: COMPLETED | EARLY_SUCCESS | CIRCUIT_BREAKER | MAX_ITERATIONSEach iteration MUST be logged to `~/.softspark/ai-toolkit/stats.json`:
{
"loop_runs": [
{
"id": "loop-<timestamp>",
"command": "/test",
"interval": "5m",
"max_iterations": 5,
"started_at": "2026-04-01T10:00:00Z",
"iterations": [
{
"number": 1,
"timestamp": "2026-04-01T10:00:00Z",
"result": "pass",
"exit_code": 0,
"summary": "All 42 tests passed"
},
{
"number": 2,
"timestamp": "2026-04-01T10:05:00Z",
"result": "fail",
"exit_code": 1,
"summary": "3 tests failed"
}
],
"final_status": "EARLY_SUCCESS",
"ended_at": "2026-04-01T10:10:00Z"
}
]
}Ensure the stats directory and file exist before writing. Append to existing data, never overwrite.
# Run tests every 5 minutes until all pass (max 5 iterations) /repeat 5m /test # Poll deployment status every 10 minutes /repeat 10m "check deploy status" # Run review max 3 times at default interval /repeat --iterations 3 /review # Lint every 2 minutes, up to 10 times /repeat 2m --iterations 10 /lint # Monitor CI pipeline every 5 minutes /repeat 5m "check if CI pipeline passed for current branch"
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Repo: softspark/ai-toolkit
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search,…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG,…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report,…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe…