ohyeh/agent-scripts

writing-artifacts

Turn a fuzzy subject — a problem description, an incident, a decision, a long-form idea — into a polished deliverable in the user's chosen format (md, html page, Artifact, image, or plain prose).

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

writing-artifacts

A production line: raw thoughts in, publishable artifact out. You orchestrate stations; each station's method lives in its own SKILL.md — read it at that stage, never work from memory of it.

Stage 0 — frame (one question round, then move)

Pin three things before writing anything: the SUBJECT (one sentence), the READER (who must understand it), and the OUTPUT FORMAT. Default format by destination: quick share → md · something the user will look at twice or show someone → html page or Artifact · visual metaphor / hero image needed → add an image stage. If the user already said the format, don't ask.

Reader preset — ELI5: "explain like I'm five", "dead simple", "完全外行" pins READER = knows nothing about the domain and FORMAT = Artifact carried by big pictures and few words. Simplify the language, never the facts: no jargon without a grounded term, no "simply/just/obviously".

Genre branch, decided here: in-repo SOFTWARE documentation (README, API docs, tutorials, how-to guides — anything living under the repo) swaps the structure station: run documentation-writing (Eight Rules + Diataxis, docs/ location and linking rules) as Stage 2 instead of the writing-beats/shape pair, keeping Stage 1 mining and Stage 3 stop-slop discipline unchanged. Everything else — problem writeups, incidents, decisions, long-form prose — takes the default line below.

Stage 1 — mine (diverge)

writing-fragments: dump everything known about the subject as raw fragments — evidence, timeline, feelings, half-thoughts — no structure yet. For a genuinely fuzzy idea (not a known incident), run adhd first for parallel divergence, then fragment the survivors.

Stage 2 — structure (converge)

Pick ONE:

  • writing-beats — when the reader must be LED somewhere: problem

narratives, incident writeups, decision rationales. Grounds each term before a beat leans on it.

  • writing-shape — when the material is already roughly ordered and just

needs shaping paragraph by paragraph.

Stage 3 — tighten

edit-article over the draft, with stop-slop loaded as criteria for the whole run (not just this stage): no filler, no hedging, no AI-slop cadence.

Stage 4 — render (format branch)

  • md / plain prose → deliver the tightened text directly; done.
  • html page / Artifact / diagram / image → hand the FINISHED TEXT to

using-design-skills as the content contract and let IT compose the pipeline (it owns authority selection, imagegen delegation, and the screenshot-evidence quality loop). Never style inline yourself; the text is frozen content by this point — design changes layout, not wording.

Stage 5 — report the edit (in the turn, not in the artifact)

After delivering, add at most five lines naming what changed and why. One line per edit class, not per sentence: the jargon you grounded, the assumption you made explicit, the structure you reordered, what you cut. Name the problem, not the prettier wording.

When the input was EXISTING text, each line is before → after, quoting the shortest fragment that carries the problem. When the text is new, drop the before half and report what you cut and why.

This report never enters the artifact.

Boundaries

  • Words first, pixels second: never enter Stage 4 with an untightened draft —

redesigning slop produces well-dressed slop.

  • One pass back is allowed: if rendering reveals a structural hole (a section

that can't be visualized because it was never actually explained), return to Stage 2 for THAT section only, then re-render.

  • This skill owns written deliverables about a subject — prose AND in-repo

software docs (the genre branch in Stage 0 picks the structure station). A plan page from a discussion → html-plan directly.

来自同一仓库

更多 Skills

全部 Skills
ohyeh
社区

ask-nova

Interview-driven flow picker. Use when the user is unsure which skill/flow/pipeline fits — new project kickoff, cross-domain work, or a fuzzy situation. Reads the three routers live and recommends ONE flow. Not for tasks whose owner is already obvious.

安装量
3
GitHub Stars
0
最近更新
9月2日
ohyeh
社区

defect-first-review

Perform a read-only, defect-first review of a specified code change and return every actionable finding, reading the whole diff before running anything. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions. Prefer this over the Codex-bundled review-agent, which carries no read-before-you-run gate.

安装量
3
GitHub Stars
0
最近更新
9月2日
ohyeh
社区

delegation-templates

Fill-in-the-blank prompt templates for delegating work to subagents or tmux workers - SEARCH/LOCATE, IMPLEMENT, REFACTOR, RESEARCH, REVIEW/VERIFY. Invoke BEFORE writing any delegation prompt (Agent tool, agent-tmux worker, or fanout task) so the prompt ships with explicit GOAL, ACCEPTANCE, and REPORT sections instead of a vague ask. Not for deciding WHETHER to delegate or for driving workers after launch (see the tmux-delegate agent and the tmux-agent-tools skill for those).

安装量
3
GitHub Stars
0
最近更新
9月2日
ohyeh
社区

session-handoff

Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fresh agents to continue with zero ambiguity.

安装量
3
GitHub Stars
0
最近更新
9月2日