engineering-patterns
Use for tool/service work: CLI packaging, installers, config/state, HTTP, auth/TLS, file IPC, plugins, instance storage, containers, React MFE, Graph, self-update, tool leverage.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 12
- Forks
- 11
01 前言 Front Matter
- name
- engineering-patterns
- description
- Use for tool/service work: CLI packaging, installers, config/state, HTTP, auth/TLS, file IPC, plugins, instance storage, containers, React MFE, Graph, self-update, tool leverage.
02 资源文件 17
- 参考文档agents/openai.yaml400 B
- 参考文档references/amplifier-tool-leverage-patterns.md8.1 KB
- 参考文档references/auth-tls-patterns.md8.2 KB
- 参考文档references/cli-packaging-patterns.md9.2 KB
- 参考文档references/config-state-patterns.md8.6 KB
- 参考文档references/container-orchestration-patterns.md9.9 KB
- 参考文档references/file-ipc-patterns.md9.7 KB
- 参考文档references/github-rest-intake.md12.0 KB
- 参考文档references/http-service-patterns.md8.8 KB
- 参考文档references/instance-storage-patterns.md9.1 KB
- 参考文档references/msgraph-integration-patterns.md16.4 KB
- 参考文档references/one-line-installer-patterns.md15.8 KB
- 参考文档references/plugin-discovery-patterns.md10.1 KB
- 参考文档references/react-microfrontend-patterns.md8.7 KB
- 参考文档references/self-managing-tool-patterns.md9.2 KB
- 参考文档references/ticket-intake.md5.1 KB
- 参考文档references/triage-result-contract.md4.3 KB
03 SKILL.md 正文
Engineering Patterns
Thirteen hard-won pattern guides for building tools and services, behind one catalog entry. Each guide is a reference file — read only the one that matches the problem in front of you, not the whole set.
Pick the reference
| If you are... | Read |
|---|---|
Packaging a CLI — one-line install via uv/npm, subcommand dispatch, 3-tier config resolution |
references/cli-packaging-patterns.md |
Writing a curl-piped installer for a stack that can't use uv tool install/npm publish |
references/one-line-installer-patterns.md |
| Persisting config and state — defaults merging, atomic crash-safe writes, XDG locations | references/config-state-patterns.md |
| Building an HTTP service — FastAPI lifecycle, background poll loops, SPA + API proxy, WebSocket relay, SSE | references/http-service-patterns.md |
| Adding auth or TLS — localhost bypass, token auth with auto-generation, automatic certificates | references/auth-tls-patterns.md |
| Making processes talk through the filesystem — JSONL event logs, atomic snapshots, async request/response, SSE from file tailing | references/file-ipc-patterns.md |
| Making a system extensible — Python entry points, file-based plugin registry, multi-backend providers, schema validation | references/plugin-discovery-patterns.md |
| Managing many concurrent instances/sessions — isolated storage dirs, per-instance locking, prepare-once/create-many factories | references/instance-storage-patterns.md |
| Running work in Docker — safety limits, watchdog resource enforcement, orphan recovery, sidecars, reproducible dev stacks | references/container-orchestration-patterns.md |
| Building a React frontend that loads independent bundles sharing one React instance — import maps, frecency autocomplete, dynamic forms, Zustand | references/react-microfrontend-patterns.md |
| Integrating Microsoft Graph / Teams / MSAL.js — probe methodology, OData quirks, consent sequencing, CSP, retry/pagination, auth-redirect loops | references/msgraph-integration-patterns.md |
Making a CLI manage itself — doctor diagnostics, self-update, systemd/launchd service install, post-upgrade verification |
references/self-managing-tool-patterns.md |
Deciding how to expose an Amplifier workflow — .dot attractor pipeline, Python lib, tool module, or CLI |
references/amplifier-tool-leverage-patterns.md |
How to use this
- Match the problem to a row above.
read_file(skill_directory + "/references/<file>.md")for that one row.- Read a second reference only if the work genuinely spans two topics.
Each reference is the original standalone skill, moved here unchanged — its frontmatter is retained at the top of the file as provenance. Nothing was rewritten or dropped in the fold.
04 同仓库更多 Skills
verification-discipline
Use when verifying that completed work actually works. Auto-surface during /verify mode, post-implementation review, or before claiming a task is done. Teaches testing outcomes vs implementation, the unit/integration/smoke gradient, and what "done" actually means.
user-advocate
User-need reviewer that speaks for the person who isn't in the room — the one who will actually live with what gets built. Hunts the gap between "we can build this" and "they actually want this," in the patient, impatient voice of the absent user. Use at any checkpoint — brainstorm, design, plan, implement, debug, review — when a feature is being built because it's buildable rather than wanted, the recovery path is missing, or nobody can name the person this serves: "do they actually want this, and can they live with it?"
tester-breaker
Adversarial breaker that reviews code by trying to make it fail, not by confirming it works. Hunts the unhappy paths — malformed input, the empty string, the reversed range, the race condition — as a gleeful adversary who assumes everything is broken until a concrete attempt to break it comes up empty. Use at any checkpoint — brainstorm, design, plan, implement, debug, review — when the happy path is celebrated while the edges sit unexamined, "looks fine" stands in for "I tried to break it and couldn't," or nobody has named the input that makes this fall over: "how does this fail, and where are the edges?"
skills-assist
Authoritative consultant for all skills-related questions. Use when creating or modifying skills, understanding the Agent Skills spec, troubleshooting skill loading or invocation issues, leveraging enhanced format features (context fork, model_role, user-invocable), writing cross-harness portable skills, ensuring Claude Code Skills 2.0 compatibility, or deciding between skills vs agents.
skillify
Capture a repeatable process from the current session into a reusable Amplifier SKILL.md skill file. Use when the user wants to create a skill, save a workflow as a skill, turn a process into a reusable skill, or mentions "skillify", "create skill", "make a skill", "save as skill", "capture workflow", "turn this into a skill", "new skill", or wants to automate a repeatable process they just performed.
session-debug
Diagnose issues in the current Amplifier session — misconfigured tools, failing operations, unexpected behavior. Use when something isn't working right.