Configurable skills #348
Open
phryneas(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/348/head·opened Showing 23 changed files with 85 additions and 3 deletions (loading 19).
x
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': minor
+---
+
+Add optional skill transforms for persistent project onboarding and individualized guidance. `intent load` invokes `load()`, and the new `intent configure` forwards question/answer pairs and stdin to `configure()`. Both functions receive invocation-aware load/configure commands for their instructions. Transforms run with in-memory skill/config filesystems inside a restricted Node subprocess and VM on Node 22+.
@@ -0,0 +1,61 @@
+---
+title: intent configure
+id: intent-configure
+---
+
+> **Note:** This command is intended to be called by agents in most cases, following the setup instructions returned by `intent load`.
+
+`intent configure` calls a skill's `intent-transform` module's `configure()` function. It forwards question/answer pairs and piped stdin, saves successful config changes, and prints the returned string.
+
+<!-- ::start:tabs variant="package-manager" mode="local-install" -->
+
+```text
+@tanstack/intent@latest configure <package>#<skill> [--answer <question=value>] [--reset] [--global] [--global-only]
+```
+
+<!-- ::end:tabs -->
+
+## Inputs
+
+- `--reset` starts `configure()` with an empty config folder. Answers and stdin are still forwarded, so you can reset and submit new preferences in one call. The reset and any new writes are saved together only if the transform succeeds; failures preserve the previous configuration.
+
+- Repeat `--answer 'question=value'` to submit multiple answers. Intent splits each argument at the first `=` and preserves order and duplicate question IDs. IDs must be nonempty and cannot contain `=`. Values remain strings, including leading zeros, empty values (`Q1=`), additional `=` characters, and newlines. Quote arguments containing shell-special characters or whitespace.