Fan poker teaching skill
Generate fully custom HTML card worlds inside the Fan Poker Deck Web Component.From its SKILL.md
npx -y skills add Hubujiu/fan-poker-teaching-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, 461 tokens by cl100k_base, as published. Nobody here has run it
Fan Poker Deck Skill
Use the fixed v2 release:
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@hubujiu/[email protected]/dist/fan-poker.js">
</script>
Output contract
Generate one <fan-poker> containing one or more <fan-card> children.
Each <fan-card> must:
- Have a useful
aria-label. - Contain the complete card-face HTML.
- Include its own
<style>when visual styling is required. - Prefer
:hostfor the world background, foreground, and typography. - Give the main root
min-width: 100%andmin-height: 100%. - Deliberately use a wider child only when horizontal scrolling is desired.
Do not generate the removed v1 template fields as a required structure. There is no mandatory cover, index, tag, title, body, footer, toolbar, counter, or progress bar.
Interaction rules
- Vertical overflow scrolls inside the card.
- Native scrollbars stay hidden.
- Floating scrollbars appear near the right or bottom edge.
- Horizontal overflow owns horizontal dragging.
- Deck dragging is available when the current world does not overflow horizontally.
- Add
data-fan-interactiveto custom drag controls that must never start deck navigation. - The component itself does not draw a focus indicator.
Minimal card
<fan-poker card-width="390px" card-height="520px" aria-label="Git lesson">
<fan-card aria-label="Git working tree">
<style>
:host {
display: block;
min-height: 100%;
background: #fff8ed;
color: #171717;
font-family: system-ui, sans-serif;
}
article {
min-width: 100%;
min-height: 100%;
padding: 28px;
}
</style>
<article>
<h1>Working tree</h1>
<p>Your uncommitted file changes live here.</p>
</article>
</fan-card>
</fan-poker>
What ships with it: 40 files
191.3 KB alongside SKILL.md, 8 of them executable
assets/
- fan-poker-base.html11.0 KB
docs/
- ACCESSIBILITY.md1.4 KB
- API.md2.4 KB
- FRAMEWORKS.md1.2 KB
- PUBLISHING.md1.5 KB
- VERSIONING.md1.3 KB
examples/
- animation-features-demo.html11.5 KB
- basic.html1.6 KB
- docker-lesson.html12.3 KB
- javascript-api.html1.5 KB
- react-example.jsx692 B
- theme-and-runtime.html2.0 KB
- vue-example.vue560 B
media/
- favicon.ico7.0 KB
- favicon.png3.9 KB
- preview.svg3.4 KB
references/
- card-data-schema.md1.5 KB
scripts/
- browser-smoke.html8.4 KB
- browser-smoke.shruns1.8 KB
- build.mjsruns414 B
- node-smoke.mjsruns1.6 KB
- size-check.mjsruns405 B
- style-isolation-smoke.html3.2 KB
- validate.mjsruns7.9 KB
src/
- fan-poker-fixed.jsruns4.1 KB
- fan-poker.jsruns43.3 KB
types/
- fan-poker.d.tsruns2.6 KB
- CHANGELOG.md1.4 KB
- CODE_OF_CONDUCT.md999 B
- CONTRIBUTING.md1.1 KB
- custom-elements.json10.0 KB
- index.html27.4 KB
- LICENSE1.0 KB
- .nojekyll0 B
- package.json2.0 KB
- README_EN.md2.2 KB
- README.md3.1 KB
- RELEASE_NOTES.md1.3 KB
- SECURITY.md1.3 KB
- SUPPORT.md733 B