agentleFS
EcuaByte-latEcuaByte-lat/Cortex/CLAUDE.md

Cortex

CLAUDE.md2 starsChanged 11 months agoMITView on GitHub

Generated by Cortex Memory System - 2026-01-09 At the start of EVERY session, when the Cortex connector is available: Review loaded context before writing any code. If the connector is unavailable, read docs/strategy/PRODUCT_DIRECTION.md and inspect the repository directly; never claim that memory was queried when it was not. Cortex preserves verified engineering state so a human or coding agent can resume work safely across sessions, tools, and vendors. Prefer task, evidence, decision, artifact, verification, and handoff concepts over generic memories.…

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read Code Carefully: Follow data flow, don't assume

    line 43
  2. Distinctive:

    When reviewing, act as a critical senior developer:

    line 50
  3. Very specific:

    Create reusable prompts in .claude/commands/:

    line 77
  4. Very specific:

    Use /security-review for vulnerability analysis

    line 104
  5. Distinctive:

    Never expose credentials in logs or errors

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Code Instructions

Generated by Cortex Memory System - 2026-01-09

Core Principle: Evidence-First Engineering

At the start of EVERY session, when the Cortex connector is available:

cortex_context("summary of current task")

Review loaded context before writing any code. If the connector is unavailable, read docs/strategy/PRODUCT_DIRECTION.md and inspect the repository directly; never claim that memory was queried when it was not.

Product Boundary

Cortex preserves verified engineering state so a human or coding agent can resume work safely across sessions, tools, and vendors. Prefer task, evidence, decision, artifact, verification, and handoff concepts over generic memories. Read docs/strategy/README.md before architecture work.

Workflow Pattern

EXPLORE → PLAN → CODE → VERIFY → COMMIT
PhaseAction
ExploreRead files, query memory, understand context
PlanUse think hard or ultrathink for complex problems
CodeIncremental changes with git add -p checkpoints
VerifyRun tests after each logical change
CommitConventional commits, document "why" not "what"

Extended Thinking Modes

KeywordWhen to Use
thinkSimple decisions, quick reasoning
think hardComplex logic, multi-file changes
ultrathinkArchitecture decisions, security review

Structured Debugging Workflow

  1. Clear Bug Report: Specific symptoms, not vague descriptions
  2. Read Code Carefully: Follow data flow, don't assume
  3. List All Causes: Generate hypotheses, not just fixes
  4. Rank by Likelihood: Prioritize investigation order
  5. Test Fixes in Isolation: One change at a time

Adversarial Code Review

When reviewing, act as a critical senior developer:

"Do a git diff and pretend you're a senior dev doing a code
review and you HATE this implementation. What would you
criticize? What edge cases am I missing?"

Context and Evidence Integration

EventAction
Architecture decisioncortex_add(type="decision")
Discovered patterncortex_add(type="code")
Configuration choicecortex_add(type="config")
Important factcortex_add(type="fact")
Potential riskcortex_add(type="risk")

File Imports (Monorepo Pattern)

Reference other docs with @path/to/file.md syntax:

@docs/architecture.md
@packages/core/README.md

Custom Commands

Create reusable prompts in .claude/commands/:

<!-- .claude/commands/fix-issue.md -->
Analyze issue #$ARGUMENTS and create a fix

XML Tags for Structure

<context>Current task environment</context>
<instructions>Step-by-step goals</instructions>
<constraints>Must use existing patterns</constraints>
<output_format>Desired response structure</output_format>

Anti-Patterns (NEVER DO)

  • ❌ Never assume context not in memory
  • ❌ Never claim that cortex_context was queried when the connector is unavailable
  • ❌ Never commit without running tests
  • ❌ Never use any type - use unknown
  • ❌ Never log secrets or PII
  • ❌ Never over-engineer - keep changes focused
  • ❌ Never refactor beyond what was asked

Security Practices

  • Use /security-review for vulnerability analysis
  • Block risky operations on .env and .git/
  • Validate inputs before processing
  • Never expose credentials in logs or errors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.