project-core

Repository-wide guidance for a Rubik’s Cube solver, covering code boundaries, testing, project priorities, and the documents used to guide coding agents.

In plain words
What is it for?
Use it for any repository change, especially when deciding where code belongs, how to verify it, or how to update the project’s agent guidance.
Why use it?
It gives changes a shared baseline so different parts of the project follow the same structure and verification process.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/williamisnotdefined/rubiks-cube-solver/project-core
Clone the repo
git clone --depth 1 https://github.com/williamisnotdefined/rubiks-cube-solver

Made for: Cursor.

Per session 4,510 This file is loaded in full into every session.
When invoked 4,510 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04510 $0.04510
Opus 5 $0.02255 $0.02255
Sonnet 5 $0.00902 $0.00902
Haiku 4.5 $0.00451 $0.00451

Measured 2d ago against content hash d4727d7dc3c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-core scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project-core.mdc · 354 lines

How it starts

The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generated from ai/registry.json. Do not edit manually.

Canonical skill: ../../ai/skills/project-core.md.

Referenced context:

  • ../../ai/rules/repository-rules.md
  • ../../ai/rules/testing-rules.md
  • ../../ai/rules/ai-rules.md
  • ../../ai/architecture/project-architecture.md
  • ../../ai/architecture/ai-knowledge-system.md
  • ../../ai/glossary/cube-terms.md

This file is compiled from canonical AI knowledge files. Edit canonical files under ai, then run npm run ai:sync.

Compiled AI Skill: project-core

Canonical Skill: ai/skills/project-core.md

Project Core

Use this skill as the always-on repository baseline for AI-assisted changes anywhere in the Rubik's Cube solver.

Goal

Keep every change aligned with Rust engine boundaries, cube domain language, current project priorities, verification flow, and AI knowledge maintenance rules.

Read First

  • ai/rules/repository-rules.md
  • ai/rules/testing-rules.md
  • ai/rules/ai-rules.md
  • ai/architecture/project-architecture.md
  • ai/architecture/ai-knowledge-system.md
  • ai/glossary/cube-terms.md

Workflow

  • Start from docs/project-plan.md, nearby code, tests, and source docs before changing behavior.
  • Create or switch to a dedicated task branch before changing files; never work or commit directly on main.
  • Apply a narrower skill when the task touches cube engine, solver search, API boundary, frontend visualization, or AI knowledge.
  • Keep solver logic in Rust and keep AI routes generated.
  • Run targeted verification first, then broader checks when a change crosses boundaries.

Expected Output

  • Code follows the current repository boundaries and documented priorities.
  • Generated AI route files are never edited manually.
  • Final reporting names verification that was run or explains why it was blocked.

Verification

  • Run npm run ai:check after AI knowledge changes.
  • Run cargo test -p cube-engine after engine changes when Rust is installed.

Referenced Context

Read the full file on GitHub · 354 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 354 lines · 4,510 tokens per session scan A d4727d7dc3c1

Subscribe to this mod's changes

project-core is a cursor rule published in the GitHub repository williamisnotdefined/rubiks-cube-solver (4 stars, last pushed 8d ago), licensed MIT. It adds 4,510 tokens to every session, about $0.0226 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.