Skip to content

About

Claude skill: view & book my gym classes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

fabb — Fabijoniškės pool group classes (Claude skill)

A Claude skill for the Fabijoniškės swimming pool & sports club (Fabijoniškių baseinas) in Vilnius. It lets you ask Claude to:

  • Show the group-class timetable for any day (/fabb, /fabb tomorrow, /fabb wednesday)
  • Register for a class in one sentence (register me for tomorrow's circle class)

It's pure Python standard library — no browser, no pip install, no dependencies. It reads the public schedule and books through the same HTTP endpoints the website itself uses.

Unofficial, community-built. Not affiliated with or endorsed by the pool.


Install

Claude Code (desktop / CLI)

/plugin marketplace add kstulgys/fabb-skill
/plugin install fabb@fabb

Then just type /fabb (or ask in plain language). To update later: /plugin marketplace update fabb.

Claude app (web claude.ai or mobile)

The apps install skills from an uploaded ZIP, not a GitHub URL:

  1. Download fabb-skill.zip from this repo.
  2. In the app: Settings → Capabilities/Skills → Create skill → upload the ZIP.
  3. Ask Claude for the pool schedule, or to register you for a class.

⚠️ Network note for the apps: the skill works by making HTTPS requests to fabijoniskiubaseinas.lt. Claude Code allows this (you approve the domain once). Whether the claude.ai/mobile code-execution sandbox permits outbound requests to an arbitrary site isn't publicly documented and may be restricted — if the app can't reach the site, the skill can't run there. It works reliably in Claude Code. Try it in the app and see.


First run: your details

The skill ships with no personal data. The first time you ask it to register you, Claude asks for four things and saves them locally so it never asks again:

  • Vardas (first name)
  • Pavardė (surname)
  • Kontaktinis tel. (phone)
  • El. pašto adresas (email)

They're stored in ~/.config/fabb/details.json on your machine (override with $FABB_DETAILS_PATH). They are never committed here. To change them, just tell Claude "update my fabb details".


Usage

/fabb                      → today's classes
/fabb tomorrow             → tomorrow's classes
/fabb wednesday            → that weekday this week (EN or LT name works)
register me for tomorrow's circle class

Under the hood Claude runs the bundled script:

python3 scripts/fabb.py show [day]            # markdown timetable
python3 scripts/fabb.py find <day> "<text>"   # JSON: matching classes + availability
python3 scripts/fabb.py whoami                # are details stored?
python3 scripts/fabb.py set-details --name … --surname … --phone … --email …
python3 scripts/fabb.py register <day> "<text>"   # resolve + book (if unambiguous)

register only books when exactly one open class matches; otherwise it reports ambiguous / full / past / no_match and books nothing. The pool dedupes by email, so re-running a booking is a safe no-op.


How booking works (no browser)

  1. GET the schedule → PHP session cookie.
  2. GET event.php?pid=&date= for the class.
  3. POST pid to /registracija/ as multipart/form-data (seeds the session's selected class — urlencoded does not work here).
  4. POST name/surname/phone/email/agree=y/ff=reg to /inc/tpl_reg.php.

Success ⇒ "sėkmingai užsiregistravote"; already booked ⇒ "jau esate užsiregistravęs".

Layout

.claude-plugin/marketplace.json   # makes the repo a Claude Code plugin marketplace
plugins/fabb/                     # the plugin
  .claude-plugin/plugin.json
  skills/fabb/                    # the skill itself
    SKILL.md
    scripts/fabb.py
    tests/snapshot.html           # saved page for offline tests
fabb-skill.zip                    # the same skill, zipped for app upload

License

MIT — see LICENSE.

About

Claude skill: view & book my gym classes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages