effective-interact

$npx mdskill add JasonxzWen/harness-hub/effective-interact

Loads for complex Chinese-first communication with structured visual outputs.

  • Reduces interaction time for complex reports, plans, or handoffs.
  • Depends on DESIGN.md and reference files for component patterns.
  • Chooses plain text, Markdown, visual Markdown, or HTML by decision cost.
  • Delivers structured artifacts with conclusion, evidence, and next actions.

SKILL.md

.github/skills/effective-interactView on GitHub ↗
---
name: effective-interact
description: Load when agent pauses to report relatively complex information needing Chinese-first clear complex communication, alignment, multi-option choice, status/incident, long-task fact ledgers, implementation plans, reviews, maps, explainers, evidence, risks, validation, handoff; choose plain text/Markdown/visual Markdown/HTML by decision cost; do not load merely because answer is long; skip trivial chat/bundled apps.
---

# Effective Interact

When loaded, think in visual language first; map/table/timeline/flow/evidence shapes reduce interaction time and information loss. HTML is an escalation path, never a reward for task size or importance. Make activation observable: conclusion, structure, evidence/risk/validation/next action, no generic linear prose. Adapt `ThariqS/html-effectiveness` as pattern families, not templates to copy.

Read `DESIGN.md` before composing an HTML artifact, then relevant split references: `references/report-ia.md`, `references/visual-language.md`, `references/component-contracts.md`, and `references/generator-validation-contract.md`. Components and information architecture come first; old template inputs are not supported.

## Default Load And Communication Gate

Default: the native Host main Agent loads this skill whenever it is about to pause and report relatively complex information if structure lowers cost. This skill does not decide substantive scope. Do not load merely because the answer may exceed roughly 200 Chinese characters; 200 Chinese characters and 3 or more independent points are auxiliary signals. The primary trigger is the user decision need. Run communication-worthiness check and visual-language check.

Use only when linear reply raises decision cost: material repo/skill implementation or validation facts need evidence; 2 or more comparable options have tradeoffs; flow, state, timeline, map, call path, or architecture needs spatial structure; repo/module/skill explainers need capability; user must choose, tune, sort, filter, copy, export, or inspect source anchors, code, diff, citations, evidence, or validation; or plain text would hide the main point.

If no strong signal and no handoff obligation is present, answer in chat or Markdown. Length is never sufficient by itself; long routine answers, translations, simple explanations, summaries, and one-command status stay outside.

Use this skill before, during, or after implementation for planning options, PR writeups, status or incident dashboards, prompt/config tuners, material-change reports, and handoffs; it is for interaction points, not only final handoffs. The user does not need to say "HTML". Material changes still default to the lightest mode that keeps conclusion, evidence, validation, risks, and next action clear.

## Output Mode Ladder

Use the lightest mode that lowers decision cost:

1. `plain-brief`: chat for one decision, Top 3 support, and next action.
2. `structured-markdown`: headings, bullets, compact tables, labels.
3. `visual-markdown`: Mermaid, tables, commands, file anchors, or decision matrices.
4. `html-artifact`: one static HTML file for browser navigation, visualization, filtering, copy/export, or local interaction.

Density gate: direct answer, evidence, or compact visual before HTML. Unless you intentionally choose `plain-brief`, include at least one visible visual structure in output. HTML only when browser navigation, visualization, or local interaction lowers decision cost; never because the topic is important, long, or validator-backed.

## Mode Selection Hard Rules

Do not load for a long but routine answer.

- Use `plain-brief` for one conclusion, Top 3 support, and one next action.
- Use `structured-markdown` for grouped evidence, risks, status, options, or compact tables.
- Use `visual-markdown` when one Mermaid diagram, decision matrix, command block, or short source-anchor list is enough.
- Use `html-artifact` only when a hard HTML condition is true: more than 5 source anchors need local navigation; user must filter, sort, compare, copy, or export; architecture, dependency, milestone, module, repo capability/function/implementation map, or skill structure is too wide for one Mermaid diagram; visual style, component variant, design-system, illustration, prototype, or multi-option approval needs a browsable gallery; or status/incident/editor surface needs drilldown or visible export.
- Any mode other than `plain-brief` must show at least one visible visual structure before handoff.

HTML escalation is forbidden when one compact Markdown table, one Mermaid diagram, or one short file list is enough, including material repo or skill handoffs.

## Trigger Examples

Use for source-derived families: Exploration & Planning; Code Review & Understanding; Design, Reports, and Custom Editors. Examples: approach comparison, code understanding map, design-system reference, component variant matrix, feature-flag editor.

Use for: 复杂状态汇报; complex status reports; long-task fact ledger; changed skill/repo behavior with HTML handoff and validation gates; repo capability/structure/function/implementation explainers; "Show the options so I can choose before you implement"; implementation plan with milestones; OpenSpec apply; PR review; HTML architecture walkthrough; side-by-side option gallery; design-system reference; component variant matrix; incident timeline; temporary triage, feature-flag, or prompt editor that exports Markdown, JSON, or diff.

Also use for invisible-layer complaints: "effective-interact did not trigger", "no proactive HTML report", "same with or without the skill", or "make the handoff more polished and structured".

Do not use this skill for: approval gates such as pushing/installing; doing code implementation, bug fixes, or test runs; coding minimization; one-command status, or a long but routine explanation; product UI; bundled artifacts; slide decks; use `frontend-slides`. Use `ponytail` for minimal coding.

## First-Principles Communication Contract

Before choosing output shape, identify Reader need, Decision frame, first principles, and Evidence boundary. Rebuild from goal, audience, constraints, facts, inferences, assumptions, tradeoffs, and next action; trace claims to source.

All modes start with BLUF; SCQA/PREP may shape reasoning, but the first visible sentence answers directly.

## Output Contract

Start with the direct answer. Keep Top 3 distinct support. Mark important claims as 事实 / 推断 / 假设 (fact / inference / assumption). Explain tradeoffs, recommendation, rejected path, and CTA/next action. Treat validator warnings as advisory.
If the skill is loaded and the answer is not `plain-brief`, show visual structure instead of linear paragraphs.

Handoff obligation exists only when changed behavior, evidence, risk, or continuation matters.

## HTML Artifact Contract

Use only for `html-artifact` mode. Write one static UTF-8 Chinese `.html`, defaulting to `skills/effective-interact/artifacts/`; no build step. Default to self-contained `pre-rendered` output with inlineable HTML/CSS and vanilla JS. Use `runtime-cdn` only when dynamic Markdown/Mermaid/code rendering materially lowers decision cost and `--require-browser` validation is available.

HTML handoff must be visualized with a table, map, timeline, flow, evidence layout, or comparison surface. Avoid Markdown-in-HTML handoffs and decorative visuals. For code evidence, include source file link, line number, smallest useful snippet, and `diff` when before/after matters. Mermaid must render to SVG before handoff. Editors: no network/repo writes, credentials, hidden persistence. Use grouped navigation with a return-to-overview path. 不要外显 Source fallback.

## Long Task Fact Ledger

For long drifting work, keep JSONL at `skills/effective-interact/artifacts/session-ledgers/<task-slug>.jsonl`; record tool-result summaries, verification, blockers, and next actions. Never record secrets or raw large logs.

## Generator First Workflow

For `html-artifact` mode: read `DESIGN.md` and the relevant split references, choose only the needed components, then write UTF-8 JSON for `references/interaction-input-schema.json`; run `scripts/create-interaction.mjs --input <input.json> --slug <name> --json`; omit `--out-dir` unless the destination is gitignored; validate `outputPath` with `scripts/validate-interaction.mjs <outputPath> --json --require-browser`; serve with `scripts/serve-artifact.mjs` when a URL helps.

## Failure Lessons

- Use UTF-8 for Chinese input/output; repeated question marks or mojibake usually come from shell/codepage problems. Treat consecutive question-mark corruption as 连续问号乱码.
- Sanitize Mermaid, browser, and validator diagnostics; do not expose local paths, `file:///`, tokens, or raw HTML/script in published artifacts.

## Verification

Before HTML handoff, run `scripts/validate-interaction.mjs`; report degradation. Read `DESIGN.md`, `references/report-ia.md`, `references/visual-language.md`, `references/component-contracts.md`, `references/generator-validation-contract.md`, `references/interaction-patterns.md`, `references/html-effectiveness-patterns.md`, `references/html-aesthetic-preflight.md`, ledger schema, and eval cases before changing trigger/HTML rules.

More from JasonxzWen/harness-hub

SkillDescription
agent-interaction-auditLoad when the user asks for private agent interaction audits from local Codex/Claude Code traces, task profiles, tool-call decisions, collaboration bottlenecks, prompt/rule or automation-log audits, closeout retrospectives, or evidence-backed Skill/project-rule/Eval/SOP/OKF improvements.
agent-reachLoad when a task needs read-only internet research or content retrieval through an already installed Agent Reach CLI; diagnose available backends first, never install, upgrade, authenticate, configure, or copy credentials on the user's behalf.
animation-vocabularyLoad when a user describes a Web animation or motion effect without knowing its name and needs the precise term or close alternatives; use only for naming, not design, implementation, or review.
apple-designLoad when a frontend task needs Apple-platform design guidance or physical, gesture-driven, velocity-aware, interruptible interaction; skip generic visual styling and use review-animations for report-only motion review.
beautiful-feishu-whiteboardLoad when creating or restyling a polished editable Feishu or Lark whiteboard, infographic, diagram, poster, or visual explainer; do not load for generic SVGs, static images, or other whiteboard platforms.
clone-websiteLoad when the user explicitly asks to clone, reverse-engineer, or rebuild a website they own or are authorized to reproduce; do not load for generic redesign, inspiration, scraping, phishing, impersonation, or copying third-party brands.
codebase-to-courseLoad when a user wants a source-backed interactive HTML course that explains how a codebase works; do not load for chat tutoring, repository review, articles, slide decks, or general browser artifacts.
context-guidanceFixture skill used to represent an additional standard skill context surface.
decision-uiLoad when Codex 即将要求用户在 2-3 个互斥方案中做真实决定、准备询问阻塞性澄清问题或需要确认高影响取舍;将选择转换为宿主原生可点击 UI,并在工具不可用时诚实文本回退。不要用于低风险实现细节、只有一个合理答案的问题、普通信息采集或不需要用户决策的完成汇报。
design-taste-frontendLoad when a task needs anti-template frontend visual direction, design-read calibration, or pre-flight critique for landing pages, portfolios, marketing pages, or redesigns; do not load for dashboards, data tables, multi-step product UI, routine frontend logic, HTML reports, slide decks, or generic code explanation.