AGENT SKILL

dak

暂无简介

License 许可
MIT
所属仓库
auth-02/hub
最近更新
2026-08-12
Stars
★ 3
Forks
0

02 资源文件 4

03 SKILL.md 正文

Dak — local artifact → shareable URL

Dak turns a generated file into a link. An agent produces something — a report, a dashboard, notes, a diagram — and instead of handing over a file, it publishes and returns a URL.

Generate → Publish → Share link.

First-time setup

python3 scripts/dak.py setup

Interactive prompts — walks through three values and saves them to ~/.dak/config.json:

  1. Cloudflare API token — create at dash.cloudflare.com/profile/api-tokens with permission: Workers Scripts: Edit
  2. Account ID — visible in the Cloudflare dashboard sidebar under Workers & Pages
  3. workers.dev subdomain — convention is <username>-dak (e.g. atharva-dak) Check/set yours at: dash.cloudflare.com → Workers & Pages → Your subdomain

After setup, the URL is constructed locally as https://<name>.<subdomain>.workers.dev — no parsing of wrangler output needed.

Publishing

# snapshot (default) — frozen, unique URL per publish
python3 scripts/dak.py report.html

# live — stable URL, updates on redeploy
python3 scripts/dak.py dashboard/ --mode live --slug portfolio

Prints only the URL to stdout. Composes cleanly in agent pipelines.

Input types

  • .html → served as-is.
  • .md / .markdown → rendered to a clean HTML page (code, tables, links).
  • directory → deployed as-is; generates an index if none exists.
  • .pdf / image → embedded in a minimal viewer page.
  • any other file → served with a download index.

Options

Flag Purpose
--mode snapshot|live default snapshot
--slug NAME worker name for live mode; also base for snapshot names
--title T page <title>
--dry-run show URL + wrangler command without deploying

Other commands

python3 scripts/dak.py doctor       # check config + credentials
python3 scripts/dak.py list         # all published artifacts
python3 scripts/dak.py unpublish <worker-name>   # deletes the worker from Cloudflare
                                                 # AND removes it from the local manifest

URL format

https://<worker-name>.<subdomain>.workers.dev

# snapshot:  https://report-a1b2c3.atharva-dak.workers.dev
# live:      https://portfolio.atharva-dak.workers.dev

Config file

~/.dak/config.json — stores token, account ID, and subdomain. ~/.dak/manifest.json — local record of all published artifacts.

Credentials are read from config first, falling back to CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID env vars if config isn't set up yet.

Notes

  • Free Cloudflare Workers: unlimited requests, no bandwidth cap.
  • Nothing leaves the machine until a deploy command runs.
  • The wrangler.jsonc is written into a temp dir and deleted after deploy.

04 同仓库更多 Skills

auth-02
auth-02/hub

stacked

Decompose LARGE, complex, or risky changes into a stack of small, dependent, independently reviewable units. Use only when the change is genuinely big: multiple architectural layers with functionally distinct concerns (models + storage + logic + API + UI), or a diff too large to review as one unit. Trigger on "stacked" / "stacked PRs" / "stack this" / how to break down a large change — or when a "build X" / "refactor W" request is clearly multi-layer and large. Do NOT use for small or moderate changes: bug fixes, tweaks, config, single-file or single-layer changes belong on ONE branch as ONE change — a stack of tiny branches adds overhead without value.

★ 3
auth-02
auth-02/hub

manifest

Use when starting a non-trivial feature, migration, refactor, or multi-step task in ANY repo. Creates and continuously maintains a living markdown manifest at `<repo-root>/tasks/<slug>/manifest.md` (inside the repo being worked on — NEVER the skill dir or ~/) capturing the problem, decisions, exploration results, plan, open questions, test + rollout plans, and final review. Trigger on "build X", "add X", "migrate X", "refactor X", tasks needing 3+ steps, or whenever a plan-before-code loop would help. NOT for single-line fixes, obvious bugs, or one-shot questions.

★ 3
auth-02
auth-02/hub

kagaz

Kagaz (कागज़) — a personal design system for all frontend and document work — editorial-technical-archival, serif display + mono metadata on warm paper tones with a single rust accent. Use for ANY frontend, UI, web page, landing page, dashboard, artifact, component, mockup, poster, slide deck, report, or PDF/document design, for HTML→PDF conversion, and for any "make this look good" / "style this" / "make slides" / "turn this into a PDF" request — even when no design preference is mentioned. Overrides generic AI defaults (Inter-on-white, purple gradients, cool grays). Ships an HTML-to-PDF converter with visual QA and on-brand SVG charts.

★ 3
auth-02
auth-02/hub

change-log

Map a task's changes as an editable draw that renders an interactive change-map on Save — nodes are functional CHANGES (a capability that moved), arrows are dependencies, and clicking a change deep-dives into its file / function / test detail in a side inspector. Use when someone asks "what changed", "map this change", "diagram this PR/branch", "show how the changes connect", or as the closing step of a task once code has landed. Reads the diff + the task's manifest (the *why*) + Hub's MCP task context, then writes ONE `.excalidraw` into `tasks/<slug>/change-log/`; the user edits it and Saving renders the sibling HTML. The agent does the reading — Hub has no model. `/change-log <task-slug> [--since <ref>] [--doc]`.

★ 3
auth-02
auth-02/hub

auth

暂无简介

★ 3
auth-02
auth-02/hub

rate_limiting

暂无简介

★ 3