Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted (edited)

I have put together agent skills for developing QuickApps (offline). 
These are files added to your coding workspace that contains best practices for coding QuickApps.

Agent skills are a "standard" for most coding environments using agents - copilot, Claude code, Codex etc.
In the past I have coded an MCP for QA support but this is a much better approach. Please delete the MCP if you use it...
The caveat is that these skills assumes that you are using plua to code and test QuickApps. Many skills will use the plua command to to run troubleshooting scripts etc...

 

The instructions below are specifically for vscode/copilot but should be easy to reuse for other AI coding tools.
Just put the

Please login or register to see this link.

directory in the proper place for your tool and ask it to add the skills to CLAUDE.md, AGENT.MD etc.
The install-qa-skills prompt is specific for VSCode but your agent can most likely convert it to your agents preferences.

 

Below is for VSCode.

To install the skills you run an agent prompt 'install-qa-skills'. It's also used to update the skills to the latest version.

Before you can run /install-qa-skills, you need this prompt file in your workspace. Run one of these commands from your workspace root, then type /install-qa-skills in Copilot chat.
 

Universal (Python — macOS, Linux, Windows):

Please login or register to see this code.

On Windows, replace python3 with python if needed.

macOS / Linux (curl):

Please login or register to see this code.

Windows (PowerShell):

Please login or register to see this code.

 

Then in VS Code Copilot Chat: type /install-qa-skills and the agent will download all skills automatically. And the same command to update the skills.

The skills makes the agent aware about the REST API, the Fibaro Lua SDK, best practices, using plua etc.
This will allow the agent to help you create QuickApps from scratch, debug existing QAs, review the code for potential issues etc

An example prompt

Please login or register to see this code.

Creates the code below

Please login or register to see this code.

Pretty reasonable. It even found an available web api to get the temp. We could improve it by asking 

Please login or register to see this code.

...and it will change the code accordingly.
The exact result may vary depending on what LLM model is used. In these examples (and my coding overall) I use Claude Sonnet 4.6.

This is an excellent way to over time add new skills and best practices so the agent becomes smarter - and I will update the skills continuously as I identify these "best practices" and possible issues when coding QAs.
If you find something the agent could handle smarter, let me know in this thread and we can add it to the skill collection. This is the first release so there is a ton of stuff that could be added...
Also, if someone uses this with Claude code or Codex, please share the instructions in this thread. I'm not using Claude myself but maybe in the future. The skill files are available directly from the repo at 

Please login or register to see this link.


 

Edited by jgab
  • Like 1
  • Topic Author
  • Posted

    Example:

    Please login or register to see this code.

    Output:
     

    Please login or register to see this code.

     

    • Like 1
  • Topic Author
  • Posted (edited)

    Example:

    Please login or register to see this code.


    Output:

    Please login or register to see this code.


    HC3 UI:

    Please login or register to see this attachment.

    Edited by jgab
  • Topic Author
  • Posted

    Example:

    Please login or register to see this code.

    Output:
     

    Please login or register to see this code.

    ...and it seems to work. The UI for the children created are not so nice but at least it's a good start. Some iterations and it could be a reasonable QA...

    Posted

    @jgab Just have to say it! Love your work! :D

    Have been using both codex and Claude the last months :D 

    But just used and "AGENTS.md" File to define workstyle, Ui preferences, code style etc :D
    But for the documentation on the hc3 I have always had to link to forum threads and the fibaro doc (the AI knows alot without it to)
    But sometimes it seems to forget how the hc3 lua works sometimes 😅
    Testing it on codex and claude, seem like both can use this instructions :D

     

    • Like 1

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...