agentleFS
swombatswombat/souls-house/CLAUDE.md

souls-house

CLAUDE.md48 starsChanged 2 months agoMITView on GitHub

Before major work, read docs/architecture.md and docs/decisions/README.md; follow the reviewed issue/PR and deployment gates in ADR 0002. Every user-visible change adds an entry under config/changelog/ in the same PR (and new capabilities go on the features page): see CONTRIBUTING.md. This is a Rails 8 + Svelte 5 application using Inertia.js. Always check the /docs/ folder for detailed documentation before making changes. 📁 /docs/ - All detailed documentation lives here Archived plans in docs/.bak/ are historical, not implementation instructions. Start with…

  • Deletes or force-pushes

The file

Show its rules and text

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

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Before major work, read docs/architecture.md and docs/decisions/README.md.

    line 3
  2. Very specific:

    Every user-visible change adds an entry under config/changelog/ in the same PR (and new capabilities go on the features page): see …

    line 5
  3. Distinctive:

    Only run migrations that are additive or safely reversible

    line 18
  4. Distinctive:

    If you need to test something destructive, use the test database only

    line 19
  5. Distinctive:

    If you need to test something, use the existing running server

    line 25
  6. Distinctive:

    Start with /docs/overview.md which indexes all documentation:

    line 45
  7. Very specific:

    Check /docs/architecture.md for patterns and structure

    line 54
  8. Distinctive:

    Follow existing code conventions in similar files

    line 55
  9. Very specific:

    Run tests after changes: rails test

    line 56
  10. Very specific:

    Test features using the agent-browser skill (invoke with /agent-browser)

    line 58
  11. Very specific:

    Read the docs first: - Check /docs/ before implementing

    line 75
  12. Distinctive:

    Follow patterns: - Look at existing code for conventions

    line 76
  13. Very specific:

    Test your changes: - Run rails test after modifications

    line 77
  14. Distinctive:

    Security matters: - Never commit secrets, use credentials

    line 78
  15. Very specific:

    Preserve development data: - Never run destroy_all or db:reset in development

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.md

Before major work, read docs/architecture.md and docs/decisions/README.md; follow the reviewed issue/PR and deployment gates in ADR 0002.

Every user-visible change adds an entry under config/changelog/ in the same PR (and new capabilities go on the features page): see CONTRIBUTING.md.

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

🚨 CRITICAL DATABASE RULES - NEVER VIOLATE THESE 🚨

NEVER WIPE OR RESET THE DEVELOPMENT DATABASE

  • NEVER run rails db:drop in development
  • NEVER run rails db:reset in development
  • NEVER run rails db:setup on an existing database
  • NEVER run destructive ActiveRecord commands like User.destroy_all in development console
  • NEVER truncate tables in development
  • The development database contains important data that must be preserved
  • Only run migrations that are additive or safely reversible
  • If you need to test something destructive, use the test database only

NEVER KILL THE DEVELOPMENT SERVER

  • NEVER kill the Rails server process (pid in tmp/pids/server.pid)
  • NEVER kill background bash processes running bin/dev
  • The development server runs on port 3100 (not 3000)
  • If you need to test something, use the existing running server

Essential Information

This is a Rails 8 + Svelte 5 application using Inertia.js. Always check the /docs/ folder for detailed documentation before making changes.

Quick Start

bin/dev          # Start development server (Rails + Vite)
bin/rails db:prepare # Prepare the intended local database
bin/rails test   # Run tests

Documentation Structure

📁 /docs/ - All detailed documentation lives here

Archived plans in docs/.bak/ are historical, not implementation instructions.

Start with /docs/overview.md which indexes all documentation:

  • Architecture - Application structure, patterns, and technology stack
  • Testing - Testing strategy and how to write/run tests
  • Commands - Complete development command reference

Critical Information

When Creating New Features

  1. Check /docs/architecture.md for patterns and structure
  2. Follow existing code conventions in similar files
  3. Run tests after changes: rails test
  4. Check linting: bin/rubocop
  5. Test features using the agent-browser skill (invoke with /agent-browser)

Technology Stack

  • Backend: Rails 8 with PostgreSQL
  • Frontend: Svelte 5 with Inertia.js
  • Styling: Tailwind CSS + DaisyUI + ShadcnUI
  • Build: Vite

Key Directories

  • /app/frontend/ - Svelte components and frontend code
  • /app/controllers/ - Rails controllers (render Inertia components)
  • /config/routes.rb - Application routes
  • /docs/ - Detailed documentation

Always Remember

  1. NEVER WIPE THE DEVELOPMENT DATABASE - See /docs/database-safety.md
  2. Read the docs first - Check /docs/ before implementing
  3. Follow patterns - Look at existing code for conventions
  4. Test your changes - Run rails test after modifications
  5. Security matters - Never commit secrets, use credentials
  6. Preserve development data - Never run destroy_all or db:reset in development

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.