probo / rules
getprobo/probo/.cursor/rules/coredata-migrations.mdc
Coredata SQL migration naming and conventions
Cursor rule1.4k starsChanged 3 months ago
What's in it
- Coredata migrations
- Naming — never invent or infer the timestamp
- License header
- Content rules
--- description: Coredata SQL migration naming and conventions globs: pkg/coredata/migrations/*.sql alwaysApply: false --- # Coredata migrations See full guides: `contrib/claude/coredata.md` (Migrations) and `contrib/claude/license.md` (SQL header). ## Naming — never invent or infer the timestamp Migration files use UTC timestamp naming `YYYYMMDDTHHMMSSZ.sql`. The timestamp is the **real current time**, obtained by running the command — do NOT hand-write a round number (e.g. `...T100000Z`) and do NOT infer the next name from existing files. ```bash # Run this and use its exact output as the filename: date -u +"%Y%m%dT%H%M%SZ.sql" ``` ## License header Every `.sql` file starts with the MIT header (use the current year). Copy the exact block from `contrib/claude/license.md` (SQL section). ## Content rules - One logical change per file. - No indexes by default — add one only when justified by observed production latency. Constraint-enforcing indexes (e.g. unique) are exempt. - Avoid `DEFAULT` clauses. When adding a non-nullable column to an existing table, set a `DEFAULT` to backfill existing rows, then `DROP DEFAULT` in the same migration so inserts must supply the value explicitly.
More agent context in getprobo/probo
29 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Cursor rule
- .cursor/rules/code-comments.mdc
- .cursor/rules/config-propagation.mdc
- .cursor/rules/detail-page-back-link.mdc
- .cursor/rules/git-commit-signing.mdc
- .cursor/rules/git-commit-style.mdc
- .cursor/rules/go-authorize-scope.mdc
- .cursor/rules/go-coredata-load-naming.mdc
- .cursor/rules/go-declarations.mdc
- .cursor/rules/go-delete-no-rows-check.mdc
- .cursor/rules/go-error-handling.mdc
- .cursor/rules/go-imports.mdc
- .cursor/rules/go-logging.mdc
- .cursor/rules/go-multiline-params.mdc
- .cursor/rules/go-naming-conventions.mdc
- .cursor/rules/go-pg-constraint-check.mdc
- .cursor/rules/go-upsert-returning-id.mdc
- .cursor/rules/go-url-construction.mdc
- .cursor/rules/list-filtering.mdc
- .cursor/rules/no-outlet-context-data.mdc
- .cursor/rules/prompt-style.mdc
- .cursor/rules/react-named-exports-lazy-entry.mdc
- .cursor/rules/relay-connection-item-components.mdc
- .cursor/rules/relay-fragments-not-data-props.mdc
- .cursor/rules/relay-required-directive.mdc
- .cursor/rules/skeleton-width-sync.mdc
- .cursor/rules/template-files.mdc
- .cursor/rules/v2-color-scale.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

