[FEATURE] Ability to run slash command in CLAUDE.md

Resolved 💬 5 comments Opened Nov 25, 2025 by cnatis Closed Nov 25, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude does not always follow instructions in the CLAUDE.md file (loading skills, incorporating validation into all workflows, etc...).

Claude hooks do not allow running custom slash commands within Claude.

I always have to remind Claude to run the critical workflow from the CLAUDE.md file so that it has the context it needs to proceed.

Example of the start of every Claude session I run:

> Have you run the critical workflow within CLAUDE.md?

● No, I haven't. Let me run the critical workflow now:
  ⎿  Allowed 1 tools for this command

● Read(.claude/hooks/auto-validate.md)
  ⎿  Read 233 lines

> /setup-claude is running…

> The "git-management-skill" skill is running
  ⎿  Allowed 1 tools for this command

● I'm running the critical workflow. Let me wait for the /setup-claude command to complete so it can prompt you about
  which project to work on.

  The git-management-skill has loaded and I can see from your current branch
  (cnatis/feature/my-awesome-feature-phase1) that you're working on a feature task with phases.
  The skills are now loaded.

  Once /setup-claude completes, I'll:
  - Confirm the project you're working on (appears to be plx-web based on your branch and file changes)
  - Load that project's CLAUDE.md
  - Load the project resources
  - Be ready to help with your work

Proposed Solution

I'd like for Claude to run slash commands in the CLAUDE.md file so that I do not have to remember to tell Claude to load critical context before working.
This should run on every new session, and when context is cleared (whenever CLAUDE.md is loaded).

Example CLAUDE.md file:

# Required Instructions

- Always be very concise!

## Workflow

- **CRITICAL**: Run SlashCommand(/setup-claude) command
- **CRITICAL**: Load the skill tool for all the skills listed in this file under the `Skills` heading
- **CRITICAL**: After completing significant work, automatically run validation (see Auto-Validation Hook below)

## Instructions

1. Run SlashCommand(/setup-claude) command to understand what project(s) we are working in
2. Make sure that all Skills under the `Reference -> Skills` heading below have been loaded
3. Read the auto validation hook under the `Reference -> Auto-Validation Hook` heading
4. Ensure that project resources have been loaded for the project(s) we are working in see `Reference -> Workspace Structure` to understand

Alternative Solutions

I have tried to use hooks, but they cannot run slash commands.
I have tried to have CLAUDE.md run the slash command, but it never does.

Current workaround is to remind Claude to run the critical workflow at the start of every session and whenever context is cleared.

Priority

High - Significant impact on productivity

Feature Category

Configuration and settings

Use Case Example

  1. I am working in a Claude workspace that shares a common Claude configuration across multiple sub repositories
  2. I start a new Claude session
  3. Claude instantly asks me for context (because thats what my slash command does), so that I can tell it what sub repository I am working in, so that it can load resources from that sub repository (each sub repository contains the same resource folder structure)

Additional Context

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗