Claude.ai is surprisingly good at coding and bug-hunting in Scriptcase

I have been playing about with Claude.AI and using to to both track down errors/bugs in Scriptcase / my code but also to work on new apps / interfaces etc.

I can confidently say it has helped me do some new things I didn’t know how to do (e.g. a nice timeline graphic) as well as quickly track down logic bugs and even make a good stab at trickier bugs.

Learning points so far:

  • Always say ‘using scriptcase and php’ in order to get the best options. Clear descriptions of what you want to acheive work best.
  • It is happy to work incrementally - design someting simple then incrementally improve it
  • It is not perfect - hallucinates a bit but if you are familiar with SC most of these issues are obvious (usually relating to addressing variables or it stating menu options exist which don’t)

It has definitely saved a lot of time for me recently and I was very pleasantly surprised how effective it was - even with a fairly niche tool like Scriptcase.

1 Like

Hi,
I’m probably not expert like you and I’m wondering where do you use most Claude. My short tests were about blank apps and SQL query .
Are there other possible areas where to implement it , a part from JS scripts and methods. I use them very few because I’m not skilled on that.

1 Like

I was pretty amazed that in half a day I managed to get this created with Claude. It was an iterative process - describe clearly what I wanted, try out the code - feedback improvements and refinements until happy.

Really impressed as it just short circuited the graft of writing / adapting the code and was impressive at understanding what I wanted. Just need a bit of final polish at the end!

Hi @giovannino,

Oh there’s way more you can do with it beyond blank apps and SQL!

I use it pretty much everywhere in Scriptcase now:

  • PHP events — onLoad, onValidate, onAfterInsert, all that stuff. I just paste my code and say “this doesn’t work, fix it” or “add email notification after insert” and it usually nails it
  • JavaScript — this is where it really shines honestly. Dynamic field visibility, custom validation, AJAX calls… I’m not great with JS either but Claude makes it easy. Just describe what you want to happen on your form and it writes it
  • CSS styling — when you want your grid or form to look different than the default SC theme. Just describe it or even send a screenshot
  • Debugging — probably my #1 use. Paste the error + your code and 90% of the time it finds the problem right away
  • SC macros — sc_select, sc_lookup, sc_exec_sql etc. It knows them pretty well

My advice: always write “using Scriptcase and PHP” in your prompt, paste your actual code (not just a description), and don’t try to do everything at once — start simple and build from there.

And yes it does hallucinate sometimes — it might suggest a SC function that doesn’t exist. But if you know SC basics you’ll catch it immediately. Small price to pay for how much time it saves.

Give it a try with your next JS task, I think you’ll be surprised!

1 Like

Great ! Thanks

1 Like

Taking the Claude AI agent usage a bit further . . .

Has anyone attempted running Claude over the entire ScriptCase framework to track down long-term production bugs?