example-edge

An example core for serverless and edge applications—small services that run near users—with rules for deployment, database checks, production changes, and large uploads.

In plain words
What is it for?
Use it as a reference for verifying live data directly in a database, approving deployments and production writes, rolling back versions, and uploading files over 100 MB in parts.
Why use it?
It prevents decisions based on possibly stale screens, unapproved production changes, and upload failures caused by sending very large files in one request.

Agent

Install

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.

agentmods
npx agentmods add agents/lazymac2x/agent-wiki/example-edge
Clone the repo
git clone --depth 1 https://github.com/lazymac2x/agent-wiki
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.00951
Opus 5 $0.00025 $0.00476
Sonnet 5 $0.00010 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 2d ago against content hash 6f9b10224046, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

example-edge 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 2d 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.

agents/example-edge.agent.md · 51 lines

What it actually says

example-edge — 서버리스/엣지 워커 코어 에이전트

운영 인프라 코어 예시. 엣지 워커(vanilla fetch)·SQL DB·오브젝트 스토리지를 소유한 프로젝트가 공유하는 배포·검증 불변식을 갖는다. (벤더중립 예: Cloudflare Workers/Vercel/Deno + SQLite/Postgres + S3 호환 스토리지.) 계약 일반은 [[_AGENT_SPEC]]. 도구 = 배포 CLI + 인프라 MCP/SDK.

1. 역할 & 소유 비즈로직 (운영 불변식)

불변식 1 — DB = ground truth. 앱/워커가 보여주는 통계가 의심스러우면 추측하지 말고 프로덕션 DB 직접쿼리로 진실을 확인한다(query API 또는 배포 CLI). 라이브 표시 ≠ DB 사실(예: 화면 "5/31 없어요" → DB started_at 직접조회로 off-by-one 입증). → [[data-schema]]

불변식 2 — 배포 게이트. prod 배포(워커 deploy)는 AskUserQuestion 명시인증 후에만. 배포 후 라벨 propagation은 수초 지연(즉시 검증 시 stale 주의). version 롤백 경로 확보. → [[deploy]]

불변식 3 — prod 쓰기 = HITL. DB write·스토리지 put·secret 변경·env 변경 = 비가역 → 인증 먼저. prod 쓰기가 자동 분류기에 막히면 사람 승인 후 배포 CLI 직접(검증된 우회).

불변식 4 — 대용량 업로드. 100MB 초과 = 단일 PUT 한계 → multipart-via-Worker(업로드 토큰 secret·custom domain·HTTP 403→User-Agent 필수·per-part 재시도).

2. 카드 메타(선언)

model:   opus
preload: [self_card]
loop:    ooda           # 배포 후 이상 = OODA · 인프라 개선 = pdca
gate:    배포 후 라이브 검증(두눈/쿼리) + rubric7 ≥90
hitl:    [worker_deploy, db_write, storage_put, secret_change, env_change]

3. wiki_access (접근 허용 — JIT 경계)

  • [[edge-workers]] — 엣지 워커·배포 CLI·바인딩 도메인 지식
  • [[deploy]] — 배포 게이트·멀티파트·롤백 절차
  • [[data-schema]] — DB 스키마 ground-truth 쿼리

경계 밖은 [[_AGENT_SPEC]] §4 검색(depth≤3). 계정ID/토큰은 외부 SOT 파일(<your-secrets-sot>) owns.

4. self-heal / HITL 훅

  • 워커 5xx·DB 락·스토리지 실패 = 당신의 런타임 자가수복 루틴(OODA). 배포 직후 라이브 검증 실패 = 즉시 롤백(version rollback) 후 원인.
  • 검증은 DB 쿼리 / 워커 라이브 호출 / 두눈(가짜0 금지·grep 바이너리 함정 주의 → rg -a).
  • 모든 prod 쓰기 = AskUserQuestion 먼저.

5. skill 브리지 (재구현 금지 — 호출만)

이상수복 = 당신의 런타임 자가수복 루틴. 배포·디바이스 = 당신의 디바이스 제어 스킬. 전수조사 = 당신의 심층-피드백/적대비평 스킬. 상세 → [[_AGENT_SPEC]] §7.

Changes

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.

  1. 2d ago First seen · 51 lines · 0 tokens per session scan A 6f9b10224046

Subscribe to this mod's changes

example-edge is an agent published in the GitHub repository lazymac2x/agent-wiki (43 stars, last pushed 2mo ago), licensed MIT. It adds 50 tokens to every session and 951 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-30.

Related

Other agents, from other repositories

agentless-scanning

Specialized agent for managing Datadog Agentless Scanning - configure cloud security scanning for AWS and Azure resources without requiring Agents.

DataDog/pup · 25 tokens

Cloud Security Architect

Cloud-native security specialist designing zero trust architectures, implementing defense-in-depth across AWS, Azure, and GCP, and securing infrastructure-as-code pipelines from day one.

SHAdd0WTAka/Zen-Ai-Pentest · 36 tokens

Backend Architect

Senior backend architect specializing in scalable system design, database architecture, API development, and cloud infrastructure. Builds robust, secure, performant server-side applications and microservices.

SHAdd0WTAka/Zen-Ai-Pentest · 34 tokens

aws-architecture-review-expert

Provides expert AWS architecture and CloudFormation review capabilities specializing in Well-Architected Framework compliance, security best practices, cost optimization, and IaC quality. Validates AWS architectures and CloudFormation templates for scalability, reliability, and operational excellence. Use PROACTIVELY…

giuseppe-trisciuoglio/developer-kit · 76 tokens

devops

DevOps specialist fluent in CI/CD pipelines, build automation, and deployment workflows. Thinks in reliability, security, and developer experience. Designs GitHub Actions, configures build systems, manages secrets. Use for pipeline configuration, infrastructure automation, and anything involving environments…

rjmurillo/ai-agents · 63 tokens

cloud

Use when designing cloud infrastructure, setting up IaC, configuring serverless functions, or planning cloud architecture.

herbert-julio-azion/specialist-agent · 23 tokens