CLAUDE.md and AGENTS.md (now a symlink) shrink to a pointer at the bootstrap, which absorbs the rule-editing instructions. The two identical per-tool templates merge into rules/ai/AGENT.template.md. README drops the read path duplicated from the bootstrap. The web-visual-baseline starter CSS/HTML duplicated assets/view.css and is removed in favor of the vendored assets. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2.7 KiB
2.7 KiB
Agent Bootstrap
Read this file first when bible/ is attached as a submodule.
Do not read the whole repository by default. This repository is a rule library, not a codebase. Use targeted reading.
Reading Order
- Read this file.
- Read
bible-local/README.md. - Read only the relevant files in
bible-local/architecture/andbible-local/decisions/. - Read only the relevant shared contracts in
bible/rules/patterns/.
Editing This Repository
If you are editing this bible/ repository itself, read the target contract and its nearby
README.md. Do not walk all contracts unless the task is explicitly about restructuring the library.
- Edit the relevant existing contract, or create a new
rules/patterns/<topic>/contract.md. - Normative rules go in
contract.md; examples and rationale go in the pattern'sREADME.md. - Do not create rules outside
rules/patterns/. Do not expand scope beyond engineering rules and patterns. - Run
sh scripts/lint.shafter changes.
Always-On Contracts
Read these on most tasks:
bible/rules/patterns/kiss/contract.mdbible/rules/patterns/module-structure/contract.mdbible/rules/patterns/task-discipline/contract.mdbible/rules/patterns/testing-policy/contract.mdbible/rules/patterns/go-code-style/contract.mdbible/rules/patterns/git-sync-check/contract.md
Task Router
Read additional contracts by task type:
- HTTP handlers, JSON APIs, status codes:
go-api,go-background-tasks,go-logging - DB queries, migrations, backups, startup DB safety:
go-database,backup-management - Local-first desktop migration/recovery:
local-first-recovery - Tables, bulk actions, filters, pagination:
table-management,controls-selection - Visual style for server-rendered web apps:
web-visual-baseline,table-management,controls-selection - Forms, validation, modals:
forms-validation,modal-workflows - Import/export, CSV, upload batching:
import-export,batch-file-upload - Build/deploy/runtime packaging:
app-binary,build-version-display,module-versioning - LiveCD/OpenRC/boot-time services:
alpine-livecd,unattended-boot-services,vendor-installer-verification - Release authenticity / signed binaries:
release-signing - Identifiers, vendors, data normalization:
identifier-normalization,no-hardcoded-vendors - BOM rows, component/LOT mappings:
bom-decomposition - Secrets, credentials, config with sensitive values:
secret-management - Project architecture documentation rules:
go-project-bible
Default Rule
If a contract is not clearly relevant to the current task, skip it. Prefer reading one correct contract fully over skimming twenty unrelated ones.