amanpal3/Dr-SKILLs / .agent/skills/archify
archify
UnverifiedCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid; inspect repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps, parts, relationships and states. Also turn an answer into a one-page explainer, with the conclusion first, structured panels, native diagrams and charts, when the user asks for a page, an explainer or an answer to share (做成一页, 用页面讲), or proactively when the user's rules opt in with an [archify explainer: ...] line. Not for dashboards.
examples/delivery.explainer.json
View on GitHub{
"schema_version": 1,
"diagram_type": "explainer",
"meta": {
"title": "缓存未命中时,请求为什么变慢?",
"id": "mechanism",
"locale": "zh-CN"
},
"answer": {
"summary": "缓存未命中后,请求要多等**数据库查询和同步写回缓存**两段。",
"reasons": [
"命中时,接口读到缓存值就能返回。",
"未命中时,接口必须先拿到数据库结果。",
"同步写回位于响应之前,写完缓存才能结束请求。"
],
"scope": "示例采用旁路缓存:GET返回空值后查询PostgreSQL,查询成功后同步SET再响应;无并行、重试或其他缓存层。未实测耗时,具体慢多少由链路测量决定。"
},
"panels": [
{
"id": "timeline",
"title": "一次未命中,时间花在哪?",
"blocks": [
{
"type": "steps",
"id": "cache-path-steps",
"items": [
{
"id": "get-step",
"text": "读取缓存",
"detail": "GET返回空值,接口继续向数据库查询。[](source:get-doc)"
},
{
"id": "query-step",
"text": "查询PostgreSQL",
"detail": "等待数据库执行SQL并返回结果。"
},
{
"id": "set-step",
"text": "同步写回Redis",
"detail": "SET完成后,接口返回响应。[](source:set-doc)"
}
]
}
]
},
{
"id": "diff",
"title": "命中和未命中,差在哪几步?",
"blocks": [
{
"type": "comparison",
"id": "cache-comparison",
"columns": [
"命中",
"未命中"
],
"rows": [
{
"label": "读Redis",
"cells": [
{
"text": "取得值",
"assessment": "good",
"verdict": "直接返回"
},
{
"text": "取得空值",
"assessment": "caution",
"verdict": "继续查询"
}
],
"id": "row-67fe9814e476"
},
{
"label": "查PostgreSQL",
"cells": [
{
"text": "跳过",
"assessment": "good",
"verdict": "省去查询"
},
{
"text": "等待结果",
"assessment": "caution",
"verdict": "增加等待"
}
],
"id": "row-bb530b3792c8"
},
{
"label": "写回Redis",
"cells": [
{
"text": "跳过",
"assessment": "good",
"verdict": "省去写回"
},
{
"text": "同步SET",
"assessment": "caution",
"verdict": "增加等待"
}
],
"id": "row-cbc9f8528502"
},
{
"label": "响应路径",
"cells": [
{
"text": "一段读取",
"assessment": "good",
"verdict": "路径短"
},
{
"text": "三段顺序等待",
"assessment": "caution",
"verdict": "路径长"
}
],
"id": "row-d108c6645625"
}
]
}
]
},
{
"id": "checks",
"title": "想缩短等待,先查什么?",
"blocks": [
{
"type": "list",
"ordered": false,
"items": [
"记录`cache=hit`或`cache=miss`,区分请求路径。",
"分别观察GET、SQL和SET耗时,先处理最慢的一段。",
"检查SQL索引与执行计划;改为异步写回前,设计写入失败的恢复流程。"
],
"id": "list-7e8599e477aa"
}
]
}
],
"sources": [
{
"id": "get-doc",
"title": "Redis GET:不存在的键返回空值",
"url": "https://redis.io/docs/latest/commands/get/"
},
{
"id": "set-doc",
"title": "Redis SET:设置键值",
"url": "https://redis.io/docs/latest/commands/set/"
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |