agentleFS
junixlabsjunixlabs/how-it-works/SKILL.md

how-it-works

Skill0 starsChanged 46 days agoMITView on GitHub

Compile verified product content from a storyboard and the real product — step-by-step guides with annotated screenshots and GIFs, narrated tutorial videos (16:9 and 9:16), feature-release notes and social cuts, and animated architecture/workflow explainers built on Archify diagrams. Every UI step is performed on the live product and asserted; every named UI label is checked against the captured DOM; videos pass loudness, caption-speed, and black-frame gates before delivery. Use when the user asks for a product guide, how-to, tutorial video, onboarding walkthrough, release announcement video, social clip of a feature, or a video that explains how a system or workflow works.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oh-my-issues, what-the and 7 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.
  • tuliosalustiano27Skill

    oh-my-issues

    Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.

    Also in 3 projects that use this

  • tuliosalustiano27Skill

    what-the

    What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.

    Also in 3 projects that use this

  • thedotmackSkill

    pathfinder

    Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

    Also in 4 projects that use this

  • magnusrodsethSkill

    learn-codebase

    Understand a codebase by reading its actual source, on GitHub or on disk: how a pattern is really implemented, an org's conventions, how two things are wired. Use for \"how does <repo> do X\". For published API docs prefer find-docs.

    Also in 4 projects that use this

  • barrelcSkill

    mem-search

    Search kimi-mneme's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", "what did we do yesterday?", or needs work from previous sessions.

    Also in 3 projects that use this

  • TrecekSkill

    make-plan

    Create implementation plans through deep codebase understanding. Use when user asks to create, devise, or write a plan. Leverages subagents to explore approaches, understand systems, and design aligned solutions.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    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. Distinctive:

    Write one small typed storyboard.

    line 11
  2. Very specific:

    Run hiw doctor first when a command fails for an environment reason.

    line 42
  3. Very specific:

    Real before words: Every ui scene has expect assertions that prove the product reached the state the narration claims.

    line 57
  4. Very specific:

    Targets are semantic: Use role+name, placeholder, or testId.

    line 58
  5. Very specific:

    Bold means a real UI name: Every term in a guide must exist in the captured page text, a focus label, a diagram node label, or be a key …

    line 59
  6. Very specific:

    Read references/authoring-contract.md only when you need a field that the schema and example do not make obvious: action types, expect …

    line 65
  7. Distinctive:

    Keep three claims separate, and never let one imply another:

    line 69
  8. Very specific:

    Read references/delivery-contract.md for the receipt fields, failure stages, and what to check visually.

    line 75
  9. Distinctive:

    Add one line for any known limitation: the placeholder voice, estimated caption timing, or custom music licensing.

    line 90
  10. Very specific:

    Before the first delivery, run hiw doctor.

    line 94
  11. Distinctive:

    If setup stops on a missing system tool (ffmpeg, or Python 3.10 to 3.12), tell the user the install command it printed.

    line 102

“Common” is measured: kept by at least 6 in 10 of the 8 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

How It Works

Write one small typed storyboard; the CLI captures the real product, renders, verifies, and delivers. You author intent and words, never pixels, coordinates, or timings.

CLI: node <skill>/bin/hiw.mjs (below: hiw). All commands accept --json.

Fast path

  1. Pick the content kind from the request (router below). Read schemas/storyboard.schema.json and the one matching file in examples/. Read nothing else yet: not lib/, not the references.
  2. Artifact first: the next action writes the candidate storyboard next to the user's work (for example content/<id>.storyboard.json). Use new ids and the user's product facts; take only the shape from the example.
  3. Validate after every edit:

    hiw validate <storyboard.json> --json

    Fix only the diagnosed subject.path, check evidence, pick from supportedFixes, and rerun. Stop when validation is clean.

  4. Deliver once:

    hiw deliver <storyboard.json> <out-dir> --json

    It captures, renders, and runs every gate in a private work directory and replaces the artifacts in <out-dir> only when all gates pass. A non-zero exit is never success. A failed delivery keeps the previous output, so never review <out-dir> after a failure.

  5. Review what was delivered:

    hiw review <out-dir>

    Open every printed contact sheet and the guide with an image reader. Record exactly one result: hiw review <out-dir> --result passed|failed|skipped --rounds N --note "...".

  6. Repair loop: at most two focused correction rounds. After each edit, run validate then deliver again. If two rounds do not reduce the failing gates, stop and report the remaining diagnostics truthfully.

Run hiw doctor first when a command fails for an environment reason. Do not edit lib/ to work around a gate; a gate failure means the storyboard or the product is wrong.

Kind router

kindUse forDefault formatsNeeds
task-tutorial"How do I…" in a product: onboarding, one task end to endguide, video-16x9product.url, ui scenes
feature-releaseAnnounce what shipped and show how to use itrelease notes, video-16x9, video-9x16release, ui scenes, optional title scenes
architecture-explainerHow a system, pipeline, or workflow worksguide, video-16x9diagrams (Archify specs), diagram scenes

Scene kinds: ui (real actions on the product), diagram (focus nodes and trace edges on one Archify diagram), title (a kinetic heading card). Kinds can be mixed; consecutive scenes on the same diagram share one continuous camera.

Authoring invariants

  • One scene, one idea. Narration is one or two short sentences, spoken in about 4 to 10 s. The caption gate fails above 20 chars/s. Aim for about 15.
  • Real before words. Every ui scene has expect assertions that prove the product reached the state the narration claims. Write the narration to match what happens, never the reverse.
  • Targets are semantic. Use role+name, placeholder, or testId. Never use CSS paths or coordinates. {label} in guide.step becomes the captured label of focus, in bold.
  • Bold means a real UI name. Every **term** in a guide must exist in the captured page text, a focus label, a diagram node label, or be a key name (Enter, Esc, Tab). Otherwise the label gate fails. Do not bold ordinary words.
  • Callouts: set "callout": false for scenes whose focus is decorative, such as a large heading. fx: "celebrate" adds a burst on completion clicks. fx: "filter" adds a whoosh on view changes.
  • Diagrams belong to Archify. Author the diagram with the archify skill's own fast path and acceptance, which is showcase validation with 0 errors. Keep it at 12 nodes or fewer, with a clear main path and edge ids. A diagram scene lists focus node ids and optional trace edge ids, in narration order. A final scene whose focus is every node shows the whole picture.
  • Language: English uses the Kokoro voice with word-level caption timing. For other languages, set copy.intro, copy.outro, and copy.guide strings, because the defaults are English. Set tts.engine to say or none and say that captions use estimated timing.
  • Music: audio.music: "default" uses assets/music/default.mp3 when present (none ships; see assets/music/README.md), null means no music, or pass a path to a licensed track. SFX are built in and generated procedurally, so they are license-clean.

Read references/authoring-contract.md only when you need a field that the schema and example do not make obvious: action types, expect forms, copy keys, or diagram scene timing.

Delivery claims

Keep three claims separate, and never let one imply another:

  1. Product evidence: capture_evidence: passed means every ui scene ran on the live product and its assertions held.
  2. Deterministic gates: gates N/N covers labels, GIF coverage, composition check, spec, duration, black frames, loudness, caption speed, and Archify acceptance for diagrams.
  3. Perceptual review: visual_review is recorded only after you looked at the contact sheets and guide images. Use skipped when no image reader exists. Never use passed without looking.

Read references/delivery-contract.md for the receipt fields, failure stages, and what to check visually.

Output

Return to the user:

kind: task-tutorial|feature-release|architecture-explainer
artifacts: <absolute paths from receipt.json>
gates: N/N passed
capture_evidence: passed|not-applicable
visual_review: passed|failed|skipped
correction_rounds: 0|1|2

Add one line for any known limitation: the placeholder voice, estimated caption timing, or custom music licensing. Do not claim success for a non-zero command or a review you did not perform.

Setup

Before the first delivery, run hiw doctor. If it reports a missing dependency, run the setup script once. It is safe to rerun, and it is the same script the plugin's /how-it-works:setup command runs:

node <skill>/scripts/setup.mjs            # npm deps, Chromium, Kokoro voice (~1 GB, cached in ~/.cache/how-it-works)
node <skill>/scripts/setup.mjs --no-tts   # skip the voice; use tts.engine "say" or "none"
hiw demo <out-dir>                        # architecture explainer of this pipeline; needs Archify

If setup stops on a missing system tool (ffmpeg, or Python 3.10 to 3.12), tell the user the install command it printed.

Diagram scenes need the archify skill at ~/.claude/skills/archify, or set ARCHIFY_HOME.

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.