Skip to content

fix: Document or remove skill install during arkenv init - #1984

Merged
yamcodes merged 3 commits into
v1from
cursor/remove-init-skill-install-9abb
Sep 25, 2026
Merged

yamcodes merged 3 commits into
v1from
cursor/remove-init-skill-install-9abb

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Fixes #1933

arkenv init no longer prompts for or runs a skill install. That includes interactive runs, --yes, and --agent.

When the ArkEnv skill is not already in an existing project, the next-steps note still prints npx skills add yamcodes/arkenv. It does not run that command. @arkenv/agent-plugin already includes the skill.

The init reference and the AI guide say the install is manual and separate from scaffolding. Minor changeset on arkenv.

Open in Web Open in Cursor 

arkenv init no longer prompts for, plans, or runs skills add, including under --yes.

Co-authored-by: Yam Borodetsky <[email protected]>
@changeset-bot

changeset-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c64736c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
arkenv Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yamcodes yamcodes added @arkenv/cli Issues or Pull Requests involving the ArkEnv CLI arkenv Changes to the `arkenv` npm package. docs Adds or changes documentation, or acts as documentation in and of itself enhancement New feature or improvement skills Issues or Pull Requests related to ArkEnv Agent Skills labels Sep 25, 2026 — with Cursor
@github-actions github-actions Bot added tests This issue or PR is about adding, removing or changing tests and removed @arkenv/cli Issues or Pull Requests involving the ArkEnv CLI labels Sep 25, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

npm i https://pkg.pr.new/@arkenv/agent-plugin@1984

arkenv

npm i https://pkg.pr.new/arkenv@1984

@arkenv/build

npm i https://pkg.pr.new/@arkenv/build@1984

@arkenv/bun-plugin

npm i https://pkg.pr.new/@arkenv/bun-plugin@1984

@arkenv/core

npm i https://pkg.pr.new/@arkenv/core@1984

@arkenv/fumadocs-ui

npm i https://pkg.pr.new/@arkenv/fumadocs-ui@1984

@arkenv/nextjs

npm i https://pkg.pr.new/@arkenv/nextjs@1984

@arkenv/nuxt

npm i https://pkg.pr.new/@arkenv/nuxt@1984

@arkenv/rsbuild-plugin

npm i https://pkg.pr.new/@arkenv/rsbuild-plugin@1984

@arkenv/standard

npm i https://pkg.pr.new/@arkenv/standard@1984

@arkenv/tanstack-addon

npm i https://pkg.pr.new/@arkenv/tanstack-addon@1984

@arkenv/vite-plugin

npm i https://pkg.pr.new/@arkenv/vite-plugin@1984

commit: c64736c

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • arkenv init no longer touches the agent skill — the skill-install branch in collectExistingProject is gone for interactive, --yes, and --agent runs; the "ArkEnv agent skill detected." info line goes with it (packages/arkenv/src/cli/commands/init.ts).
  • Scanner port shrinks — hasSkill is removed from ProjectScannerPort and NodeProjectScannerAdapter, and its tests are dropped (packages/arkenv/src/shared/ports/project-scanner.port.ts, .../node-project-scanner.adapter.ts).
  • Plan/executor no longer carry a skill step — installSkill / skillDetected options, ScaffoldingPlan.skill, planSkillInstall, DEFAULT_SKILL_SOURCE / getDefaultSkillSource, the executor's skills add step, and getNextStepsNote's skill branch are all removed (packages/arkenv/src/features/scaffold/*).
  • getDlxCommand helper and its test deleted along with the ./scaffold barrel export and plan.test.ts; the wizard's hardcoded installSkill: false props are removed.
  • Tests updated — init.test.ts gains a table-driven case across interactive / --yes / --agent asserting no skill prompt or recorded option; planner/executor/utils tests assert no skills add plan or next-steps copy.
  • Changeset — arkenv: minor naming the --yes removal.

I traced every removed symbol repo-wide: no remaining source references (only test assertions mention the old names). isQuiet / isAgent remain on InitInput and are still consumed by the version-freshness pre-flight, so dropping them from the collectExistingProject destructure is safe. SKIP_INSTALL still guards dependency installs. The public docs (reference/init.mdx, reference/index.mdx, guides/ai.mdx) never claimed init installs the skill, and the manual npx skills add yamcodes/arkenv / @arkenv/agent-plugin paths are untouched — matching a clean implementation of Option B from #1933.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Init still does not prompt or run skills add. When the skill is absent, the final note prints the manual command.

Co-authored-by: Yam Borodetsky <[email protected]>
@github-actions github-actions Bot added the www Improvements or additions to arkenv.js.org label Sep 25, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The follow-up commit reintroduces a next-steps skill-install recommendation that the locked Option B brief on #1933 explicitly rules out, and documents it in the init reference the brief says not to touch. Needs a decision on whether the brief was superseded before merge.

Reviewed changes

  • Skill detection restored — hasSkill is back on ProjectScannerPort (packages/arkenv/src/shared/ports/project-scanner.port.ts:96) and NodeProjectScannerAdapter (.../node-project-scanner.adapter.ts:145), and collectExistingProject records options.skillDetected again (packages/arkenv/src/cli/commands/init.ts:360). No prompt and no install are added back.
  • Next-steps recommendation restored — getNextStepsNote prints (Recommended) Install the AI skill: npx skills add yamcodes/arkenv whenever metadata.skillDetected is falsy (packages/arkenv/src/features/scaffold/utils.ts:68-70); the previous trailing Then run /arkenv ... sentence is not restored. planner.ts re-carries skillDetected into metadata.
  • Docs + changeset describe the recommendation — new paragraphs in guides/ai.mdx:65-67 and reference/init.mdx:118-129, plus the changeset line naming it.
  • Tests reworked — table-driven “does not prompt”/--yes/--agent, a “records a detected skill” case, and planner/executor/utils assertions.

⚠️ Scope conflicts with the locked Option B brief

The #1933 decision comment (the one locking Option B) states verbatim: “Next-steps copy after init does not recommend or print a skill-install command,” lists “Init next-steps copy does not mention installing the AI skill” as an acceptance criterion, and says “Do not add an ‘agent skill install’ section to the init reference.” The new commit does all three. Nothing on the issue or PR reflects a change to that decision — the PR body simply asserts the note “still prints” the command. Either the recommendation and its plumbing come out, or the brief/acceptance criteria are updated to admit it.

Technical details
# Reversal vs. locked Option B acceptance criteria

## Affected sites
- `packages/arkenv/src/features/scaffold/utils.ts:68-70` — prints the forbidden install command
- `packages/arkenv/src/features/scaffold/utils.ts:5` — `SKILL_INSTALL_COMMAND`
- `packages/arkenv/src/cli/commands/init.ts:360` — restores the scan solely to gate that line
- `packages/arkenv/src/shared/ports/project-scanner.port.ts:96` and `packages/arkenv/src/adapters/node-project-scanner/node-project-scanner.adapter.ts:145` — `hasSkill` restored
- `apps/www/content/docs/reference/init.mdx:118-129` — section the brief says not to add
- `apps/www/content/docs/guides/ai.mdx:65-67` — documents the same output
- `.changeset/remove-init-skill-install.md:7` — names the recommendation as intentional

## Required outcome
- Match #1933 Option B: no skill-install line in next steps, no `hasSkill`/`skillDetected` scan needed by init, no agent-skill section in `reference/init.mdx`.
- Or update the #1933 brief/acceptance criteria to explicitly allow the next-steps recommendation.

## Open questions for the human
- Was the locked brief superseded? `skillDetected` now has exactly one reader (the recommendation line), so the detector only makes sense as long as the recommendation does.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes

Copy link
Copy Markdown
Owner Author

@pullfrog review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Merged v1 into the branch — c64736c2 is a clean merge of the current v1 tip (dd2fa825, 5b166561, 9b7c82a1, b66b79b7, 6a3e96a2). git diff 6a3e96a2 c64736c2 reproduces the branch's own 19-file / +103 / −356 diff unchanged, so no conflict resolution altered the feature.
  • Prior scope concern resolved — the author confirmed the locked Option B brief was superseded and the textual next-steps recommendation stays while only the install action is removed; both prior threads are resolved.
  • No dangling symbols — installSkill, DEFAULT_SKILL_SOURCE, getDlxCommand, and retryWith are absent from packages/arkenv/src (only negative test assertions remain), and getNextStepsNote's sole production caller uses the new two-argument shape.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

arkenv init still recommends npx skills add, which conflicts with the accepted B — Remove from init acceptance criteria on #1933 ("Next-steps copy after init does not recommend or print a skill-install command"). Either drop the recommendation or update the issue before this merges, since the PR body says it fixes #1933 and would close it with an unmet criterion.

Reviewed changes

arkenv init no longer prompts for, plans, or runs the ArkEnv agent skill install; the skill is only surfaced as an optional next-steps command.

  • Skill install removed from init — ProjectOptions.installSkill, ScaffoldingPlan.skill, planSkillInstall, the executor's skills add spawn, and getDlxCommand/DEFAULT_SKILL_SOURCE are all gone. hasSkill is now only read into skillDetected.
  • hasSkill detection simplified — the lock-file branch collapses into a single "arkenv" in parsed.skills guard; behavior is unchanged.
  • Next-steps keeps a manual recommendation — when skillDetected is falsy, getNextStepsNote prints a hardcoded npx skills add yamcodes/arkenv.
  • Docs and changeset — guides/ai.mdx and reference/init.mdx state init does not install the skill but prints the command; a minor changeset on arkenv.

ℹ️ Nitpicks

  • packages/arkenv/src/features/scaffold/utils.ts:69 — if the recommendation is kept, it lost the old follow-up line ("Then run /arkenv inside your AI assistant to finish") and now hardcodes npx, so pnpm/bun-only users no longer get the package-manager runner (pnpm dlx / bunx) that getDlxCommand used to supply.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes

Copy link
Copy Markdown
Owner Author

@pullfrog review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • init stops installing the skill — collectExistingProject no longer prompts, auto-accepts under --yes, or forces installSkill: false under --agent; it only records options.skillDetected from scanner.hasSkill() (packages/arkenv/src/cli/commands/init.ts:357). The installSkill option is gone from ProjectOptions, and the wizard no longer sets it.
  • Next-steps note recommends manual install only — getNextStepsNote drops its skillInstalled parameter and the early /arkenv branch, and appends (Recommended) Install the AI skill: npx skills add yamcodes/arkenv only when !plan.metadata.skillDetected (packages/arkenv/src/features/scaffold/utils.ts:68).
  • Scaffold executor stops running the install — the skill-install block, skillInstalled finish metadata, and ScaffoldingPlan.skill are removed; getDlxCommand()/scaffold.ts, DEFAULT_SKILL_SOURCE/getDefaultSkillSource(), and their tests are deleted, with index.ts no longer re-exporting ./scaffold.
  • Docs and changeset — reference/init.mdx and guides/ai.mdx now state the install is manual and separate from scaffolding, plus a minor arkenv changeset. Both docs anchors resolve (#agent-skill exists).

I traced the removals repo-wide: no remaining references to installSkill, skillInstalled, getDlxCommand, DEFAULT_SKILL_SOURCE, or plan.skill, and the arkenv package entry is CLI-only, so no public API is affected. The hasSkill refactor in the adapter is behavior-preserving. Updated tests pin the new behavior meaningfully (absent skill → recommendation present; detected skill → line omitted; no skills add spawn).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes
yamcodes merged commit 2c1dd0f into v1 Sep 25, 2026
19 checks passed
@yamcodes
yamcodes deleted the cursor/remove-init-skill-install-9abb branch September 25, 2026 10:49
@arkenv-bot arkenv-bot Bot mentioned this pull request Sep 25, 2026
yamcodes pushed a commit that referenced this pull request Sep 25, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to v1, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`v1` is currently in **pre mode** so this branch has prereleases rather
than normal releases. If you want to exit prereleases, run `changeset
pre exit` on `v1`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

- #### Reject runtime keys in the plugin option guard
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
The shared transform-option guard now treats `env`, `coerce`,
`onUndeclaredKey`, `arrayFormat`, `emptyAsUndefined`, `debugSecrets`,
and `toJsonSchema` as unsupported plugin options. The build reads the
loaded environment.
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Bun plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/bun-plugin` and `@arkenv/bun-plugin/standard` now export
`arkenvPlugin` as the default and the only named export. The
`arkenvBunPlugin` and `hybrid` aliases have been removed. `arkenvPlugin`
is still both a factory and a plugin object with `name`, `target`, and
`setup`.
	
	```ts
	import arkenvPlugin from "@arkenv/bun-plugin";
	
	await Bun.build({
	  plugins: [arkenvPlugin],
	});
	```
	
**BREAKING CHANGE**: `arkenvBunPlugin` and `hybrid` are no longer
exported. Use `arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Rsbuild plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/rsbuild-plugin` and `@arkenv/rsbuild-plugin/standard` now
export `arkenvPlugin` as the default and the only named export. The
`arkenvRsbuildPlugin` alias has been removed.
	
	```ts
	import { arkenvPlugin } from "@arkenv/rsbuild-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
	
**BREAKING CHANGE**: `arkenvRsbuildPlugin` is no longer exported. Import
`arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Vite plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/vite-plugin` and `@arkenv/vite-plugin/standard` now export
`arkenvPlugin` as the default and the only named export. The
`arkenvVitePlugin` alias has been removed.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
	
**BREAKING CHANGE**: `arkenvVitePlugin` is no longer exported. Import
`arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## [email protected]

### Minor Changes

- #### Stop installing the agent skill during init
_[`#1984`](#1984)
[`2c1dd0f`](2c1dd0f)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` no longer prompts for or installs the ArkEnv agent skill,
including under `--yes`. When the skill is not already in the project,
the next-steps note still prints `npx skills add yamcodes/arkenv`.
`@arkenv/agent-plugin` already includes the skill.
- #### Scaffold `arkenvPlugin` in Vite and Rsbuild configs
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` now writes `arkenvPlugin` into new Vite and Rsbuild config
entries. Vite binds the default import as `arkenvPlugin`. Rsbuild
imports the named `arkenvPlugin`.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```

### Patch Changes

- #### Scaffold Zod and Valibot init on standard mode
_[`#2020`](#2020)
[`a3815e6`](a3815e6)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` no longer installs `arktype` when you choose Zod or
Valibot. Next.js, Nuxt, Vite, Rsbuild, and Bun now scaffold the
`/standard` integration entry, and Next.js and Nuxt also install
`@arkenv/standard`.
	
	```ts
	import arkenv from "@arkenv/nuxt/standard";
	import * as z from "zod";
	
	export const env = arkenv({
	  DATABASE_URL: z.url(),
	});
	```
	
Re-running init replaces the other engine's entry. A Nuxt app that still
registers `@arkenv/nuxt/module` switches to
`@arkenv/nuxt/standard/module` when you choose Zod or Valibot, and the
same replacement applies to the Next.js, Vite, and Rsbuild imports.
Choosing ArkType switches those entries back.
	
ArkType init is unchanged: it still installs `arktype` and uses the
ArkType integration entry.
## @arkenv/[email protected]

### Patch Changes

- #### Parse audit sources with the TypeScript 7 sync API
_[`#1990`](#1990)
[`f3039bf`](f3039bf)
[@yamcodes](https://github.com/yamcodes)_

	
The agent plugin audit now parses source files through
`typescript/unstable/sync` instead of the classic TypeScript compiler
API.
- #### Point init refusals at nextActions
_[`#1977`](#1977)
[`dd2fa82`](dd2fa82)
[@yamcodes](https://github.com/yamcodes)_

	
Agent instructions now tell you to retry only when a refusal's
`nextActions` include a `run-command` with `--force`.
## @arkenv/[email protected]

### Patch Changes

- #### Restore keyword suggestions inside inline schemas
_[`#1975`](#1975)
[`089ef43`](089ef43)
[@yamcodes](https://github.com/yamcodes)_

	
A partial keyword in an inline schema string suggests ArkType keywords
again. `arkenv({ PORT: "n" })` offers `never`, `null`, and `number`. The
same suggestions are back on `arkenv` from `@arkenv/core/safe`.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv({
	  PORT: "number.port = 3000",
	});
	```
## @arkenv/[email protected]

### Patch Changes

- #### Scaffold `arkenvPlugin` in the TanStack add-on
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
The TanStack CLI add-on now registers the Vite plugin as `arkenvPlugin`.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
- #### Point TanStack add-on dependencies at the current release
_[`#1978`](#1978)
[`888e6c2`](888e6c2)
[@yamcodes](https://github.com/yamcodes)_

	
Scaffolded TanStack Start apps now install `@arkenv/core`,
`@arkenv/standard`, and `@arkenv/vite-plugin` at `^1.0.0-rc.2`, which
matches the versions on npm `latest` and still accepts `1.0.0` when it
publishes.
	
	Usage:
	
	```bash
npx @tanstack/cli create my-app --add-ons
https://arkenv.js.org/tanstack/info.json
	```
## @arkenv/[email protected]

No changes in this release.

Co-authored-by: arkenv-bot[bot] <237618717+arkenv-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arkenv Changes to the `arkenv` npm package. docs Adds or changes documentation, or acts as documentation in and of itself enhancement New feature or improvement skills Issues or Pull Requests related to ArkEnv Agent Skills tests This issue or PR is about adding, removing or changing tests www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document or remove skill install during arkenv init

2 participants