Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/jaycewalzer1/SilverKey-Inc.Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./sqlalchemy-patterns)<a href="https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./sqlalchemy-patterns"><img src="https://agentmods.dev/badge/rules/jaycewalzer1/silverkey-inc./sqlalchemy-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./sqlalchemy-patterns"><img src="https://agentmods.dev/badge/rules/jaycewalzer1/silverkey-inc./sqlalchemy-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02043 |
| Opus 5.5 | $0.00000 | $0.00817 |
| Sonnet 5.5 | $0.00000 | $0.00409 |
| Haiku 4.5 | $0.00000 | $0.00204 |
Grade A, and why
sqlalchemy-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQLAlchemy Patterns and Conventions
Overview
SQLAlchemy 2.0 conventions for the SilverKey backend: typed ORM models under Server/app/models/, API serialization via Server/app/dtos/.
Forbidden in app/models/
db.Column— useMapped[T] = mapped_column(...)backref=— useback_populateswith typedMapped/DynamicMappedon both sidesto_dict()on ORM classes — useapp/dtos/*(seeapp/dtos/README.md)
CI blocks db.Column and backref= via Server/scripts/lint/lint_sqlalchemy_legacy_models.py.
Forbidden query APIs (app/, tests/, scripts/)
Model.query.*anddb.session.query(...)— useselect()+db.session.scalar/scalars/execute
CI blocks legacy query usage via Server/scripts/lint/lint_legacy_orm_query.py.
Model Definitions
Basic Model Structure
from __future__ import annotations
from datetime import datetime, timezone
from sqlalchemy import Index
from sqlalchemy.orm import Mapped, mapped_column, relationship
from app import db
class MyModel(db.Model):
"""Brief description of what this model represents."""
__tablename__ = "my_models"
id: Mapped[str] = mapped_column(db.String(36), primary_key=True)
user_id: Mapped[str] = mapped_column(
db.String(36), db.ForeignKey("users.id"), nullable=False, index=True
)
name: Mapped[str] = mapped_column(db.String(255), nullable=False)
created_at: Mapped[datetime] = mapped_column(
default=lambda: datetime.now(timezone.utc), nullable=False, index=True
)
updated_at: Mapped[datetime] = mapped_column(
default=lambda: datetime.now(timezone.utc),
onupdate=lambda: datetime.now(timezone.utc),
nullable=False,
)
user: Mapped["User"] = relationship("User", back_populates="my_models")
items: Mapped[list["Item"]] = relationship(
"Item", back_populates="my_model", cascade="all, delete-orphan"
)
__table_args__ = (Index("idx_user_created", "user_id", "created_at"),)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 279 lines · 0 tokens per session scan A 228adfe85c81
sqlalchemy-patterns is a cursor rule published in the GitHub repository jaycewalzer1/SilverKey-Inc. (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,043 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
sqlalchemy-patterns compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sqlalchemy-patternsjaycewalzer1/SilverKey-Inc. | Cursor rule | 2 | 1mo ago | MIT | A | 0 | Cursor |
| django-ormsanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 8d ago | CC0-1.0 | A | 2,845 | Cursor |
| peeweesanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 8d ago | CC0-1.0 | A | 2,019 | Cursor |
| database-algorithm-rulesholtwood/awesome-cursorrules-zh | Cursor rule | 244 | 1mo ago | MIT | A | 3 | Cursor |
| django-modelsholtwood/awesome-cursorrules-zh | Cursor rule | 244 | 1mo ago | MIT | A | 78 | Cursor |
| alembicbernierllc/agents-environment-config | Cursor rule | 11 | today | MIT | A | 0 | Cursor |
| sqlalchemybernierllc/agents-environment-config | Cursor rule | 11 | today | MIT | A | 0 | Cursor |