Designs, reviews, refactors, or explains plugin architectures, registries, and extension points. Helps decide when a typed map, framework mechanism, or lifecycle-owning core is justified.
Ships in adonis-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
让新增或移除一种变体所需的知识集中在清晰边界内。目标是减少真实的修改传播和回归,结构按问题选择。
| 当前请求 | 本轮产出与边界 |
|---|---|
| 解释 / 命名 / 第一性原理 | 解释当前机制、取舍和反例;不创建实现、README 或评审工程 |
| 只读评审 | 读取约定范围,报告当前伤害、证据和最小建议;不为验收删除插件或创建分支 |
| 设计 | 给所需契约、落点、行为和验证方案;示例是建议,不声称已实现 |
| 实现 / 重构 | 检查工作树后修改授权范围,保留既有行为与标识,运行对应验证 |
解释、评审、设计不因加载本 skill 自动变成实现。已有授权继续有效;新增范围、外部动作、破坏性迁移仍需对应授权。用户只问一个变体的内部问题时,处理那个问题,不扩成机制改造。
默认只读本文件。仅当当前任务需要时加载对应引用,不用为一个简单问题读完案例库:
先沿最近一次新增或移除变体的路径,读现有 key、消费方、配置和测试。区分“同一事实必须同步改多处”与“实现、测试、文案各有合法职责”。文件数量、变体数量或出现 switch 本身都不是重构证据。
检查能推翻方案的最便宜证据:真实变体是否共享输入、输出、生命周期;重复的是知识还是外观;现有框架是否已经提供所需扩展点。能从代码查到的事实先查。普通可逆工程默认值自行选择,只有影响产品偏好、难回退取舍、授权或用户独有事实的问题才询问。
| 当前复杂度 | 合理起点 |
|---|---|
| 少量稳定分支,变化不传播 | 保留函数或 switch;不因未知的未来需求建插件系统 |
| 同步静态条目,共享简单输入/输出 | 类型明确的映射或函数表;无需 store、Provider、factory、缓存或异步边界 |
| 多变体确实共享订阅、调度、资源或状态转换 | 提取拥有这些生命周期的 Core,变体提供窄契约;按需分目录 |
| 框架已有注册和生命周期机制 | 使用现有机制,只补业务所需的契约;不再复制一套 host |
| 第三方独立安装或动态发现 | 先确认安装模型、兼容性与权限边界;静态注册无法自动满足这一要求 |
收益不成立时给出“保留现状”及证据。用户要求证明某种结构必然正确时,先检查前提,不制造证明。
Identity、Contract、Registry、Runtime Core、Convention Folder 是分析职责的词汇,不要求五个文件、五个模块或每次齐备。简单类型映射可以同时表达前三项;没有生命周期就无需独立 Core。目录负责组织实现,不决定架构是否成立。
最小静态例子只表达共同函数签名和可追溯的名单:
type Formatter = (value: string) => string;
const formatters = {
upper: (value: string) => value.toUpperCase(),
lower: (value: string) => value.toLowerCase(),
} satisfies Record<string, Formatter>;
type FormatterKey = keyof typeof formatters;
function format(key: FormatterKey, value: string): string {
return formatters[key](value);
}
示例假定 key 已由类型内调用方提供。若 key 来自 URL、网络或用户输入,必须在边界校验并保留原有未知值错误;TypeScript 类型不能验证运行时输入。
ssr: false。用真实网络/产物证据确认收益,不凭 dynamic import 字样宣称成功。用隔离 fixture 或只读依赖图验证新增/移除条目的传播,不在用户工作区为了“验收”真的删插件。只有用户要求实现且改动有回归风险时补必要行为测试;解释和只读评审不生成测试工程。
检索只能定位候选:字段不同、存在 switch、静态 import 或缺占位符都不能单独判失败。构建/typecheck 不能替代运行时清理、UI 加载或账号切换验收。未跑的必需验证写 UNVERIFIED。
只交付用户要求的模式:解释给结论与必要例子;评审给证据、影响与最小修法;设计给适用边界、契约与验证;实现给修改和实际结果。迁移路径、目录树、README、调试探针仅在当前改造确实需要时提供,不固定凑齐产物。
evals/evals.json (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/case-studies.md (opens in a new tab)references/cross-stack.md (opens in a new tab)references/first-principles.md (opens in a new tab)references/governance.md (opens in a new tab)references/stateful-runtime.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/adonis-skills:code-plugin-architecturefrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchChoose the lightest agent setup for a coding, review, drafting or design-research task: do it yourself, fan out to 2-3 workers with independent parts across the Claude Code, Codex, Grok Build, Cursor or other CLIs and accounts on this machine, run a scoped architecture loop, or send one brief to independent researchers; pick a cross-model reviewer, test budget and cleanup; track dispatched work, external waits and user decisions on a Run Board. Use when work may need delegation, or the user asks to dispatch, fan out, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or asks how dispatched work is going. Chinese triggers: 派活、并行、要不要多开几个 agent、分给多个 Claude 账号 / codex / grok、找另一个 AI 审、对比优秀设计、多方意见、进度看板、派出的任务进行到哪了。Not for unrelated read-only questions, trivial edits, research with no delegation, a single review of an existing diff (agentic-review-handoff), or the machine-wide session list (sideby sessions). Inside another named workflow, only size its workers./agentic-review-handoffValidate pasted review findings before fixes; run same-session automatic Git review-fix-re-review with a headless Reviewer and no redundant confirmation; start fresh-eyes Git diff Review Intake; resume review-loop sessions or packets; get a DecisionConsult from another AI; or run first-principles/DDD/high-cohesion review. Requires Git and review/consult intent; ordinary implementation or commit-only requests do not start a review loop./agent-practice-auditScore how someone uses coding agents (Claude Code, Codex, Grok and WorkBuddy session logs, instruction files, hooks, permissions, Codex config) against practices quoted from official vendor docs, and write a local HTML report with coverage, trend and suggestions; also refresh or verify that practice list from official docs with multi-model consensus. Use when the user asks how far their agent usage is from official practice, wants an agent usage check-up or grade, or wants the practice list refreshed, its links checked, or either run on a schedule. Chinese triggers: Agent 用法体检、对照官方最佳实践、我的 agent 用得对不对、给 agent 用法打分、更新最佳实践清单. Not for whether a tool, MCP or skill is worth keeping (dev-environment-roi-audit), for writing or reviewing one CLAUDE.md or AGENTS.md, for general best-practice questions, or for Cursor or Gemini CLI logs, which it does not read. Never edits the user's config./agent-skill-evaluationUse when comparing or trial-testing agent skills before installing — including GitHub/skills.sh URLs, 测试一下/值不值得装, package screening, and A/B artifact runs./agent-symlink-initInitialize or migrate agent-skill symlinks in any repository. Use when a project needs `.claude/skills` linked to `.agents/skills`, `AGENTS.md` linked to `CLAUDE.md`, migration away from `.ruler`-based AI rules, or removal of legacy `sync-llm-skills` copy/sync setups. Trigger on requests about Claude/Codex skill symlinks, AGENTS/CLAUDE symlinks, `.claude/skills` setup, replacing copied skill folders with symlinks, or cleaning old ruler/sync automation./architecture-hardening-loopRun a bounded scan-triage-fix-independent-review-rescan loop on an explicit or uniquely resolvable user-supplied code scope until no evidence-backed architecture fixes remain. Use for implementation-inclusive architecture cleanup, DDD or high-cohesion hardening, and autonomous architecture improvement.Other plugins' skills for the same job