Skip to content

Commit 7cf87f9

Browse files
TMHSDigitalclaude
andcommitted
fix: replace em dashes in CLAUDE.md context-mode section
The context-mode routing rules block used em dashes, which the Validate workflow's content-quality check rejects. Swap all 16 em/en dashes for hyphens per the repo's no-em-dash convention. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6fe4623 commit 7cf87f9

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

CLAUDE.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -145,35 +145,35 @@ Do not hand-edit `plugin.json` `version`, the README badge, or the `**Version:**
145145
| `mcp-server/data/events.json` | Indexed canonical CFX event names and payloads |
146146
| `mcp-server/data/docs_index.json` | Indexed `docs.fivem.net` snippets for offline search |
147147

148-
# context-mode MANDATORY routing rules
148+
# context-mode - MANDATORY routing rules
149149

150-
You have context-mode MCP tools available. These rules are NOT optional they protect your context window from flooding. A single unrouted command can dump 56 KB into context and waste the entire session.
150+
You have context-mode MCP tools available. These rules are NOT optional - they protect your context window from flooding. A single unrouted command can dump 56 KB into context and waste the entire session.
151151

152-
## BLOCKED commands do NOT attempt these
152+
## BLOCKED commands - do NOT attempt these
153153

154-
### curl / wget BLOCKED
154+
### curl / wget - BLOCKED
155155
Any Bash command containing `curl` or `wget` is intercepted and replaced with an error message. Do NOT retry.
156156
Instead use:
157157
- `ctx_fetch_and_index(url, source)` to fetch and index web pages
158158
- `ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
159159

160-
### Inline HTTP BLOCKED
160+
### Inline HTTP - BLOCKED
161161
Any Bash command containing `fetch('http`, `requests.get(`, `requests.post(`, `http.get(`, or `http.request(` is intercepted and replaced with an error message. Do NOT retry with Bash.
162162
Instead use:
163-
- `ctx_execute(language, code)` to run HTTP calls in sandbox only stdout enters context
163+
- `ctx_execute(language, code)` to run HTTP calls in sandbox - only stdout enters context
164164

165-
### WebFetch BLOCKED
165+
### WebFetch - BLOCKED
166166
WebFetch calls are denied entirely. The URL is extracted and you are told to use `ctx_fetch_and_index` instead.
167167
Instead use:
168168
- `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` to query the indexed content
169169

170-
## REDIRECTED tools use sandbox equivalents
170+
## REDIRECTED tools - use sandbox equivalents
171171

172172
### Bash (>20 lines output)
173173
Bash is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
174174
For everything else, use:
175-
- `ctx_batch_execute(commands, queries)` run multiple commands + search in ONE call
176-
- `ctx_execute(language: "shell", code: "...")` run in sandbox, only stdout enters context
175+
- `ctx_batch_execute(commands, queries)` - run multiple commands + search in ONE call
176+
- `ctx_execute(language: "shell", code: "...")` - run in sandbox, only stdout enters context
177177

178178
### Read (for analysis)
179179
If you are reading a file to **Edit** it → Read is correct (Edit needs content in context).
@@ -184,11 +184,11 @@ Grep results can flood context. Use `ctx_execute(language: "shell", code: "grep
184184

185185
## Tool selection hierarchy
186186

187-
1. **GATHER**: `ctx_batch_execute(commands, queries)` Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
188-
2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` Query indexed content. Pass ALL questions as array in ONE call.
189-
3. **PROCESSING**: `ctx_execute(language, code)` | `ctx_execute_file(path, language, code)` Sandbox execution. Only stdout enters context.
190-
4. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` Fetch, chunk, index, query. Raw HTML never enters context.
191-
5. **INDEX**: `ctx_index(content, source)` Store content in FTS5 knowledge base for later search.
187+
1. **GATHER**: `ctx_batch_execute(commands, queries)` - Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
188+
2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` - Query indexed content. Pass ALL questions as array in ONE call.
189+
3. **PROCESSING**: `ctx_execute(language, code)` | `ctx_execute_file(path, language, code)` - Sandbox execution. Only stdout enters context.
190+
4. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` - Fetch, chunk, index, query. Raw HTML never enters context.
191+
5. **INDEX**: `ctx_index(content, source)` - Store content in FTS5 knowledge base for later search.
192192

193193
## Subagent routing
194194

@@ -197,7 +197,7 @@ When spawning subagents (Agent/Task tool), the routing block is automatically in
197197
## Output constraints
198198

199199
- Keep responses under 500 words.
200-
- Write artifacts (code, configs, PRDs) to FILES never return them as inline text. Return only: file path + 1-line description.
200+
- Write artifacts (code, configs, PRDs) to FILES - never return them as inline text. Return only: file path + 1-line description.
201201
- When indexing content, use descriptive source labels so others can `ctx_search(source: "label")` later.
202202

203203
## ctx commands

0 commit comments

Comments
 (0)