Skip to content

Remove personal context-mode tool routing block from committed CLAUDE.md and enforce writing style in CI #111

Closed

Description

@TMHSDigital

Why it matters

The committed CLAUDE.md ends with a long "context-mode, MANDATORY routing rules" section. It tells assistants that curl and WebFetch are "BLOCKED" and redirects them to MCP tools that only exist on the maintainer's machine.

This has three effects:

  • Any contributor or agent using a different setup gets instructions that are wrong for their environment.
  • It is public project documentation, so it reads as noise.
  • It breaks the repo's own writing standard, with dozens of em dashes.

The writing-style rule ("No em dashes, en dashes, or emoji") is broken elsewhere too, because CI does not enforce it.

Evidence

  • CLAUDE.md lines ~178-230 on main: the # context-mode section.
  • Em dashes also appear in:
    • docs/drift-check-token-setup.md:54,109
    • standards/ci-cd.md:154,156
    • .github/actions/drift-check/action.yml:7,108,166,240
    • scripts/drift_check/cli.py (sticky-issue output) and report/issue.py docstrings
  • The safety-scan job in .github/workflows/validate.yml checks emails, paths, DOM sinks and secrets, but not dashes or emoji.

Suggested approach

  • Move the context-mode block to a gitignored local file such as CLAUDE.local.md, or into user-level config.
  • Fix the existing dash occurrences.
  • Add a safety-scan step that greps tracked *.md, *.py, *.yml, *.j2 and *.html for U+2013, U+2014 and common emoji ranges, with an allowlist for vendored files.

Done when

  • CLAUDE.md contains only project guidance.
  • CI fails on new em dashes, en dashes and emoji.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cidocumentationpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions