← Claude Code Hub
Nov 28, 2026 · 5 min read ✦ Tip #293

Claude Code: keep /loop from stopping at a skill

Scheduled tasks and /loop in Claude Code stop at a skill with allowed-tools or hooks since v2.1.325, and every fire waits for you. One rule in your settings lets it run unattended.

A Claude Code scheduled task that runs a skill with allowed-tools: with no rule, every fire stops at "Use skill stamp?"; with Skill(stamp) in permissions.allow, the task runs on its own

TL;DR Add "Skill(<name>)" to permissions.allow: in the project's .claude/settings.local.json for a /loop, in ~/.claude/settings.json for Desktop tasks. Copy the name exactly as the prompt shows it, plugin prefix included (Skill(my-plugin:report)).

Since v2.1.325, a /loop or scheduled task that runs a skill with allowed-tools or hooks in its frontmatter asks before loading it. That skill approves tools for itself or registers hooks that run commands, and no person asked for it: a timer did. Type /stamp yourself and it loads without asking. Let the task fire it, including the first run /loop starts right away, and it sits at Use skill "stamp"? until you come back, with the whole task stuck behind it.

What you see when it fires

A test skill that only runs date, with allowed-tools: Bash(date *), started with /loop 1m /stamp in a Manual mode session on v2.1.332:

❯ /loop 1m /stamp
● CronCreate(*/1 * * * *: /stamp)
  ⎿  Scheduled 68df709c (Every minute, next run 9:39 AM)
● Skill(stamp)

 Use skill "stamp"?
 Claude may use instructions, code, or files from this Skill.

 Print the current UTC time. Use when asked to stamp.

 Do you want to proceed?
 ❯ 1. Yes
   2. Yes, and don't ask again for stamp in …/exp1
   3. No

The 9:39 fire came due and queued behind the prompt without running. In the next folder over, the same skill with the rule in place had already answered stamped 09:39:06.

When it asks and when it doesn't

Each row is a separate session with the same one-line skill:

Case What happened
You type /stamp, no rule Loads without asking
/loop with allowed-tools, no rule Use skill "stamp"? with three options
/loop with hooks and no allowed-tools The same prompt, Yes and No only
/loop with a skill that has neither Runs on its own
/loop with Skill(stamp) in permissions.allow Runs on its own, hooks included
/loop in auto mode, no rule Allowed by auto mode
/loop with denyInsteadOfPrompting Denied on every fire

What triggers it is the skill's frontmatter, not what the skill does. A skill that only reads files still asks if it declares allowed-tools.

How to let it run unattended

1. Copy the exact name from the prompt

The rule takes the name the prompt quotes in Use skill "..."?. A plugin skill keeps its prefix: with /loop 1m /myplug:stamp, the prompt read Use skill "myplug:stamp"?, and Skill(stamp) did not cover it. Skill(myplug:stamp) did.

2. Put the rule where the task reads it

{
  "permissions": {
    "allow": ["Skill(stamp)"]
  }
}
  • A /loop inherits its session: the project's .claude/settings.local.json works, .claude/settings.json if the team should share it, or ~/.claude/settings.json.
  • A local Desktop task reads allow rules from ~/.claude/settings.json, its docs say. Put it there and it covers every task you have.

In the test, Skill(stamp) also let /loop 1m /stamp utc through, arguments and all.

3. Or answer once with the second option

Yes, and don't ask again for stamp in … saves the same rule in the project: after picking it, .claude/settings.local.json held "allow": ["Skill(stamp)"] and nothing else.

A skill with hooks doesn't offer that option, only Yes and No, plus one more line: This skill has hooks that can run commands for the rest of the session. There you write the rule by hand, and with it the hooks skill ran on its own at every fire.

4. Check the next fire

✻ Running scheduled task (Nov 28 9:39am)
❯ /stamp
  Ran 1 shell command
● stamped 09:39:06

If the prompt comes back, the name in the rule doesn't match the prompt's, or the rule sits in a file that session doesn't read.

Why "Yes" isn't enough

A Yes covers that one run. In the session with the hooks skill, a Yes let it run and the next fire asked again. What it doesn't do is pile up: the 9:42 and 9:43 fires, both stuck behind the prompt, became a single run once answered, as the docs say: there is no catch-up for missed fires.

On Desktop, v2.1.325 also changed "Always allow": a rule on its own is offered only when saving it would allow that command again, and the changelog warns that a scheduled task that relied on one can now wait for you. The Desktop docs' advice still holds (click Run now after creating the task and approve each prompt), but for a skill the rule written in ~/.claude/settings.json is the safer bet, since it doesn't depend on which option the card offers.

Against the other ways out

Way out What it does with the skill Where it falls short
Skill(<name>) in allow Loads it without asking One rule per skill, by its exact name
Auto mode The classifier approves it: Allowed by auto mode A model decides, and it can block
denyInsteadOfPrompting Denies it: What required approval: Execute skill: stamp The task fails every time instead of waiting
Dropping allowed-tools No more prompt for the skill Every tool it uses goes through your rules and prompts

Cloud scheduled tasks start in auto mode unless it's unavailable, so the prompt mostly hits /loop and Desktop tasks in a mode that asks. denyInsteadOfPrompting keeps anything from waiting, but here it turns the wait into a failure every minute. And if your skill uses allowed-tools to skip prompts for each command, as the allowed-tools tip covers, that grant still works: the rule only approves loading the skill.

Official docs: Extend Claude with skills: Restrict Claude's skill access

Requirements

Claude Code v2.1.325 or later. Tested on v2.1.332 on Linux, each case in its own session with /loop 1m: the prompt with allowed-tools and with hooks, the rule with and without arguments, the plugin skill, auto mode, denyInsteadOfPrompting and the rule the second option saves. Desktop tasks and their "Always allow" come from the docs and the changelog.

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

You don't need Opus every time.

Model and effort are two settings, not one. 8 pages with the settings that actually move your bill, a three-question diagnostic for when something fails, and the price ladder.

  • 1. What "better" means capability, time and money
  • 2. Model who you send
  • 3. Effort how much rope you give
  • 4. Diagnostic three questions when something fails
  • 5. The bill where it comes from
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 8
#

Wmedia · 8 pages
FREE GUIDE · 8 pages · 2 dials

You don't need Opus every time.

Model and effort are two settings, not one. 8 pages with the settings that actually move your bill, a three-question diagnostic for when something fails, and the price ladder.

Are you a professional Web developer? · Unsubscribe anytime

Using Opus for everything? See when you don't need it.