AGENT SKILL

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

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

  1. Match the problem to a row above.
  2. read_file(skill_directory + "/references/<file>.md") for that one row.
  3. 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

microsoft
microsoft/amplifier-bundle-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.

★ 12
microsoft
microsoft/amplifier-bundle-skills

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?"

★ 12
microsoft
microsoft/amplifier-bundle-skills

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?"

开发工程师
★ 12
microsoft
microsoft/amplifier-bundle-skills

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.

★ 12
microsoft
microsoft/amplifier-bundle-skills

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.

Skill与智能体开发
★ 12
microsoft
microsoft/amplifier-bundle-skills

session-debug

Diagnose issues in the current Amplifier session — misconfigured tools, failing operations, unexpected behavior. Use when something isn't working right.

开发工程师
★ 12