agentleFS
swombatswombat/souls-house/AGENTS.md

souls-house

AGENTS.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. For Svelte boundaries and file-size thresholds, follow docs/frontend-components.md: review components/layouts above 200 lines and pages above 300; ceilings are 300 and 500 respectively. Run bun run check:svelte-size. Reuse is not required for a coherent section to become a component; keep Inertia pages as pages.

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 3
  2. Very specific:

    Run bin/dev to launch Rails, Vite, and the Solid* services on http://localhost:3100.

    line 9
  3. Distinctive:

    Ask “How would Rails solve this today?” before adding gems or custom JS.

    line 21
  4. Distinctive:

    If a solution feels clever, rewrite it straighter and document any intentional divergence from convention.

    line 23
  5. Very specific:

    Every user-visible change adds an entry under config/changelog/ in the same PR, and new capabilities also go on the features page.

    line 29
  6. Very specific:

    Read docs/multi-instance-development.md before setting one up.

    line 46
  7. Very specific:

    Use a pinned upstream commit in agent-runtime/chaos-ref.

    line 63

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

Repository Guidelines

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

Project Structure & Module Organization

souls.house couples Rails 8 and Svelte 5 through Inertia. Domain models live in app/models, controllers in app/controllers, and jobs in app/jobs. Frontend primitives and patterns stay under app/frontend, with styles in app/frontend/styles. Configuration belongs inside config, and docs/overview.md points to current architectural guides. Historical plans and reviews are in docs/.bak/ and are not implementation instructions; docs/proposals/ is explicitly unimplemented discussion.

Build, Test, and Development Commands

Run bin/dev to launch Rails, Vite, and the Solid* services on http://localhost:3100. Keep schemas up to date with bin/rails db:prepare and migrate via bin/rails db:migrate && bin/rails db:schema:dump. Frontend tooling runs through Bun: bun install, bun run test:unit (Vitest), bun run test (Playwright E2E). Use bin/rails test or narrow scope, e.g. bin/rails test test/models/user_test.rb.

Coding Style & Naming Conventions

Write as though you are DHH shipping code into Rails core: choose the boring, conventional solution, prefer readability over cleverness, and rely on Rails helpers before building abstractions. Ruby follows RuboCop (bin/rubocop), two-space indent, snake_case methods, PascalCase classes. Keep models lean; push orchestration into POROs under app/lib or concerns. Svelte components use kebab-case filenames (user-menu.svelte), camelCase props, and Tailwind utility classes; format with bun run format / bun run format:check.

DHH Mode Checklist

For Svelte boundaries and file-size thresholds, follow docs/frontend-components.md: review components/layouts above 200 lines and pages above 300; ceilings are 300 and 500 respectively. Run bun run check:svelte-size. Reuse is not required for a coherent section to become a component; keep Inertia pages as pages.

  1. Ask “How would Rails solve this today?” before adding gems or custom JS.
  2. Pretend future maintainers are Rails core reviewers—ship code they would merge.
  3. If a solution feels clever, rewrite it straighter and document any intentional divergence from convention.

Testing Guidelines

Minitest lives in test/; mirror Rails naming such as accounts_controller_test.rb and lean on fixtures in test/fixtures. Co-locate Vitest specs beside Svelte sources as *.test.ts. Playwright journeys reside in playwright/tests; always run them via the provided scripts and never touch the dev database destructively. Expand coverage with each feature and share factories instead of hard-coded records.

Commit & Pull Request Guidelines

Every user-visible change adds an entry under config/changelog/ in the same PR, and new capabilities also go on the features page; see CONTRIBUTING.md. Use short, imperative commit subjects (<72 chars) like Add chats index pagination, grouping related work. Reference issues in the body when useful. PRs need a problem summary, UI screenshots when visuals change, and explicit notes on migrations or secrets. Before pushing for review, run targeted tests for the files you changed plus bin/rubocop (for Ruby changes) or bun run format:check and bun run check:svelte-size (for frontend changes), and let sharded PR CI run the full suite instead of running unsharded bin/rails test and bun run test locally.

Branch Policy

Changes to master go through a pull request. The exception: Lume, Mira and Daniel may commit small changes straight to master. Small means confidence is high that it works and a second pair of eyes wouldn't catch anything, such as a small functional fix or a test trim (ADR 0002, 2026-10-16). If in doubt, open a PR. For major work, follow ADR 0002: an issue approved by the other author, a dedicated PR branch, then reciprocal review of the PR head before merge into master. Daniel explicitly authorised this process on 2026-09-28; it supersedes the former mainline-only rule for these changes. Verify your branch and scope before every commit/push. Do not commit implementation directly to master to bypass review, and do not create worktrees or unrelated branches without authorisation.

Parallel Local Development

Independent clones named souls-house-1 through souls-house-9 are supported. Read docs/multi-instance-development.md before setting one up. Use the pinned Ruby/Bun versions, bin/instance setup, and the normal bin/rails test / browser runners; do not bypass ownership guards or copy the primary database. This does not change the branch policy above. Prefer one coding agent per instance. If a test lock is held, wait or use another clone; never delete the lock file to bypass a running process.

Environment & Safety

The shared development database is long-lived—never run rails db:drop, db:reset, or mass destroy_all. Leave the existing bin/dev process running instead of killing its PID in tmp/pids. Manage secrets with config/credentials.yml.enc and consult docs/ before altering infrastructure or dependencies. Installation identity (domain, host, SSH, registry, docker gid, storage backend, embeddings digest) lives only in gitignored config/house.env, with config/house.env.example as the committed template—never hard-code a host, domain, registry, or IP anywhere else. test/house/identity_leak_test.rb fails the suite on a violation; its allowlist is where a legitimate exception gets recorded, with its reason. Deploying needs house.env present; run bin/house doctor to check.

Chaos Runtime: Upstream First

We have write access to seuros/chaos. General-purpose Chaos fixes and useful runtime functionality belong in that repository, through focused issues and PRs, not a persistent patch stack in souls.house. Read Chaos's current docs/contributing.md before contributing; write access does not bypass review, tests, or authorship/sign-off requirements.

Use a pinned upstream commit in agent-runtime/chaos-ref. Local patches are an exception only when absolutely necessary to unblock an urgent problem: document the reason, upstream issue/PR, owner, and removal condition. Remove the exception as soon as the upstream fix is available. Do not discard a working fix before its replacement is verified. Review the complete build graph before expensive builds; compile the final source once, never append patch-and-rebuild layers.

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.