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/SyntaxArc/archipy-pluginWrote 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/syntaxarc/archipy-plugin/using-archipy-repositories)<a href="https://agentmods.dev/rules/syntaxarc/archipy-plugin/using-archipy-repositories"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-repositories/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/syntaxarc/archipy-plugin/using-archipy-repositories"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-repositories.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.00432 | $0.00432 |
| Opus 5.5 | $0.00173 | $0.00173 |
| Sonnet 5.5 | $0.00086 | $0.00086 |
| Haiku 4.5 | $0.00043 | $0.00043 |
Grade A, and why
using-archipy-repositories 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 1mo 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.
What it actually says
Using ArchiPy Repositories
Each domain owns its data access under repositories/{domain}/.
Live: https://syntaxarc.github.io/ArchiPy/getting-started/project_structure/
Layout
repositories/{domain}/
├── adapters/ # Domain wrappers around ArchiPy / external clients
│ └── {domain}_{purpose}_adapter.py
└── {domain}_repository.py # Orchestrate adapters; map to repository DTOs
Responsibilities
adapters/— entity construction, query building, thin wrappers; prefer ArchiPy extras (uv add "archipy[redis]") before inventing clients.{domain}_repository.py— orchestrates adapters, cache-aside patterns, maps results to repository DTOs (*CommandDTO/*QueryDTO/*ResponseDTO).- Repository methods take at most one argument besides
self. With two or more parameters, wrap them in one*CommandDTO(writes) or*QueryDTO(reads) undermodels/dtos/{domain}/repository/, e.g.get_order(query: GetOrderQueryDTO), notget_order(order_id, user_id). Callers (logics) build the DTO. - Raw driver exceptions are mapped inside domain adapters. Repositories receive domain-facing errors and may wrap a
specific error only to add domain context, preserving the cause with
raise ... from e.
Domain Isolation
- Never import or call a repository from a different domain.
- Cross-domain reads go through the other domain’s logic class.
Do Not
- Put business rules or
@postgres_sqlalchemy_atomichere (that belongs inlogics/). - Create a top-level app
adapters/package — domain adapters live under repositories. - Leak raw driver exceptions into logics/services.
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.
- 1mo ago Changed · -2 tokens per session 55506df99229
- 1mo ago Changed · +3 lines · +88 tokens per session c1c3f0795495
- 2mo ago Changed · +1 lines · +16 tokens per session 716f5f53be6e
- 3mo ago First seen · 38 lines · 330 tokens per session scan A b158c38208d3
using-archipy-repositories is a cursor rule published in the GitHub repository SyntaxArc/archipy-plugin (3 stars, last pushed 23d ago), licensed MIT. It adds 432 tokens to every session, about $0.0017 per session on Opus 5.5. 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.
using-archipy-repositories compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-archipy-repositoriesSyntaxArc/archipy-plugin | Cursor rule | 3 | 23d ago | MIT | A | 432 | Cursor |
| python-flask-json-guide-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 185 | Cursor |
| java-springboot-jpa-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,006 | Cursor |
| py-fast-apiPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 720 | Cursor |
| python-django-best-practices-cursorrules-prompt-fiPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 698 | Cursor |
| pythonPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 734 | Cursor |
| python-fastapi-best-practices-cursorrules-prompt-fPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 486 | Cursor |