Prompt file imported from matryer/context (
.claude/commands/ask.md). Copyright stays with the author.
Ask Command
Command: ask
Run a predefined question from the /questions/ folder.
Input
The user provides the name of the question to run (without the .md extension).
Example: ask team-overview
Steps
-
Identify the question file
Look for the question file at
/questions/{name}.mdwhere{name}is the input provided by the user. -
Handle missing question
If the question file does not exist:
- Show an error:
Question not found: {name} - Read
/questions/README.mdto list available questions - Display the available questions to the user
- Stop execution
Example error:
❌ Question not found: weekly-summary Available questions: - team-overview — A concise overview of each person and their current focus. - Show an error:
-
Execute the question
If the question file exists:
- Read the question file
- Find the
## Promptsection - Execute the prompt against the knowledgebase
- Output the results in the format specified by the question
-
Handle missing prompt
If the question file exists but has no
## Promptsection:- Show an error:
Question file found but contains no prompt: {name} - Suggest the user add a
## Promptsection to the question file
- Show an error:
Guidelines
- Question names are case-sensitive and match the filename (without
.md) - Questions should be executed exactly as specified in their
## Promptsection - Output should follow any format guidelines in the question file
- If the question references folders that don't exist (e.g., no
/people/folder), produce appropriate empty output rather than an error
