Repository navigation
fix(skills): skip claudecode scheduled-task skills at project scope - #3003
Merged
Merged
Conversation
Claude Code reads scheduled tasks only from the user config directory (~/.claude/scheduled-tasks/ or CLAUDE_CONFIG_DIR); no project-level location is documented. A project-scope generate used to write <project>/.claude/scheduled-tasks/<name>/SKILL.md, a file that looks live and never fires. The skills processor now warns and skips such skills unless --global is set, following the user-scope-only sandbox key policy in claudecode-permissions.ts. Import is unchanged. Part of #2664 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019yLN6CVqeZ8HCrjRb9o7mK
Skills have no root frontmatter flag; a global generate picks up a scheduled-task skill without it. Also note that a project-scope --delete removes a stale copy, state that Rulesync does not follow CLAUDE_CONFIG_DIR, and link the upstream docs from the skip. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019yLN6CVqeZ8HCrjRb9o7mK
Owner
Author
|
@dyoshikawa Thank you! |
This was referenced Sep 12, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Gap 2 of #2664:
claudecode.scheduled-task: trueskills were routed to.claude/scheduled-tasks/<name>/SKILL.mdregardless of scope, so a project-scope generate wrote<project>/.claude/scheduled-tasks/<name>/SKILL.md— a file that looks live and never fires.Re-verified against the current docs on 2026-09-12:
~/.claude/scheduled-tasks/<task-name>/SKILL.md(or underCLAUDE_CONFIG_DIRif set)". No project-level location is documented.scheduled-tasks/(negative evidence already recorded on the issue).The fix shape follows the precedent set by #2694 for user-scope-only sandbox keys: warn and skip at project scope, unchanged at global scope, import unchanged.
Changes
src/features/skills/skills-processor.ts: ascheduled-taskskill targeted atclaudecodeis skipped with a warning whenglobalis false. The warning names the skill, states where Claude Code reads scheduled tasks from, and points at--globalplus any stale copy an earlier generate left behind.docs/reference/file-formats.md: the frontmatter comment and the scheduled-task paragraph now state the user-scope-only constraint;src/generated/docs-content.tsregenerated.~/.claude/scheduled-tasks/<name>/SKILL.mdoutput and that nothing lands in the project.Gaps 1 and 3 on the issue (
.claude/workflows/and the pluginworkflows/component) are a new feature dimension and stay open, so this PR does not close the issue.Testing
pnpm cicheck(413 test files, 11208 tests passed; content checks clean)npx vitest run --config vitest.e2e.config.ts src/e2e/e2e-skills.spec.ts -t scheduled-task(5 passed)Part of #2664
🤖 Generated with Claude Code
https://claude.ai/code/session_019yLN6CVqeZ8HCrjRb9o7mK