endueendue

Documentation Writer

Use when developers need a document about existing code or an API, such as a guide, reference or README. Puts a request beside its result and says where every fact comes from.

v4.0.0

Was dieser Skill macht

Die vollständigen Anweisungen, denen Ihr Agent folgt. Nichts davon liegt hinter einer Anmeldung.

Documentation

Help a developer get a first result, using only facts with a source.

When to use

Use it to explain technical behavior that already exists. Use api-design to create or change an API, help-center-articles for product users, sop-writing for internal work and release-notes for what changed. Answer a quick question in chat.

How to work

  1. Choose one reader, one task and one type: how-to, reference, explanation or README.
  2. List the facts and give each one source label. Code: the supplied code or file shows it; give its name and line. Owner: the user or their notes say it. Needs checking: nothing supplied shows it. Use the user's order of sources. If sources disagree and there's no order, show both and use Needs checking. Don't assume code or the newest file is right.
  3. Use one example throughout, with the user's example values. Write placeholders, such as <token>, for values the reader must replace, and … for any secret.
  4. Trace the example through the source, in order, and list every input, limit, error and response field.
  5. Compare each statement in an old document with the source. Same: it matches. Different: it doesn't. Can't tell: no source covers it.

For a README, save one README.md instead of a page, with the same sections. Put each half of the pair in its own code block.

The result

Always use these sections, in this order. If one doesn't apply, say why.

  1. Cover: what the reader can do, and with what. Big number: the success code, or the number of steps to the first result. Facts: the reader, document type and how many facts need checking.
  2. First result: the main visual: e-ba with an e-code in each half. Left: what the reader sends or types. Right: what comes back, then the error each input can cause. Put 2–5 numbers in <i>, each on both sides, and explain them in an <ol> below. Break lines at 30 characters if they still work. Write "Checked against the source, not run" unless a result was supplied. If a half has no source, write "Needs checking" there.
  3. Before you start: a list of access, versions and each placeholder's meaning.
  4. Reference: a 2-column table of every input, response field and limit: name (type or required in an <em>), meaning and rule (source in an <em>).
  5. Errors: a 3-column table, each error once: error (source in an <em>), cause and fix, retry. Yes: the same request may work later. After a fix: something must change first. Not stated: no source shows which.
  6. How it works: a short paragraph or list with sources. Add an e-flow only if the order matters and a source shows every step.
  7. Old document: a 3-column table: what it says, what the source says (and which), Same, Different or Can't tell.
  8. Sources and open facts: a list of the sources, then each fact marked Needs checking and who could answer it, if known.

Build the page

Save one .html file (under 7,000 characters) with save_output. Copy the markup below with every part (leads and sources too), changing only text and numbers. Plain <p>, <br>, <ul> and <ol> are fine, but nothing else: no CSS, scripts, images, fonts or outside links. Keep <style> as is: endue adds its design there. Set lang and write every heading, label, status and verdict, even those named above, in that language only. In text and code, write &lt; for < and &amp; for &.

If the task sets another format, use it with the same sections in the same order. If you can't save files, give them in chat. After saving, reply with only the conclusion and what needs attention.

<!doctype html><html lang="ko"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Title</title><style>/*endue-kit*/</style></head><body><main class="e">
<header class="e-cover"><p>topic · date</p><h1>Conclusion, up to 60 characters (30 in Korean or Japanese)</h1><p>The main reason</p><ul><li>key fact</li></ul><div class="e-big"><b>12%</b><span>what it measures</span></div></header>
<section><h2>Heading</h2><p class="e-lead">The point in one sentence</p><!-- blocks --></section>
<footer class="e-src"><b>Sources</b><ol><li>source, date</li></ol></footer>
</main></body></html>
  • The big number proves the conclusion in up to 12 characters. Without one, leave out e-big.
  • Variables take plain numbers (1240 or 0.5, not 1,240). --max is the block's largest value. Show every value as text too. Counts in sentences must match the blocks.
  • Put hi only on what proves the block's point. Use good, warn and bad only when clear, with a word beside them. Say what each change is compared with.

Blocks to use here:

  • Before and after: <div class="e-ba"><div><h3>Before</h3><p>text</p></div><div><h3>After</h3><p>text</p></div></div>
  • Code: <pre class="e-code"><code>18 kept</code><code><del>19 removed</del></code><code><ins><i>1</i>19 added</ins></code></pre>. Each line gets its own <code>. Use <del>, <ins>, or <mark> for a line to look at. <i>1</i> at the start of a line is a marker in the margin, not its line number.
  • Table, up to 5 columns: <div class="e-table"><table><thead><tr><th>Task</th><th class="n">Cost</th></tr></thead><tbody><tr class="hi"><td>text</td><td class="n">1,200</td></tr><tr class="total"><td>Total</td><td class="n">1,200</td></tr></tbody></table></div>. n is for numbers. <em> in a cell adds a small line below.
  • Flow, 2–5 boxes: <div class="e-flow"><div>start</div><div class="ask">question?</div><div class="hi">outcome</div></div>

Before you finish

  • Every input in the example is in the reference, and every response field is explained.
  • The count on the cover matches section 8.

Never

  • Invent an address, default, version, limit, result, retry rule or security step.
  • Copy from an old document without checking it.
  • Say an example was run when it was only checked, or show a secret.
Kostenlos starten

Nach der Registrierung fügen Sie Documentation Writer mit einem Klick zu Ihrem Agenten hinzu.

Weitere Skills