Authoring with AI
Use generated context instead of copying the whole website into a prompt:
llms.txtis the documentation and retrieval index.llms-api.txtis the compact callable reference.api.jsonis the structured public contract.hexis.d.luaprovides LuaLS completion and diagnostics.docs-manifest.jsondescribes documentation status.
All of these are generated from the same contract snapshot.
Prompt template
Create a Hexis Lua script for this observable goal:
[goal]
Use only members present in https://docs.usehexis.com/llms-api.txt.
Prefer Supported members. Explain any Advanced or Experimental member before
using it. Include preconditions, a timeout, cancellation behavior, and cleanup.
Do not infer similarly named, planned, legacy, or internal functions.
Review generated Lua
- Search
llms-api.txtfor everyhexis.*member. - Confirm signatures and stability against the linked page.
- Check world, inventory, GUI, and server assumptions.
- Add a finite timeout to every wait or polling loop.
- Test with a visible stop control.
Keep private data out of prompts
Do not send license data, session tokens, authenticated URLs, private logs, server addresses, personal information, or another person's script to a model unless you are authorized to share it.