← Commit history

Hero from Hero Studio, showcase, package manifest and skill

Colby Knox ·1b9f688906 ·17d ago ·parent 7a14efd
7 files changed +81−2
README.md+6−2
@@ -1,10 +1,10 @@ # Resistor Flash Cards -Interactive flash cards for studying resistors in a circuits class. The page itself is the deck: open it, click a card to flip it, mark it "Got it" or "Again", and shuffle for a fresh set.+Interactive flash cards for studying resistors in a circuits class. The wiki page itself is the deck: open it, click a card to flip it, mark it "Got it" or "Again", and shuffle for a fresh set. Nothing to install.  ## Decks -- Color code: read 4-band and 5-band resistors, per-band digits and multipliers, mnemonics, the 0 ohm jumper, tempco bands+- Color code: read 4-band and 5-band resistors, per-band digits and multipliers, the mnemonic, the 0 ohm jumper, tempco bands - Value to bands: given a value and tolerance, name the bands - SMD codes: 3-digit, 4-digit, R-notation, and EIA-96 markings - Formulas: Ohm's law, power, series and parallel, dividers, Kirchhoff, Wheatstone, tolerance, E-series, power ratings, tempco, resistor types@@ -16,6 +16,10 @@ The color-code, value-to-bands, and calculation cards are generated fresh on eve  space flips, left and right arrows move, 1 marks Again, 2 marks Got it, s shuffles. +## For agents++Installing this package adds a skill that opens the deck in a Hydrogen webview tab when someone asks to practice resistor color codes, SMD markings, or circuit formulas.+ ## Source  Everything lives in `readme.html`, a single self-contained file with no external assets.
docs/hero.pngadded
⋯ 1 unchanged line ⋯
install.shadded+5
@@ -0,0 +1,5 @@+#!/bin/sh+set -e+# The flash cards run on the wiki page; nothing is copied to the machine.+# The bundled skill teaches an agent to open the deck in a Hydrogen webview tab.+echo "Resistor Flash Cards: open https://wiki.adom.inc/test5/resistor-flash-cards to study"
package.jsonadded+31
@@ -0,0 +1,31 @@+{+  "slug": "resistor-flash-cards",+  "title": "Resistor Flash Cards",+  "type": "app",+  "version": "0.1.0",+  "description": "Interactive flash cards for a circuits class: read 4-band and 5-band resistor color codes, decode SMD markings, drill Ohm's law, power, series and parallel formulas, and work randomly generated practice problems. The deck runs on the wiki page itself, nothing to install.",+  "tags": ["education", "resistors", "circuits", "flash-cards", "study"],+  "license": "proprietary",+  "dependencies": {},+  "discovery_triggers": [+    "resistor flash cards",+    "quiz me on resistor color codes",+    "practice reading resistors",+    "study for my circuits class",+    "what does this SMD resistor code mean",+    "drill me on series and parallel resistors"+  ],+  "discovery_pitch": "Open when someone wants to study or quiz themselves on resistor color codes, SMD markings, or basic circuit formulas.",+  "sample_prompts": [+    { "label": "Color codes", "prompt": "Quiz me on resistor color codes" },+    { "label": "SMD markings", "prompt": "Help me practice reading SMD resistor codes" },+    { "label": "Formulas", "prompt": "Drill me on series and parallel resistor formulas for my circuits exam" }+  ],+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "hero": {+    "path": "docs/hero.png"+  }+}
screenshots/showcase.pngadded
⋯ 1 unchanged line ⋯
skills/resistor-flash-cards/SKILL.mdadded+36
@@ -0,0 +1,36 @@+---+name: resistor-flash-cards+description: >-+  Open the Resistor Flash Cards study deck when the user wants to practice or quiz themselves on+  resistor color codes, 4-band or 5-band resistors, SMD resistor markings (3-digit, 4-digit, EIA-96),+  Ohm's law, power dissipation, series and parallel resistance, voltage dividers, E12 and E24 values,+  or is studying for a circuits class or exam. Trigger phrases: resistor flash cards, quiz me on+  resistors, practice color codes, study resistors, circuits exam prep, what is this SMD code.+user-invocable: true+---++# Resistor Flash Cards++An interactive study deck hosted on the wiki page. Nothing runs locally.++## Open the deck++Open the page in a Hydrogen webview tab in a work pane (never the VS Code pane):++```bash+adom-cli hydrogen webview open-or-refresh --name "Resistor Flash Cards" \+  --url "https://wiki.adom.inc/test5/resistor-flash-cards" --display-icon "mdi:cards-outline"+```++## How the user drives it++- Pick a deck with the chips: All, Color code, Value to bands, SMD codes, Formulas, Calculations.+- Click the card or press space to flip. Left and right arrows move between cards.+- Got it (key 2) clears the card; Again (key 1) sends it to the back of the queue.+- Shuffle (key s) regenerates the random color-code and calculation cards.+- The cheat sheet under the controls lists every band color with its digit, multiplier and tolerance.++## If the user asks a resistor question directly++Answer it, then offer to open the deck for practice. Do not read answers off the page; the+generated cards change on every shuffle.
uninstall.shadded+3
@@ -0,0 +1,3 @@+#!/bin/sh+set -e+echo "Resistor Flash Cards removed (nothing was installed on disk)"