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-decorators)<a href="https://agentmods.dev/rules/syntaxarc/archipy-plugin/using-archipy-decorators"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-decorators/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-decorators"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-decorators.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.00484 | $0.00484 |
| Opus 5.5 | $0.00194 | $0.00194 |
| Sonnet 5.5 | $0.00097 | $0.00097 |
| Haiku 4.5 | $0.00048 | $0.00048 |
Grade A, and why
using-archipy-decorators 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 Decorators
Helpers stay pure: no database calls, no network I/O, no constructing adapters, no domain business rules.
Prefer ArchiPy Decorators
Before writing a custom decorator, prefer ArchiPy under archipy.helpers.decorators:
ttl_cache— caching (archipy.helpers.decorators)- Unit of work (apply on logics, not repositories):
postgres_sqlalchemy_atomic(detectsasync def), imported fromarchipy.adapters.base.sqlalchemy.atomic- also
mysql_/sqlite_/starrocks_/ genericsqlalchemy_atomicvariants
- Tracing:
trace_span,trace_root,async_trace_span,async_trace_root,trace_class - Metrics:
measure_duration,async_measure_duration,count_calls,async_count_calls - Local timing only:
timing - Resilience:
retry,timeout - Other:
singleton,grpc_rate_limit(gRPC only)
Custom Decorators
- Live under
helpers/decorators/. - Preserve wrapped function signatures and type hints (
functools.wraps). - Document usage with a short example in the Google-style docstring.
- Raise
archipy.models.errorstypes such asConfigurationErrororInvalidArgumentErrorfor helper-level configuration/validation failures; do not invent ad-hoc exception classes. - Do not import concrete adapter implementations at module level. If a decorator needs a port, accept it as an argument or resolve via injected callback/config.
Do Not
- Hide adapter construction inside decorator modules.
- Catch broad
Exceptionwithout re-raising as a domain error withraise ... from e. - Write separate sync and async copies of a decorator when one wrapper can detect
inspect.iscoroutinefunction; ArchiPy'sretry,timeout,timing,ttl_cacheand*_sqlalchemy_atomicdo. - Put
@postgres_sqlalchemy_atomicon repositories or services — UoW belongs on logics.
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 · -1 lines · +26 tokens per session b37fca01a3f8
- 2mo ago Changed · +4 lines · +76 tokens per session a6106bfdfa15
- 3mo ago First seen · 37 lines · 382 tokens per session scan A 1201dbf34530
using-archipy-decorators is a cursor rule published in the GitHub repository SyntaxArc/archipy-plugin (3 stars, last pushed 23d ago), licensed MIT. It adds 484 tokens to every session, about $0.0019 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-decorators compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-archipy-decoratorsSyntaxArc/archipy-plugin | Cursor rule | 3 | 23d ago | MIT | A | 484 | 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 |