with runes compatibility
- **TypeScript** with strict typing
- **Marked** for markdown parsing
- **HTMLParser2** for secure HTML parsing
- **github-slugger** for heading ID generation
- **Vite** + **SvelteKit** for build system
## Project Structure
```text
1422mo agoReviewMountCreate a free account to mount
CLAUDE.md - Secure Coding Rules for Claude Code
This repository provides comprehensive security rules for Claude Code, covering web applications, AI/ML systems, and agentic AI.
## Project Overview
**Purpose**: Open-source security
14212mo agoReviewMountCreate a free account to mount
invocation linking yet)
## Python SDK Rules (v1.0.0+)
Code Pathfinder uses **Python SDK** for writing security rules. Rules are Python functions that query the call graph using the MCP interface.
### Example
1412y agoReviewMountCreate a free account to mount
discovered, perform one bounded live visit/API read and record solved-state evidence before reporting.
- `Security Policy`: when `/.well-known/security.txt` or an equivalent policy path is queued/discovered, fetch it as a concrete
1397mo agoReviewMountCreate a free account to mount
reviewed — no exceptions.
- **Code generation**: Must not introduce CRITICAL or MAJOR violations. INFO-level security rules (CA2050, CA2051, CA2052) are also mandatory.
- **Code review**: Explicitly check for violations and flag
1386mo agoReviewMountCreate a free account to mount
setup for package development
- Lazy database refresh for performance
- Mock utilities for dependency injection
**Security:**
- HTTP endpoints protected by Sanctum middleware by default
- User impersonation support in STDIO mode
13211mo agoReviewMountCreate a free account to mount
with code in this repository.
## Project Overview
This is a monorepo containing two related security-focused npm packages for hardening markdown against data exfiltration attacks through LLM prompt injection
13116mo agoReviewMountCreate a free account to mount
sanitization. The sanitizer uses a sophisticated markdown-to-HTML-to-markdown pipeline to ensure security while preserving markdown structure.
## Core Architecture
### Processing Pipeline
The sanitizer follows this flow:
1. **Autolink
13116mo agoReviewMountCreate a free account to mount
feature work
The subsystem checklists — backend abstraction, full-stack wiring, version
gating, test coverage, security, docs, code quality — are in
[`/mxcli-dev:review`](.claude/commands/mxcli-dev/review.md), which is the command
that applies them
12857d agoReviewMountCreate a free account to mount
with `.js` extensions in imports (even for .ts source files, required by NodeNext resolution).
### Security Model
- **Signing threat model**: Skill file HMAC-SHA256 signatures protect against external attackers and file
1276mo agoReviewMountCreate a free account to mount
type
- `@Failure` — at minimum 404 and 500; include 400 when the handler validates input
- `@Security APIKeyAuth` — required on all non-deprecated endpoints
- `@Deprecated` — required on deprecated endpoints (paired with
1269mo agoReviewMountCreate a free account to mount
sitemap.xml og-image.png
```
## Hard constraints
**CSP has no `'unsafe-inline'`.** `_headers` sets a real Content-Security-Policy. That means:
no inline `style="..."` attributes
1263mo agoReviewMountCreate a free account to mount
form conventions, layout rules. All UI must follow these conventions exactly.
- **[docs/BACKEND.md](docs/BACKEND.md)** – architecture, security model, database schema, caching strategy, API conventions, testing. All server-side code must follow these
1259mo agoReviewMountCreate a free account to mount
A file Claude Code reads at the start of every session. It holds the commands, conventions and warnings the agent needs for this project.
Where does it go?
At the repository root. Claude Code also reads CLAUDE.md files in subdirectories when it works there.
What should it contain?
Build and test commands, the project's layout, conventions that aren't obvious from the code, and mistakes to avoid. Short files tend to work better than long ones.
CLAUDE.md or AGENTS.md?
Claude Code reads CLAUDE.md; most other agents read AGENTS.md. Many projects keep one and point the other at it.