Skip to content

fix(skills): skip claudecode scheduled-task skills at project scope - #3003

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2664-scheduled-task-scope
Sep 12, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2664-scheduled-task-scope

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Background

Gap 2 of #2664: claudecode.scheduled-task: true skills were routed to .claude/scheduled-tasks/<name>/SKILL.md regardless 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:

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: a scheduled-task skill targeted at claudecode is skipped with a warning when global is false. The warning names the skill, states where Claude Code reads scheduled tasks from, and points at --global plus 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.ts regenerated.
  • Tests: processor unit tests for the project-scope skip (warning asserted) and the global-scope passthrough; the e2e project-scope case now asserts the skip and warning, and a new global-mode e2e case asserts the ~/.claude/scheduled-tasks/<name>/SKILL.md output and that nothing lands in the project.

Gaps 1 and 3 on the issue (.claude/workflows/ and the plugin workflows/ 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

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
@dyoshikawa
dyoshikawa merged commit 9f2eedf into main Sep 12, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2664-scheduled-task-scope branch September 12, 2026 11:23
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant