Read options from the project's conciv config, and add a setting the user changes in the widget.
A plugin has two kinds of settings. Options live in the project's conciv config. The team shares them
through the repo. A setting in the widget is one the user changes. It stays on their machine.
Copy this prompt into your agent. It builds this in your project from this page.
Prompt
Build this in my project with conciv. conciv is a dev-only AI agent widget, and it already runs in my app.
1. Read https://conciv.dev/docs/plugins/guides/settings.md and follow it. It is the source of truth for the API.
2. If the project has the conciv-develop skill (conciv init installs it with the @conciv/skills docs pack), load it too.
3. Give my plugin options from the conciv config, or a setting in the widget settings, as the page shows.
4. If I did not say what it should do, ask me before you write code.
5. Write the browser part in the UI framework my app uses. For React or Preact, put it in my app with @conciv/react or @conciv/preact and give it to <ConcivWidget>, as the page shows. For anything else, use Solid in the plugin folder and build it as the page shows.
6. Install only the packages the page lists, with the package manager this project uses.
7. Tell me where the option goes in my config, or where the setting shows in the widget settings.
8. When you are done, tell me what you changed and how to see it.
Your engine part reads them as ctx.options. Check them with a schema first, since the user can write anything:
conciv/plugins/tickets/server.ts
import {} from 'zod'import {Plugin} from '@conciv/backend-plugin-api'const =.({: .(),: .().})export defaultPlugin.({: 'tickets', async() { const = await..(() => {.({: 'ticket_policy',: 'Name the tracker project this repo files tickets in, and when stale tickets close.',: .: async () => ({: `Tickets go in ${.}. Stale tickets close after ${ }), }) }) },})
conciv/plugins/tickets/server.ts
import {} from 'effect'import {} from 'zod'import {Plugin
A few things to notice:
ctx.options is the object from the config entry. Every value in it is JSON.
Options.parse checks it and fills in the defaults.
In both tabs a parse that fails stops the plugin from loading, with zod's message in the log. That tells the user
what to fix.
The browser part gets the same object as ctx.options.
prefs.value is the stored value. prefs.set replaces it. The widget saves it for you.
In Solid, usePlugin gives a component your plugin's context. ctx.stores.prefs is typed from the declaration.
In Solid, ctx.ui holds the widget's own components, so the row looks like the widget's own settings. They are
Solid components, so the other tabs draw a plain checkbox.
prefs.value is a Solid store. Outside Solid, read it once as the row draws, and keep your own state after.
entries is what the settings search finds.
With no page, the entry is a page of its own. With only page: 'general', it is a section on the General page.