agentleFS
samuel-assamuel-as/doc-agent/.claude/skills/document/SKILL.md

document

Skill1 starsChanged 3 months agoMITView on GitHub

Records a procedure performed in the browser and generates step-by-step documentation with screenshots (markdown + optional PDF). Also regenerates the documentation of a previous recording. Use when the user asks to document, record or capture a procedure, process, tutorial or walkthrough done in the browser, wants a step-by-step guide with screenshots, asks to regenerate or rewrite the doc of an earlier recording, or invokes /document.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop, scope and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bamechoSkill

    develop

    开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移

    Also in 5 projects that use this

  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 5 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 5 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    test

    Also in 8 projects that use this

  • sahinSkill

    peer-review

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look at the argument the user passed (/document <argument>):

    line 29
  2. Very specific:

    regenerate: read references/write-doc.md and follow it for that procedure.

    line 32
  3. Very specific:

    No argument → ask the user (one question, options): record a new procedure, or — if docs/*/sessions/ folders exist — regenerate one of them …

    line 35
  4. Very specific:

    Run the runtime bootstrap (idempotent, fast when already installed): powershell -ExecutionPolicy Bypass -File …

    line 41
  5. Very specific:

    Run IN THE BACKGROUND, using the node.exe path printed by the bootstrap: "C:/...literal path.../node.exe" …

    line 52
  6. Distinctive:

    close the browser: when you are done." If the profile did NOT exist, add: "First recording: sign in to your systems in this browser — the …

    line 55
  7. Distinctive:

    Wait for the background process to finish (the notification arrives on its own.

    line 58
  8. Very specific:

    Read the session.json in that folder.

    line 64
  9. Very specific:

    Read references/write-doc.md and follow that process from the start, using the session you just recorded (validation, reading every …

    line 73

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Document a browser procedure

One skill, two modes: record a new procedure (browser recording + doc generation) or regenerate the documentation of an existing recording. Everything doc-agent produces for a procedure lives in docs/<slug>/ inside the current project:

  • README.md, screenshots/ and the optional PDF — the generated guide;
  • sessions/<YYYY-MM-DD-HHMM>/ — one folder per recording (session.json + shots/), so earlier takes are preserved.

Paths used below

  • <home> = the DOC_AGENT_HOME environment variable if set, otherwise %LOCALAPPDATA%\doc-agent. Holds machine-level data: <home>\runtime\node.exe (portable Node) and <home>\browser-profile\ (the recording browser's logins).
  • Script paths are relative to this skill's directory. In Claude Code, ${CLAUDE_SKILL_DIR} resolves to it; in other agents, resolve them from wherever this SKILL.md was read.

0. Decide the mode

Look at the argument the user passed (/document <argument>):

  • Argument given and docs/<argument>/sessions/ exists in the project → regenerate: read references/write-doc.md and follow it for that procedure.
  • Argument given and no such folder → treat it as the name of a new procedure → record (section 1).
  • No argument → ask the user (one question, options): record a new procedure, or — if docs/*/sessions/ folders exist — regenerate one of them (list the procedure names as options). Then proceed accordingly.

1. Prepare the environment (silent when everything is fine)

  1. Run the runtime bootstrap (idempotent, fast when already installed): powershell -ExecutionPolicy Bypass -File "${CLAUDE_SKILL_DIR}/scripts/bootstrap.ps1"
    • Exit 0 → the output ends with the full path of node.exe (after "at"). Use that LITERAL path in every later command instead of rebuilding it from variables — a static path avoids permission friction.
    • Exit 1 → show the user the script output (it contains the manual plan B with the exact zip link) and STOP.

2. Record

  1. Note whether <home>\browser-profile\ already exists (it decides the message below).
  2. Run IN THE BACKGROUND, using the node.exe path printed by the bootstrap: "C:/...literal path.../node.exe" "${CLAUDE_SKILL_DIR}/scripts/doc-agent.mjs" record <name>
  3. Tell the user: "The recording browser is open. Run the procedure as usual and close the browser when you are done." If the profile did NOT exist, add: "First recording: sign in to your systems in this browser — the logins are kept for the next ones."
  4. Wait for the background process to finish (the notification arrives on its own; do not keep polling its status).

3. Handle the shutdown

  • Exit 0: the CLI output contains Session ready: docs/<slug>/sessions/<stamp>. Read the session.json in that folder; if steps is empty, report "nothing was recorded — the browser was closed without any action" and STOP.
  • Exit 1: show the CLI output to the user and STOP. Never generate documentation from a session that failed to consolidate. Special case: if the process died within seconds with an error mentioning Chrome/Edge/DOC_AGENT_CHROME, the machine has no supported browser — explain that to the user in one sentence.

4. Generate the documentation

Read references/write-doc.md and follow that process from the start, using the session you just recorded (validation, reading every screenshot, grouping into logical steps, the template, copying the images, offering the PDF and the closing note).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.