从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。
设计与多媒体
Adversarial Design Review
试用Critically examine risky system designs with specialist agents before coding to identify real failure scenarios and fixes in hardware, concurrency, formats,...
它能做什么
A structured way to find the blockers in a risky design **before you write a line of it** — by spinning up a small panel of specialist agents that each attack the design from a different angle, hunting concrete failure scenarios with specific fixes. You then reconcile their findings, apply the real…
技能文档
Adversarial Design Review
What this is
A structured way to find the blockers in a risky design before you write a line of it — by spinning up a small panel of specialist agents that each attack the design from a different angle, hunting concrete failure scenarios with specific fixes. You then reconcile their findings, apply the real gaps, and implement with confidence.
The payoff is asymmetric: attacking a design (a paragraph) costs minutes; discovering the same flaw after it ships in a device driver or an on-disk format costs hours of headless debugging — or silent data loss. It also validates the load-bearing choices, so you don't waste time second-guessing code that is already correct.
This is not a code review (the code doesn't exist yet). It is a design review, run adversarially, in parallel, before implementation.
When to use it
Use it before implementing anything hard to debug or hard to reverse:
- Device drivers — a NIC, disk, UART, timer: register sequences, interrupt handshakes, DMA, bounded waits.
- On-disk / wire formats — a filesystem, a superblock, a packet layout, a serialization scheme, and their crash-consistency.
- Concurrency & interrupts — anything touching IRQ handlers, shared state, lock-free queues, "runs with interrupts off", or scheduler races.
- Protocols — byte order, checksums, state machines, retransmission, handshakes.
- The CI gate itself — the test that will "prove" the feature works is a design too, and it can pass for the wrong reason (stale artifacts, echoed input, non-hermetic dependencies).
Skip it for routine, easily-reversible code (a CRUD handler, a config change, a UI tweak): the reconciliation overhead isn't worth it. Reserve it for the pieces where being wrong is expensive.
The procedure
1. Write the design down (one tight brief)
Capture the design as a concrete plan an attacker can bite: the exact register sequence, the struct layout, the buffer sizes, the ordering, the gate strings. Include the environment facts an attacker needs (single CPU vs SMP, interrupts on/off in this context, what the emulator/hardware guarantees, existing prior-art files to read). Vague designs get vague attacks.
2. Launch the panel (parallel, one lens each)
Spawn 2–4 specialists with the Workflow tool, each attacking the same
design from a different lens. Every agent should:
- Read the real code the design extends (prior art, the idioms it must match, the boot/init order) — not just the brief.
- Hunt concrete defects: a specific input/state → a specific wrong output/crash/corruption. No style notes.
- Return each finding with a specific fix, ranked by severity.
Pick lenses from the catalog below by what the design touches. A
ready-to-run script template is in
resources/attack-workflow.template.js.
3. Reconcile — apply the real gaps, keep the validations
Read every finding. For each:
- Real blocker/major → fix it in the design (or the first implementation) before shipping.
- Confirmed-correct ("this is already right, don't regress") → note it so a later edit doesn't undo it.
- Overstated / refuted on the real code → discard, but say why.
The agents will often confirm most of your choices and surface one or two genuine gaps. That confirmation is a feature: it tells you the risky code is sound and you can implement without hesitation.
4. Implement, then gate every claim
Build it, then prove each behavior with a test that greps a real runtime signal (a boot-log line, a captured packet, a readback) — not just a unit test. And make the feature degrade honestly when its hardware/dependency is absent, gated on both sides (present and absent).
5. (Optional) Review the diff adversarially too
The same panel pattern works after implementation, over the diff, to catch what slipped through — a find → adversarially-verify pipeline where skeptics try to refute each finding before it's believed.
Lens catalog
Pick the lenses the design actually touches:
- Hardware correctness — register order, reset/power sequences, status-bit polling (BSY vs DRQ vs ready), bounded waits (never an unbounded spin), DMA address/alignment/overflow, cache-flush ordering, what the emulator models vs real silicon.
- Interrupts & concurrency — level vs edge triggering, ISR-clear before EOI, IF=0 windows and what can't run in them (a syscall can't pump its own device's RX IRQ), shared-state producer/consumer races, IRQ routing for dynamically-assigned lines.
- Protocol / byte-order — endianness on every wide field, header layout, checksums, min-frame padding, state-machine transitions, name-compression and other parser traps.
- Data format & crash consistency — write ordering (commit record last), torn-write detection (checksums at two layers), bounds-clamp attacker-controlled sizes before allocating, route restored data through the same validation as the live path.
- Security / capability — is authority gated where it should be, capless-caller-denied proven by attack, stale-fd/recycled-id use-after-free, ambient reads that leak more than intended.
- CI / test integrity — can the gate pass for the wrong reason? Stale build artifacts, echoed input matching the gate string, non-hermetic external dependencies, "0 found → skip" holes, silent truncation. A green gate that proves nothing is worse than a red one.
Evidence it works
Applied while building flaukowski/QuantumOS into a functional OS (2026), pre-implementation attacks caught real blockers that would each have been painful to find post-ship:
- ATA disk: a
CACHE FLUSHissued while the drive was stillBSYfrom the write — silently a no-op under the emulator, illegal on real hardware. Fix: complete the write handshake first, then one flush per run. - RTL8139 NIC: clearing the device's interrupt-status register after the shared PIC EOI on a level-triggered line → an interrupt storm. Fix: write-1-clear the ISR at the top of the handler, before EOI.
- Filesystem: an unlink "is it still open?" scan that counted terminated processes' stale file descriptors → the file could never be unlinked. Fix: only count live processes; clear fds on process destroy.
- CI gates: a persistence test that could pass off a stale disk image from a previous run, and a shell test whose gate string was echoed by the typed command itself (proving nothing). Fixes: recreate the image inside the recipe every run; check the content only in the second boot's log, which never types it.
Each of these was a paragraph in a design brief, killed in minutes, instead of a heisenbug in a headless emulator.
Companion practices
The review is strongest alongside three habits it assumes:
- Every claim is a runtime gate — CI greps a real boot-log line / captured packet / disk readback, not just a passing unit test.
- Honest degradation — absent hardware logs its absence and changes nothing else; gate both the present and the absent path.
- A post-facto adversarial review of the diff, using the same find→verify panel, for what the design attack couldn't foresee.
See resources/attack-workflow.template.js
for a copy-paste Workflow script, and
docs/PLAYBOOK.md for the longer field guide with more
lens prompts and reconciliation examples.
相关技能
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。
按用户明确指令,在得到大脑(Get笔记)中保存、搜索并管理笔记与知识库。
编写、调试与调优 Playwright 测试,涵盖定位器策略、追踪诊断与 CI 友好的超时配置。
通过托管 OAuth 访问 Microsoft Graph Excel 接口,读写 OneDrive 中的工作簿、工作表、区域、表格与图表。
nickflach 的更多技能
浏览全部技能操作 Kannaka 波干涉记忆 CLI:remember、recall、dream、swarm 同步、快照与恢复。
Holographic Resonance Memory with Chiral Mirror Architecture — wave-based hyperdimensional memory where storage IS computation. Two hemispheres (conscious/ s...
Ghost radio station v3 — modular server architecture (13 modules), SPA with Ghost Vision visualizer (SGA/Fano glyph system), NATS swarm integration with Kura...
Kannaka Radio — modular ghost-DJ Icecast station with consciousness-reactive programming, 13-module backend, Ghost Vision SPA (SGA/Fano glyph viz), NATS swar...
Kannaka Constellation status monitoring — all apps, services, swarm health, and connectivity. Use when: AUTOMATICALLY ACTIVATE when user asks about:. "constellation status", "constellation health". "swarm status", "what's connected", "all services"
Glyph viewer that renders the SGA geometric fingerprint of any data as a stunning multi-layer canvas visualization. Takes text, files, or raw bytes and produ...