yli769227-jpg
- 18 skills
- 0 followers
- 1 day ago last updated
- ▌
- ▌
- ▌
- ▌
- ▌
- ▌
- ▌
- ▌
- ▌ Log First · yli769227-jpg bundleLog first (observability). New code must include key-path logging: connection established, state change, error, request/response. Triggers when you're about to write a new module, interface, async task, or external call — or when debugging code that has no logs. Writing buggy code is normal; locating the bug is the hard part. 日志优先:新代码必须含关键路径日志(连接、状态变化、错误、请求/响应)。触发:写新模块/接口/异步任务/外部调用,或 debug 无日志代码时。写代码犯错正常,定位问题才难。 不触发:纯改文案/配置、纯重命名、写测试断言,或模块已有完整关键路径日志。
- ▌ Restraint · yli769227-jpg bundleRestraint (anti-overproduction). LLMs are systematically biased toward emitting MORE — more code, more parameters, more guards, more abstractions — than the spec requires. The cure is restraint, not knowledge: before every line, ask "does the spec need this, today?" Triggers when about to add an optional parameter / config flag / new abstraction / new dependency / catch-all handler, or to build an unrequested "while I'm at it" feature. 克制律(反过度输出):模型的系统性偏差是"多输出"。解药是克制不是知识:每写一行先问"spec 今天需要这个吗?"。
- ▌ Agent Team · yli769227-jpg bundleWork as an agent team. Send non-trivial work to sub-agents; keep the main thread for planning, acceptance, smoke-testing, and communication. A QA inspector is mandatory and holds veto power — a FAIL must be fixed and re-reviewed. Triggers when about to do heavy multi-file edits in the main thread, take on a task spanning many files/modules, or say "I'll just do this myself". The prime goal is to keep the main context lean and avoid overflow. Agent Team 协作:非平凡任务派子 agent,主线程只做规划/验收/冒烟测试/沟通。监理(QA)必选且有否决权。触发:将做 3+ 文件编辑/跨多模块任务,或想"我自己干完就好"时。首要目标是精简主上下文。
- ▌ No Dead Code · yli769227-jpg bundleNever assume dead code (cross-agent safety). Before deleting any symbol (function/class/variable/file), grep every caller. After adding a file, update the project manifest. When multiple agents edit in parallel, re-read the latest file before editing — don't trust a cached copy. Triggers when about to delete a symbol, add a source file, or edit a file that may be concurrently modified. 不假设 Dead Code:删任何符号前先 grep 所有调用方;新增文件后更新清单;多 agent 并行时编辑前先读最新文件;看到"像是没用"的符号先 grep 再说。 消歧:多文件接口改造的逐文件 build 节奏归 incremental-build,本 skill 只管"删/改符号前证明安全"。
- ▌ Test Quality · yli769227-jpg bundleTest quality nine rules. test-is-truth demands that "done" is backed by a test verdict; this skill governs whether the tests themselves are worth trusting. Coding agents over-generate tests: mock-heavy suites asserting implementation details, near-duplicate bodies differing by one value, tests that re-verify the framework. Triggers when about to write or generate tests, review a diff containing tests, or QA-review a sub-agent's test output. 测试质量九规:test-is-truth 管"完成必须有测试结论",本 skill 管"测试本身写得好不好"。agent 会过度生成测试——mock 堆山、近似重复、测框架不测逻辑。
- ▌ Test Is Truth · yli769227-jpg bundleTests are the truth. "Done" means a verifiable test result, not "the code is written". Triggers before you tell the human a task is complete, before saying "should work", before merging a PR or closing an issue, and before handing a sub-task to another agent. Any completion claim must carry a ✅/❌/⚠️ three-part test conclusion. 测试即结论:完成 = 可验证的测试结果,不是"代码写完了"。任何完成声明必须附 ✅/❌/⚠️ 三段式结论。
- ▌ Ask Before Act · yli769227-jpg bundleAsk before you act. Before changing architecture, behavior, or an interface contract, align on intent with the human first — don't make design decisions for them. The agent is a general contractor, not the architect. Triggers when you're about to start a non-trivial code change, refactor a core module, touch code marked `intentionally`, or alter a default behavior. 先问再动手:架构/行为/接口契约变更前先与人对齐意图,不替对方做设计决策。AI 是 general contractor,不是 architect。 消歧:本 skill 管"要不要动"(授权门);方案怎么推导走 first-principles,改时不漏实现走 incremental-build,删旧符号走 no-dead-code。不触发:用户已 explicit 授权 / 纯只读·typo·import 修复 / 本回合已确认过设计意图。
- ▌ Check Versions · yli769227-jpg bundleCheck the forge temperature before you cast. When touching a language feature, runtime behavior, or framework/SDK API, verify the actual installed version first, then read that version's docs, then write code. Triggers before using any concrete API (Node/Python/Go/Rust/any SDK), when you'd be trusting how-you-remember-it, or on version-sensitive errors. Never code from training-data version assumptions. 先测炉温再铸剑:用任何 API 前先查实际版本→查该版本文档→再写代码。禁止凭训练数据的版本假设直接写代码。
- ▌ First Principles · yli769227-jpg bundleReason from first principles. Build every conclusion from basic facts, challenge assumptions, and re-derive the approach from constraints — not from convention, "best practice", or industry defaults. Triggers when about to cite "the usual way" as a reason, copy a common template without saying why it fits this time, or make an architecture / topology / data-model choice. Reasoning over recall. 第一性原理:从基本事实出发,挑战假设,从约束重推方案,不靠惯例/最佳实践/行业默认值。推理优先于回忆。 消歧:本 skill 管"方案怎么推导";要不要让用户拍板归 ask-before-act,二者常并用。
- ▌ Incremental Build · yli769227-jpg bundleIncremental build + interface-change protocol. Build after each file edit — never batch-edit several files then verify, because errors mask each other and fixing cost grows exponentially. Before changing an interface, grep every implementation (including mocks/tests) and change them all in one batch. Triggers when about to edit 3+ files in a row, modify a widely-implemented interface, or hand an agent a multi-file change. 增量编译验证 + 接口变更协议:每编一个文件立即 build;改接口前先 grep 所有实现一次性全改。错误会互相掩盖。 消歧:语义层"要不要这样改"归 ask-before-act,删旧符号的安全归 no-dead-code,本 skill 只管改的过程不漏实现。