#What are the best text based gleam resources you know?

1 messages · Page 1 of 1 (latest)

hollow remnant
#

So I'm building a claude code gleam plugin for tailoring cluade to the max when writing gleam. What are for you the best text based resources of the language? Maybe certain parts of the std lib? Maybe that PR Louis is writing on the website?

(Disclaimer: I will contact the creators to ask them if they agree on training the AI with their posts, if not, their posts wont be used)

earnest schooner
#

-# nit: having claude read something is not training

hollow remnant
#

Maybe they don't want to be linked and consumed by IA, which is understandable, altough maybe rare

crimson belfry
#

I thought your plugin would be just a wrapper with binding to claude code

For claude to write gleam, latest model are good enough if you provide a standard and best practice, but have to be careful as it's just about having the right context

The problem of the standard / best practice is also taste dependent, I got a bit opinated on my gleam code and the few other similar file for gleam code wouldn't fit my needs

hollow remnant
#

Of course I'll be testing the plugin before releasing it

hollow remnant
earnest schooner
#

From experience the main thing claude struggles with is up-to-date api docs, so I'd want to figure out some mcp thingy where it gives it the markdown docs/types more directly without the html around it, like what the lsp would spit out. Like using lustre v4 or old decode apis.

it has the language itself down pretty well especially if you have some existing code.

best practices are hard because for me most of them have so many exceptions that it never knows what to do anyways ^.^

I would say writing some original "language tour/conventions pr abridged" thingy could be good

hollow remnant
earnest schooner
#

nah i just told it how hex links work

crimson belfry
hollow remnant
#

you should give it a try

earnest schooner
#

you forget i do not want to spend any time setting up anything

hollow remnant
#

XD

#

it's just a line on the terminal

earnest schooner
#

all my tools are kinda shit and i don't know how to use them either

hollow remnant
#

claude mcp add --transport http gleam_packages https://gleam-package-mcp.renata-amutio.workers.dev/ -s user

earnest schooner
crimson belfry
#

I also have a /add-cheatsheeat task in claude code that just take a package hex link that I use often and create a cheatsheet

When coding, I can telll it to refer to it when needed if it struggle to not compile

crimson belfry
hollow remnant
#

Well, I'm doing something like linking to stuff and providing small sumaries of the linked stuff

crimson belfry
earnest schooner
#

idk i don't really like that it's connecting to something running somewhere else
also how would i do that in zed 😂

hollow remnant
#

the mcp is opensource btw

hollow remnant
crimson belfry
#

@hollow remnant anyway for this claude code plugin,
personally if you just make typed binding on top of claude code (starting session, structured message, resume session, pretty much things from the cli see screenshot)

claude code can them be integrate in other more complex workflow

for example I was thinking of having a gleam app that has actually workflow to add feature that I control the steps, instead of relying on claude. It could had monitoring or the various claude agents, etc.

hollow remnant
#

are you talking about a gleam library to control claude code?

crimson belfry
#

well I thought that what you meant as a plugin at first XD

but I realize you mean a claude code plugin x)

hollow remnant
#

Feel free to use it and provide feedback

elder tide
#

love it

hollow remnant
#

XD

#

upsi

#

AI generates files for AI to consume so AI can generate files that AI can consume

crimson belfry
#

what model did you use ?

Also don't one shot, give examples (your codebase)

elder tide
#

this is also wrong

#

this link goes nowhere

hollow remnant
#

thanks!

#

I'll update the plugin as soon as I can