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.
npx skills add SyntaxArc/archipy-plugin --skill scaffold-archipy-decoratorgit 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/skills/syntaxarc/archipy-plugin/scaffold-archipy-decorator)<a href="https://agentmods.dev/skills/syntaxarc/archipy-plugin/scaffold-archipy-decorator"><img src="https://agentmods.dev/badge/skills/syntaxarc/archipy-plugin/scaffold-archipy-decorator.svg" alt="Measured on agentmods" 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.00061 | $0.00718 |
| Opus 5 | $0.00030 | $0.00359 |
| Sonnet 5 | $0.00012 | $0.00144 |
| Haiku 4.5 | $0.00006 | $0.00072 |
Grade A, and why
scaffold-archipy-decorator 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 today.
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 — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scaffold ArchiPy Decorator
Scope
Only helpers/decorators/. Do not create utils or interceptors here.
Before writing files
- Inspect existing decorators, call sites, and the installed ArchiPy version for a matching decorator.
- Infer sync/async style and project naming from the target call site.
- Ask only for unresolved behavior. Prefer an ArchiPy decorator whenever it fits.
- Preserve existing decorator modules; do not overwrite.
Prefer ArchiPy
Examples:
from archipy.helpers.decorators.cache import ttl_cache_decoratorfrom archipy.helpers.decorators.sqlalchemy_atomic import postgres_sqlalchemy_atomic_decoratorfrom archipy.helpers.decorators.sqlalchemy_atomic import async_postgres_sqlalchemy_atomic_decoratortrace_span/trace_root(+ async twins) fromarchipy.helpers.decorators.tracingmeasure_duration/count_calls(+ async twins) fromarchipy.helpers.decorators.metricstimeout_decorator,retry_decorator,singleton_decorator,timing_decorator, andgrpc_rate_limit_decoratorunderarchipy.helpers.decorators
Show correct usage on a sample function; do not reimplement. UoW decorators belong on logics, not services/repositories.
Custom decorator
Create helpers/decorators/<name>.py:
from __future__ import annotations
import functools
import logging
import time
from collections.abc import Callable
from typing import ParamSpec, TypeVar
logger = logging.getLogger(__name__)
P = ParamSpec("P")
R = TypeVar("R")
def timed(func: Callable[P, R]) -> Callable[P, R]:
"""Log wall-clock duration of a sync call.
Args:
func: Callable to wrap.
Returns:
Wrapped callable that logs elapsed milliseconds.
Example:
@timed
def build_report(order_id: str) -> str:
...
"""
@functools.wraps(func)
def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
started = time.perf_counter()
try:
return func(*args, **kwargs)
finally:
elapsed_ms = (time.perf_counter() - started) * 1000
logger.debug("%s took %.2f ms", func.__qualname__, elapsed_ms)
return wrapper
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.
- today Changed · +6 lines · +6 tokens per session 8994170f000e
- 7d ago First seen · 92 lines · 55 tokens per session scan A af93730d91c9
scaffold-archipy-decorator is a skill published in the GitHub repository SyntaxArc/archipy-plugin (2 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 718 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
fastapi-templates
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
telnyx-numbers-python
Search, order, and manage phone numbers by location, features, and coverage.
telnyx-ai-outbound-voice-python
End-to-end setup for making a Telnyx AI assistant call a phone number. Covers provisioning a phone number, creating a TeXML application, assigning the number, configuring telephony settings, whitelisting destination countries, and triggering outbound calls via scheduled events. Use this skill (not…
specx-component-architecture
Design or review specx core scope boundaries in Python services. Use when deciding where code belongs across packaged scoped foundation bases, optional local foundation extensions, core/, capabilities, delivery, infrastructure, shared/, and ioc; when adding guardrails or splitting use cases, services, DTOs, schemas…
specx-project-structure
Create or reshape a Python FastAPI service repo into the specx clean core/delivery architecture using packaged scoped foundation bases. Use when starting an API backend, adding the first src package, or establishing AGENTS.md, core/, optional local foundation/, delivery/, infrastructure, ioc/, migrations, and tests.
specx-add-core-use-case
Add or refactor a specx core scope use case. Use when implementing an externally meaningful application action under a core scope usecases package, adding same-file command/query inputs, result DTOs, coordinating services, opening a unit-of-work transaction, or moving behavior out of delivery or infrastructure into…