Library note. Browser-only diagnostics and templates for publishing-operation checks.

DiagKit — small honest diagnostics + the templates that go with them

DiagKit is the diagnostics-and-templates half of Leefan Reports. Six pages today: three browser-only checkers (thinness, GA4 click-event firing, affiliate compliance — the compliance one is held to v1.1 until legal review passes); three templates (a small Notion PM workspace, a card schema + 5 starter cards, a decision-log template with worked examples).

Each diagnostic runs locally in your browser. You paste an input; the page tells you what it sees. No sign-up. No email gate. No data leaves your tab.

1. The contract for everything in DiagKit

  1. Client-only. The page runs in your browser. Your pasted input never leaves the tab. We do not run a backend. We do not log your input. There is no analytics event on the snippet you pasted — only on the fact that the page was visited.
  2. Heuristic, not verdict. Every tool returns a signal, not an answer. A diagnostic that returns “this page is thin” is telling you that one specific marker set is satisfied; it is not a content-quality oracle. Each tool’s page declares the markers it checks and does not check.
  3. No email gate to run. The tool is on the page. You do not sign up; you do not subscribe; you do not “request access”.

If you find a DiagKit tool that violates any of these three lines, that is a defect — email contact@leefan.co.jp with the correction label.

2. The six pages, grouped

Diagnostics (browser-only checkers)

#PageWhat you pasteWhat it returnsTrust tier
1 D01 — Content thinness self-check A page URL or raw HTML body. Marker-by-marker breakdown + aggregate “thin / mixed / not thin” + “what this does NOT check” panel. Heuristic — flagged thinness ≠ Google penalty.
2 D02 — GA4 click_* event firing checker A GTM tag JSON or a raw dataLayer.push snippet. 8-check pass/fail list with the specific failure called out and the fix described. Static-pattern analysis — does not confirm the tag fires live. Use GTM Preview + GA4 DebugView for that.
3 D04 — Affiliate page compliance check HELD to v1.1 A page URL or raw HTML body. 12-marker scan for JP-domestic compliance signals (景品表示法, ステマ規制, インボイス制度 obligations, 印紙税 applicability) plus an explicit “this is heuristic, not legal advice” panel. Held to v1.1. Ships after legal review. The page itself renders a “coming after legal review” landing here; the full scanner body is not exposed.

Templates (downloadable shapes you can adapt)

#PageWhat you getWhat you cannot expect
4 P01 — Notion pSEO PM workspace A 4-database Notion schema (Cards / Pages / Decisions / Regressions) with a duplicatable markdown export. A 14-database “ultimate” workspace. Four is the smallest shape that survives a real operation.
5 P03 — Card schema + 5 starter cards The card JSON schema + 5 runnable starter cards (thinness review, page-uniqueness audit, GA4 dimension registration, regression-DB intake, rollback-verify). A finished pipeline. The starter pack assumes you have read OpsLab A1.
6 P07 — Decision log template + 3 worked examples A copy-pastable decision-log shape + three real worked examples (one is a reversed decision — the most useful kind). A Slack-style conversation log.

3. Which tool to start with, by symptom

4. Why DiagKit is six pages and not sixty

5. Where these pages plug into the rest of the site

6. The “what’s not here yet” list

As of 2026-05:

7. How to read DiagKit if you are…

8. The privacy / data-handling disclosure

If a future DiagKit diagnostic requires a server-side step, the page will say so in plain language above the input field, name the data sent, name the destination, and name the retention.