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-services)<a href="https://agentmods.dev/rules/syntaxarc/archipy-plugin/using-archipy-services"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-services/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-services"><img src="https://agentmods.dev/badge/rules/syntaxarc/archipy-plugin/using-archipy-services.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.01551 | $0.01551 |
| Opus 5.5 | $0.00620 | $0.00620 |
| Sonnet 5.5 | $0.00310 | $0.00310 |
| Haiku 4.5 | $0.00155 | $0.00155 |
Grade A, and why
using-archipy-services 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 4d 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 — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using ArchiPy Services
Services are thin transport adapters (HTTP routers / gRPC servicers). Bootstrap often lives in manage.py — follow this rule there too.
Live: https://syntaxarc.github.io/ArchiPy/getting-started/project_structure/
Responsibilities
- Validate and translate HTTP/gRPC requests into domain
*InputDTO. - Call the appropriate logic class; return domain
*OutputDTO. - Let AppUtils exception handlers/interceptors map ArchiPy
BaseErrorstatus metadata. Add transport-specific mapping only when the domain error has no suitable mapping; never expose internal exception text. - Version in path:
services/{domain}/v{n}/— not in business logic.
REST resource paths (FastAPI)
Paths are hierarchical resources: /api/v{n}/<collection>/{<resource>_uuid}/<child-collection>/{<child>_uuid}/...
/api/v1/users/{user_uuid}/campaigns/{campaign_uuid}/ad-groups/{ad_group_uuid}/ad-items/{ad_item_uuid}
- kebab-case for every literal segment (
ad-groups,ad-items) — neversnake_case,camelCase, orPascalCase. - Plural nouns for collections; the HTTP method is the verb, so no
/get-useror/createCampaign. Use a sub-resource or a kebab-case action segment only when no CRUD verb fits (POST .../campaigns/{campaign_uuid}/pause). - Nesting expresses ownership: a child id is only meaningful under its parent, and the logic must verify the parent owns the child instead of trusting the URL.
- Path parameters are
snake_casePython names typedUUID(user_uuid: UUID), so FastAPI validates them; keep the placeholder name identical at every level ({campaign_uuid}, not{id}). - Version prefix
/api/v{n}comes from the router (APIRouter(prefix="/api/v1")), one version perservices/{domain}/v{n}/. Do not repeat the version in child routes. - Collection root has no trailing slash (
/api/v1/users); do not mix trailing-slash styles.
Actor identity and audit columns (JWT auth)
With any JWT-based auth (fastapi_auth / grpc_auth from archipy.adapters.keycloak.auth, JWTUtils, or another issuer) the acting principal comes
from the verified access token, never from a path parameter. With the Keycloak guards it is an AuthenticatedUserDTO, also readable anywhere below the endpoint through AuthContextManager (do not read request.state.user_info and friends; they warn and go away in 6.0.0); for
other JWTs read the claims the same way: actor = act.sub (RFC 8693 delegation/impersonation) when present, else sub.
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.
- 4d ago Changed · -5 lines · +37 tokens per session 2614a1549908
- 19d ago Changed · +44 tokens per session 7ce5532ec6cb
- 1mo ago Changed · +26 lines · +470 tokens per session ddc8e6966896
- 1mo ago Changed · +20 lines · +348 tokens per session b5610d350fa7
- 1mo ago Changed · +4 lines · +74 tokens per session b633aaea608b
- 1mo ago Changed · +3 tokens per session 5e518ef7f2a2
- 2mo ago Changed · +2 lines · +49 tokens per session a3f382f32153
- 2mo ago First seen · 66 lines · 526 tokens per session scan A 340f10e8a74d
using-archipy-services is a cursor rule published in the GitHub repository SyntaxArc/archipy-plugin (3 stars, last pushed 5d ago), licensed MIT. It adds 1,551 tokens to every session, about $0.0062 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-services compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-archipy-servicesSyntaxArc/archipy-plugin | Cursor rule | 3 | 5d ago | MIT | A | 1,551 | Cursor |
| python-flask-json-guide-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 185 | Cursor |
| py-fast-apiPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 720 | Cursor |
| python-django-best-practices-cursorrules-prompt-fiPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 698 | Cursor |
| pythonPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 734 | Cursor |
| python-fastapi-best-practices-cursorrules-prompt-fPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 486 | Cursor |
| fastapiPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 427 | Cursor |