Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/randroids-dojo/skills/loopgit clone --depth 1 https://github.com/Randroids-Dojo/skillsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.01007 |
| Opus 5 | $0.00009 | $0.00504 |
| Sonnet 5 | $0.00004 | $0.00201 |
| Haiku 4.5 | $0.00002 | $0.00101 |
Grade A, and why
loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/randroid:loop
A self-sustaining development loop with two modes: Researcher and Implementor.
Prerequisites
Full permissions required. The loop runs autonomously and needs unrestricted access.
Startup Flow
When this command is invoked, ask the user FOUR questions using AskUserQuestion, then one text prompt:
Question 1: Mode (AskUserQuestion)
- Question: "Which mode would you like to run?"
- Options:
Research- Explore, investigate, and plan. Creates specs for implementation.Implement- Execute on specs. Write code, tests, and documentation.
Question 2: Git Workflow (AskUserQuestion)
- Question: "What should happen after each task?"
- Options:
Push- Commit and push to current branch (default)Commit only- Commit locally, no pushOpen PR- Open PR, wait for CI (no merge)PR and merge- Open PR, wait for CI, then auto-merge
Question 3: Context Management (AskUserQuestion)
- Question: "Should each iteration start with fresh context?"
- Options:
Fresh context- Clear context between iterations (default, recommended)Keep context- Maintain conversation history across iterations
Question 4: Directions (AskUserQuestion - optional)
- Question: "Any specific directions for this run?"
- Options (mode-aware, user can select "Other" for custom):
None- No specific directions, work autonomously- For Research mode:
Focus on specs- Review and improve existing implementation specsExplore dependencies- Research external libraries and frameworks
- For Implement mode:
Fix issues first- Prioritize fixing build errors and warningsSkip tests- Focus on implementation, skip test writing for now
Question 5: Iterations (Text prompt - NOT AskUserQuestion)
After the AskUserQuestion completes, ask:
"How many iterations? Enter a number, 'inf' for infinite, or 'comp' for until complete:"
Parse the response:
- Number (e.g., "2", "5", "10") → exact iteration count
- "inf", "infinite", "-1" → infinite mode (-1)
- "comp", "complete", "0" → until complete mode (0)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 107 lines · 18 tokens per session scan A 5dbc173e94ff
loop is a command published in the GitHub repository Randroids-Dojo/skills (46 stars, last pushed 20d ago), licensed MIT. It adds 18 tokens to every session and 1,007 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.