@agentkitforge/core 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +42 -35
  2. package/README.md +301 -301
  3. package/package.json +25 -25
package/CHANGELOG.md CHANGED
@@ -1,35 +1,42 @@
1
- # Changelog
2
-
3
- All notable changes to AgentKitForge Core will be documented in this file.
4
-
5
- This project follows Semantic Versioning. Before `0.0.0`, minor versions may include breaking changes.
6
-
7
- ## Unreleased
8
-
9
- - Added open-source governance, security, contribution, versioning, release, spec, and CLI documentation.
10
-
11
- ## 1.0.0 (2026-05-29)
12
-
13
-
14
- ### Features
15
-
16
- * prepare initial public preview ([61e8d7d](https://github.com/AgentKitProject/agentkitforge-core/commit/61e8d7d9c9a1efac31c6dc62b4ed9c42d97bf729))
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * set initial release baseline ([29fc113](https://github.com/AgentKitProject/agentkitforge-core/commit/29fc11376ce64175dfb9564b5fa625dc24eb63d2))
22
-
23
- ## v0.1.0 Public Preview
24
-
25
- - Initial public preview target.
26
- - Core Agent Kit manifest validation.
27
- - Validation profiles: `local-valid`, `publishable`, `trusted`, and `verified`.
28
- - Agent Kit scaffolding templates.
29
- - Draft rendering and draft request helpers.
30
- - Prepared Prompt schema, validation, and rendering.
31
- - Context Builder.
32
- - One-file Markdown export.
33
- - `.agentkit.zip` packaging.
34
- - Codex and Claude Code target exports.
35
- - CLI workflows for validation, packaging, export, prompt rendering, context building, and inspection.
1
+ # Changelog
2
+
3
+ All notable changes to AgentKitForge Core will be documented in this file.
4
+
5
+ This project follows Semantic Versioning. Before `0.0.0`, minor versions may include breaking changes.
6
+
7
+ ## Unreleased
8
+
9
+ - Added open-source governance, security, contribution, versioning, release, spec, and CLI documentation.
10
+
11
+ ## [0.1.1](https://github.com/BillBoardApp/agentkitforge-core/compare/v0.1.0...v0.1.1) (2026-05-29)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * make core installable from git ([cd63497](https://github.com/BillBoardApp/agentkitforge-core/commit/cd63497006194ef05b626e64b65f8ea24862eee2))
17
+
18
+ ## 1.0.0 (2026-05-29)
19
+
20
+
21
+ ### Features
22
+
23
+ * prepare initial public preview ([61e8d7d](https://github.com/AgentKitProject/agentkitforge-core/commit/61e8d7d9c9a1efac31c6dc62b4ed9c42d97bf729))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * set initial release baseline ([29fc113](https://github.com/AgentKitProject/agentkitforge-core/commit/29fc11376ce64175dfb9564b5fa625dc24eb63d2))
29
+
30
+ ## v0.1.0 Public Preview
31
+
32
+ - Initial public preview target.
33
+ - Core Agent Kit manifest validation.
34
+ - Validation profiles: `local-valid`, `publishable`, `trusted`, and `verified`.
35
+ - Agent Kit scaffolding templates.
36
+ - Draft rendering and draft request helpers.
37
+ - Prepared Prompt schema, validation, and rendering.
38
+ - Context Builder.
39
+ - One-file Markdown export.
40
+ - `.agentkit.zip` packaging.
41
+ - Codex and Claude Code target exports.
42
+ - CLI workflows for validation, packaging, export, prompt rendering, context building, and inspection.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # AgentKitForge Core
2
-
3
- AgentKitForge Core is the initial TypeScript engine for validating, exporting, and packaging portable Agent Kits. This package intentionally contains only core package/spec/validation/export logic. It does not include a desktop app, AWS infrastructure, or Agent Kit Market integration.
4
-
1
+ # AgentKitForge Core
2
+
3
+ AgentKitForge Core is the initial TypeScript engine for validating, exporting, and packaging portable Agent Kits. This package intentionally contains only core package/spec/validation/export logic. It does not include a desktop app, AWS infrastructure, or Agent Kit Market integration.
4
+
5
5
  ## Install
6
6
 
7
7
  ```bash
@@ -27,300 +27,300 @@ The published package includes built `dist/` output. The repository does not com
27
27
  ```bash
28
28
  npm run build
29
29
  ```
30
-
31
- ## Test
32
-
33
- ```bash
34
- npm test
35
- ```
36
-
37
- ## Smoke Test
38
-
39
- ```bash
40
- npm run build
41
- npm run smoke
42
- ```
43
-
44
- The smoke test exercises the built CLI across init, validation, packaging, one-file export, prepared prompts, context building, target exports, inspection, summary, and load-as-draft workflows.
45
-
46
- ## Security Checks
47
-
48
- GitHub Actions runs security scanning on pushes, pull requests, and manual dispatch. Blocking checks currently include `npm audit --audit-level=critical`. A non-blocking high vulnerability audit is reported in logs.
49
-
50
- See [SECURITY_CI_POLICY.md](SECURITY_CI_POLICY.md) for the v0.1 failure policy.
51
-
52
- ## Project Documents
53
-
54
- - [SPEC.md](SPEC.md): Agent Kit public preview package specification.
55
- - [CLI.md](CLI.md): CLI command reference.
56
- - [CONTRIBUTING.md](CONTRIBUTING.md): Local setup, contribution scope, and PR expectations.
57
- - [SECURITY.md](SECURITY.md): Vulnerability reporting and supported versions.
58
- - [VERSIONING.md](VERSIONING.md): SemVer and schema compatibility policy.
59
- - [RELEASE_PROCESS.md](RELEASE_PROCESS.md): Release checklist and tagging flow.
60
- - [CHANGELOG.md](CHANGELOG.md): Release notes.
61
- - [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md): Contributor conduct expectations.
62
-
63
- ## Agent Kit Input Safety
64
-
65
- Agent Kit folders are treated as untrusted input. Manifest-controlled paths must be safe relative paths that stay inside the kit root, and IDs used for package/export folder names must be path-safe kebab-case identifiers. Core reports validation errors for unsafe manifest paths or IDs instead of reading, copying, packaging, or exporting them.
66
-
67
- Core never executes files from `scripts/`; it only validates whether script files are declared. Packaging, context building, and target exports reject symbolic links, skip generated or dependency-heavy folders such as `exports/`, `.git`, `node_modules`, `dist`, and `build`, and apply conservative file-count and byte limits to avoid unexpectedly large or malicious kits.
68
-
69
- ## CLI
70
-
71
- Create a blank Agent Kit:
72
-
73
- ```bash
74
- npm run build
75
- node dist/cli/index.js init ./my-agentkit \
76
- --template blank \
77
- --id my-agentkit \
78
- --name "My Agent Kit" \
79
- --description "A starter Agent Kit."
80
- ```
81
-
82
- Create a trusted financial review starter kit:
83
-
84
- ```bash
85
- node dist/cli/index.js init ./financial-review-kit \
86
- --template financial-review \
87
- --id financial-review-kit \
88
- --name "Financial Review Kit" \
89
- --description "Review financial workbooks for structure, formulas, and follow-up risks."
90
- ```
91
-
92
- Use `--force` to initialize into a non-empty directory and overwrite generated template files.
93
-
94
- Render an Agent Kit draft JSON file:
95
-
96
- ```bash
97
- node dist/cli/index.js render-draft ./draft.json ./rendered-agentkit --force
98
- ```
99
-
100
- Draft rendering validates the JSON structure before writing files. Rendered kits include the standard manifest, entrypoint Markdown files, README, LICENSE, CHANGELOG, skills, and any draft policies, examples, or templates.
101
-
102
- List prepared prompts in a kit:
103
-
104
- ```bash
105
- node dist/cli/index.js list-prompts ./path/to/agentkit
106
- ```
107
-
108
- Render a prepared prompt with input values:
109
-
110
- ```bash
111
- node dist/cli/index.js render-prompt ./path/to/agentkit financial-review --inputs inputs.json --out rendered-prompt.md
112
- ```
113
-
114
- Validate prepared prompt inputs:
115
-
116
- ```bash
117
- node dist/cli/index.js validate-prompt-inputs ./path/to/agentkit financial-review --inputs inputs.json
118
- ```
119
-
120
- Inspect, summarize, or load an existing kit as a draft:
121
-
122
- ```bash
123
- node dist/cli/index.js inspect ./path/to/repo-or-kit
124
- node dist/cli/index.js summarize ./path/to/agentkit
125
- node dist/cli/index.js load-as-draft ./path/to/agentkit --out draft.json
126
- ```
127
-
128
- Prepare a provider-neutral AI draft request:
129
-
130
- ```bash
131
- node dist/cli/index.js draft-request \
132
- --request "Build a financial review kit for monthly workbook review." \
133
- --level trusted \
134
- --domain Finance \
135
- --target-user analyst \
136
- --out draft-request.json
137
- ```
138
-
139
- The command writes deterministic instructions, prompt text, and the expected `AgentKitDraft` JSON schema. It does not call OpenAI or any other provider. A future app can send `draft-request.json` to an AI provider, validate the returned `AgentKitDraft` JSON, then render it:
140
-
141
- ```bash
142
- node dist/cli/index.js render-draft draft.json ./my-kit --force
143
- ```
144
-
145
- Prepare a revision request for an existing draft:
146
-
147
- ```bash
148
- node dist/cli/index.js draft-revision-request ./draft.json \
149
- --change "Add a reusable prepared prompt for monthly workbook review." \
150
- --level trusted \
151
- --out draft-revision-request.json
152
- ```
153
-
154
- Build with AI is designed as an iterative flow:
155
-
156
- 1. Create a draft request from the user's initial request.
157
- 2. A future app sends that request to an AI provider.
158
- 3. Validate the returned `AgentKitDraft`.
159
- 4. Create an AI Draft Session and store revision v1.
160
- 5. For user changes, create a draft revision request from the current draft.
161
- 6. Validate the returned full updated draft and add a new revision.
162
- 7. Render the current revision into an Agent Kit folder.
163
-
164
- Core only builds request/session data. The app performs provider calls.
165
-
166
- Validate an Agent Kit:
167
-
168
- ```bash
169
- node dist/cli/index.js validate ./path/to/agentkit --profile local-valid
170
- ```
171
-
172
- Supported validation profiles:
173
-
174
- - `local-valid`
175
- - `publishable`
176
- - `trusted`
177
- - `verified`
178
-
179
- Export a one-file Markdown bundle:
180
-
181
- ```bash
182
- node dist/cli/index.js export-onefile ./path/to/agentkit --out ./bundle.md
183
- ```
184
-
185
- Create a `.agentkit.zip` package:
186
-
187
- ```bash
188
- node dist/cli/index.js package ./path/to/agentkit --out ./agentkit.agentkit.zip
189
- ```
190
-
191
- Build AI-ready context from an Agent Kit:
192
-
193
- ```bash
194
- node dist/cli/index.js build-context ./path/to/agentkit \
195
- --task "Audit formulas in this workbook." \
196
- --mode triggered \
197
- --target generic \
198
- --out context.json
199
- ```
200
-
201
- The context builder does not call OpenAI or any other provider. It creates a JSON payload with:
202
-
203
- - `systemContext`: Agent Kit instructions, selected skills, and requested supporting files.
204
- - `userContext`: the user task, ready to pair with the system context.
205
- - `includedFiles`: normalized package paths included in the context.
206
- - `includedSkills`: skill ids included in the context.
207
- - `warnings`: deterministic fallback or selection warnings.
208
-
209
- Use `--mode all` to include every manifest skill. Use `--mode triggered` to match the user task against skill triggers and descriptions. If no skill matches, the builder includes all skills and records a warning.
210
-
211
- Policies, templates, and workflows are included by default in the CLI. Use `--no-policies`, `--no-templates`, or `--no-workflows` to exclude them. References are excluded by default; pass `--include-references` when the target workflow needs them.
212
-
213
- Export Agent Kit skills to a Codex-compatible skills directory:
214
-
215
- ```bash
216
- node dist/cli/index.js export-codex ./financial-review --dest ~/.codex/skills --force
217
- ```
218
-
219
- This is the first target adapter. It copies each manifest skill into a namespaced Codex skill folder like `<kit-id>-<skill-id>`, creates an index skill for the kit, and writes AgentKitForge markers so `--force` only replaces folders generated by this adapter. It does not call Codex and does not assume your actual Codex skills path.
220
-
221
- Export an Agent Kit to an initial Claude Code plugin-style folder:
222
-
223
- ```bash
224
- node dist/cli/index.js export-claude-code ./financial-review --dest ./claude-code-plugins --force
225
- ```
226
-
227
- This adapter creates `<kit-id>-claude-code-plugin/`, writes `.claude-plugin/plugin.json`, copies manifest skills into `skills/<skill-id>/`, and includes root Agent Kit instructions plus supporting `policies/`, `templates/`, `workflows/`, and `references/` when present. The plugin manifest is intentionally conservative because Claude Code plugin loading behavior may evolve; verify loading with your Claude Code version.
228
-
229
- After this package is installed globally or linked, the same commands are available through `agentkitforge`.
230
-
231
- ## AI Provider Metadata
232
-
233
- AgentKitForge Core defines shared provider and model metadata only. It does not call OpenAI, Anthropic, Gemini, Ollama, OpenAI-compatible servers, or any other provider. It does not store API keys.
234
-
235
- The exported provider helpers cover:
236
-
237
- - provider types: `openai`, `anthropic`, `gemini`, `ollama`, `openai-compatible`
238
- - starter known-model suggestions
239
- - default model suggestions
240
- - API key and base URL requirements
241
- - structured JSON capability hints for AgentKitDraft generation
242
-
243
- Known models are suggestions, not constraints. Apps and CLIs that consume this package must always allow custom model IDs, especially for Ollama and OpenAI-compatible providers.
244
-
245
- ## Prepared Prompts
246
-
247
- Prepared Prompts are reusable prompt templates stored under `prompts/<prompt-id>.yaml`. They let a kit define exact prompts that can be rendered later in Use mode after an app collects required inputs.
248
-
249
- Canonical variable syntax is `{{variable_name}}`. A simpler `{variable_name}` form is tolerated for compatibility. Whitespace is allowed inside braces, such as `{{ company_name }}`. Inputs are defined by the prepared prompt, and AgentKitForge validates/rendered prompts so unresolved variables are blocked before an app sends the prompt to an AI provider.
250
-
251
- Prompt input types:
252
-
253
- - `short-text`
254
- - `long-text`
255
- - `choice`
256
- - `multi-choice`
257
- - `date`
258
- - `number`
259
- - `boolean`
260
-
261
- Prepared prompt paths can be referenced from `agentkit.yaml`:
262
-
263
- ```yaml
264
- prompts:
265
- - id: financial-review
266
- path: prompts/financial-review.yaml
267
- description: Review a financial workbook and produce a summary.
268
- ```
269
-
270
- One-file export renders prepared prompts in a readable Markdown section instead of dumping raw YAML.
271
-
272
- Default artifact naming helpers return predictable names such as:
273
-
274
- - `<kit-id>-<version>.onefile.md`
275
- - `<kit-id>-<version>.agentkit.zip`
276
- - `<kit-id>-output-<timestamp>.md`
277
-
278
- ## Domains
279
-
280
- Core includes a known domain catalog for guided builders and filtering. Domains are suggestions, not constraints. Consumers should always allow custom domains.
281
-
282
- ## App-Support Helpers
283
-
284
- Core includes reusable helpers for app workflows:
285
-
286
- - `inspectAgentKitCandidate(path)` for import-friendly diagnostics.
287
- - `getAgentKitSummary(path)` for details, export, and install target screens.
288
- - `loadAgentKitAsDraft(path)` for Edit with AI and guided editing.
289
- - `requestedSections` and `excludedSections` on draft request builders for AI section control.
290
- - Example input document metadata helpers for `.txt`, `.md`, `.csv`, `.xlsx`, and `.xls`.
291
- - Artifact naming helpers for one-file exports, packages, and generated outputs.
292
-
293
- Example input documents are app-provided metadata. Core does not upload files, call AI providers, or perform heavy spreadsheet parsing. Apps can use them to help AI infer formatting, terminology, expected outputs, required inputs, skill procedures, and prepared prompt variables.
294
-
295
- ## Agent Kit Structure
296
-
297
- ```text
298
- agentkit.yaml
299
- AGENTKIT.md
300
- START_HERE.md
301
- README.md
302
- LICENSE
303
- CHANGELOG.md
304
- skills/<skill-id>/SKILL.md
305
- prompts/<prompt-id>.yaml
306
- workflows/
307
- policies/
308
- references/
309
- templates/
310
- examples/
311
- evals/
312
- adapters/
313
- scripts/
314
- assets/
315
- exports/
316
- ```
317
-
318
- ## Validation Profiles
319
-
320
- `local-valid` requires `agentkit.yaml`, `AGENTKIT.md`, `START_HERE.md`, `skills/`, and at least one `skills/<skill-id>/SKILL.md`.
321
-
322
- `publishable` adds `README.md` and `LICENSE`.
323
-
324
- `trusted` adds `CHANGELOG.md`, `policies/`, and `examples/`.
325
-
326
- `verified` adds `evals/`.
30
+
31
+ ## Test
32
+
33
+ ```bash
34
+ npm test
35
+ ```
36
+
37
+ ## Smoke Test
38
+
39
+ ```bash
40
+ npm run build
41
+ npm run smoke
42
+ ```
43
+
44
+ The smoke test exercises the built CLI across init, validation, packaging, one-file export, prepared prompts, context building, target exports, inspection, summary, and load-as-draft workflows.
45
+
46
+ ## Security Checks
47
+
48
+ GitHub Actions runs security scanning on pushes, pull requests, and manual dispatch. Blocking checks currently include `npm audit --audit-level=critical`. A non-blocking high vulnerability audit is reported in logs.
49
+
50
+ See [SECURITY_CI_POLICY.md](SECURITY_CI_POLICY.md) for the v0.1 failure policy.
51
+
52
+ ## Project Documents
53
+
54
+ - [SPEC.md](SPEC.md): Agent Kit public preview package specification.
55
+ - [CLI.md](CLI.md): CLI command reference.
56
+ - [CONTRIBUTING.md](CONTRIBUTING.md): Local setup, contribution scope, and PR expectations.
57
+ - [SECURITY.md](SECURITY.md): Vulnerability reporting and supported versions.
58
+ - [VERSIONING.md](VERSIONING.md): SemVer and schema compatibility policy.
59
+ - [RELEASE_PROCESS.md](RELEASE_PROCESS.md): Release checklist and tagging flow.
60
+ - [CHANGELOG.md](CHANGELOG.md): Release notes.
61
+ - [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md): Contributor conduct expectations.
62
+
63
+ ## Agent Kit Input Safety
64
+
65
+ Agent Kit folders are treated as untrusted input. Manifest-controlled paths must be safe relative paths that stay inside the kit root, and IDs used for package/export folder names must be path-safe kebab-case identifiers. Core reports validation errors for unsafe manifest paths or IDs instead of reading, copying, packaging, or exporting them.
66
+
67
+ Core never executes files from `scripts/`; it only validates whether script files are declared. Packaging, context building, and target exports reject symbolic links, skip generated or dependency-heavy folders such as `exports/`, `.git`, `node_modules`, `dist`, and `build`, and apply conservative file-count and byte limits to avoid unexpectedly large or malicious kits.
68
+
69
+ ## CLI
70
+
71
+ Create a blank Agent Kit:
72
+
73
+ ```bash
74
+ npm run build
75
+ node dist/cli/index.js init ./my-agentkit \
76
+ --template blank \
77
+ --id my-agentkit \
78
+ --name "My Agent Kit" \
79
+ --description "A starter Agent Kit."
80
+ ```
81
+
82
+ Create a trusted financial review starter kit:
83
+
84
+ ```bash
85
+ node dist/cli/index.js init ./financial-review-kit \
86
+ --template financial-review \
87
+ --id financial-review-kit \
88
+ --name "Financial Review Kit" \
89
+ --description "Review financial workbooks for structure, formulas, and follow-up risks."
90
+ ```
91
+
92
+ Use `--force` to initialize into a non-empty directory and overwrite generated template files.
93
+
94
+ Render an Agent Kit draft JSON file:
95
+
96
+ ```bash
97
+ node dist/cli/index.js render-draft ./draft.json ./rendered-agentkit --force
98
+ ```
99
+
100
+ Draft rendering validates the JSON structure before writing files. Rendered kits include the standard manifest, entrypoint Markdown files, README, LICENSE, CHANGELOG, skills, and any draft policies, examples, or templates.
101
+
102
+ List prepared prompts in a kit:
103
+
104
+ ```bash
105
+ node dist/cli/index.js list-prompts ./path/to/agentkit
106
+ ```
107
+
108
+ Render a prepared prompt with input values:
109
+
110
+ ```bash
111
+ node dist/cli/index.js render-prompt ./path/to/agentkit financial-review --inputs inputs.json --out rendered-prompt.md
112
+ ```
113
+
114
+ Validate prepared prompt inputs:
115
+
116
+ ```bash
117
+ node dist/cli/index.js validate-prompt-inputs ./path/to/agentkit financial-review --inputs inputs.json
118
+ ```
119
+
120
+ Inspect, summarize, or load an existing kit as a draft:
121
+
122
+ ```bash
123
+ node dist/cli/index.js inspect ./path/to/repo-or-kit
124
+ node dist/cli/index.js summarize ./path/to/agentkit
125
+ node dist/cli/index.js load-as-draft ./path/to/agentkit --out draft.json
126
+ ```
127
+
128
+ Prepare a provider-neutral AI draft request:
129
+
130
+ ```bash
131
+ node dist/cli/index.js draft-request \
132
+ --request "Build a financial review kit for monthly workbook review." \
133
+ --level trusted \
134
+ --domain Finance \
135
+ --target-user analyst \
136
+ --out draft-request.json
137
+ ```
138
+
139
+ The command writes deterministic instructions, prompt text, and the expected `AgentKitDraft` JSON schema. It does not call OpenAI or any other provider. A future app can send `draft-request.json` to an AI provider, validate the returned `AgentKitDraft` JSON, then render it:
140
+
141
+ ```bash
142
+ node dist/cli/index.js render-draft draft.json ./my-kit --force
143
+ ```
144
+
145
+ Prepare a revision request for an existing draft:
146
+
147
+ ```bash
148
+ node dist/cli/index.js draft-revision-request ./draft.json \
149
+ --change "Add a reusable prepared prompt for monthly workbook review." \
150
+ --level trusted \
151
+ --out draft-revision-request.json
152
+ ```
153
+
154
+ Build with AI is designed as an iterative flow:
155
+
156
+ 1. Create a draft request from the user's initial request.
157
+ 2. A future app sends that request to an AI provider.
158
+ 3. Validate the returned `AgentKitDraft`.
159
+ 4. Create an AI Draft Session and store revision v1.
160
+ 5. For user changes, create a draft revision request from the current draft.
161
+ 6. Validate the returned full updated draft and add a new revision.
162
+ 7. Render the current revision into an Agent Kit folder.
163
+
164
+ Core only builds request/session data. The app performs provider calls.
165
+
166
+ Validate an Agent Kit:
167
+
168
+ ```bash
169
+ node dist/cli/index.js validate ./path/to/agentkit --profile local-valid
170
+ ```
171
+
172
+ Supported validation profiles:
173
+
174
+ - `local-valid`
175
+ - `publishable`
176
+ - `trusted`
177
+ - `verified`
178
+
179
+ Export a one-file Markdown bundle:
180
+
181
+ ```bash
182
+ node dist/cli/index.js export-onefile ./path/to/agentkit --out ./bundle.md
183
+ ```
184
+
185
+ Create a `.agentkit.zip` package:
186
+
187
+ ```bash
188
+ node dist/cli/index.js package ./path/to/agentkit --out ./agentkit.agentkit.zip
189
+ ```
190
+
191
+ Build AI-ready context from an Agent Kit:
192
+
193
+ ```bash
194
+ node dist/cli/index.js build-context ./path/to/agentkit \
195
+ --task "Audit formulas in this workbook." \
196
+ --mode triggered \
197
+ --target generic \
198
+ --out context.json
199
+ ```
200
+
201
+ The context builder does not call OpenAI or any other provider. It creates a JSON payload with:
202
+
203
+ - `systemContext`: Agent Kit instructions, selected skills, and requested supporting files.
204
+ - `userContext`: the user task, ready to pair with the system context.
205
+ - `includedFiles`: normalized package paths included in the context.
206
+ - `includedSkills`: skill ids included in the context.
207
+ - `warnings`: deterministic fallback or selection warnings.
208
+
209
+ Use `--mode all` to include every manifest skill. Use `--mode triggered` to match the user task against skill triggers and descriptions. If no skill matches, the builder includes all skills and records a warning.
210
+
211
+ Policies, templates, and workflows are included by default in the CLI. Use `--no-policies`, `--no-templates`, or `--no-workflows` to exclude them. References are excluded by default; pass `--include-references` when the target workflow needs them.
212
+
213
+ Export Agent Kit skills to a Codex-compatible skills directory:
214
+
215
+ ```bash
216
+ node dist/cli/index.js export-codex ./financial-review --dest ~/.codex/skills --force
217
+ ```
218
+
219
+ This is the first target adapter. It copies each manifest skill into a namespaced Codex skill folder like `<kit-id>-<skill-id>`, creates an index skill for the kit, and writes AgentKitForge markers so `--force` only replaces folders generated by this adapter. It does not call Codex and does not assume your actual Codex skills path.
220
+
221
+ Export an Agent Kit to an initial Claude Code plugin-style folder:
222
+
223
+ ```bash
224
+ node dist/cli/index.js export-claude-code ./financial-review --dest ./claude-code-plugins --force
225
+ ```
226
+
227
+ This adapter creates `<kit-id>-claude-code-plugin/`, writes `.claude-plugin/plugin.json`, copies manifest skills into `skills/<skill-id>/`, and includes root Agent Kit instructions plus supporting `policies/`, `templates/`, `workflows/`, and `references/` when present. The plugin manifest is intentionally conservative because Claude Code plugin loading behavior may evolve; verify loading with your Claude Code version.
228
+
229
+ After this package is installed globally or linked, the same commands are available through `agentkitforge`.
230
+
231
+ ## AI Provider Metadata
232
+
233
+ AgentKitForge Core defines shared provider and model metadata only. It does not call OpenAI, Anthropic, Gemini, Ollama, OpenAI-compatible servers, or any other provider. It does not store API keys.
234
+
235
+ The exported provider helpers cover:
236
+
237
+ - provider types: `openai`, `anthropic`, `gemini`, `ollama`, `openai-compatible`
238
+ - starter known-model suggestions
239
+ - default model suggestions
240
+ - API key and base URL requirements
241
+ - structured JSON capability hints for AgentKitDraft generation
242
+
243
+ Known models are suggestions, not constraints. Apps and CLIs that consume this package must always allow custom model IDs, especially for Ollama and OpenAI-compatible providers.
244
+
245
+ ## Prepared Prompts
246
+
247
+ Prepared Prompts are reusable prompt templates stored under `prompts/<prompt-id>.yaml`. They let a kit define exact prompts that can be rendered later in Use mode after an app collects required inputs.
248
+
249
+ Canonical variable syntax is `{{variable_name}}`. A simpler `{variable_name}` form is tolerated for compatibility. Whitespace is allowed inside braces, such as `{{ company_name }}`. Inputs are defined by the prepared prompt, and AgentKitForge validates/rendered prompts so unresolved variables are blocked before an app sends the prompt to an AI provider.
250
+
251
+ Prompt input types:
252
+
253
+ - `short-text`
254
+ - `long-text`
255
+ - `choice`
256
+ - `multi-choice`
257
+ - `date`
258
+ - `number`
259
+ - `boolean`
260
+
261
+ Prepared prompt paths can be referenced from `agentkit.yaml`:
262
+
263
+ ```yaml
264
+ prompts:
265
+ - id: financial-review
266
+ path: prompts/financial-review.yaml
267
+ description: Review a financial workbook and produce a summary.
268
+ ```
269
+
270
+ One-file export renders prepared prompts in a readable Markdown section instead of dumping raw YAML.
271
+
272
+ Default artifact naming helpers return predictable names such as:
273
+
274
+ - `<kit-id>-<version>.onefile.md`
275
+ - `<kit-id>-<version>.agentkit.zip`
276
+ - `<kit-id>-output-<timestamp>.md`
277
+
278
+ ## Domains
279
+
280
+ Core includes a known domain catalog for guided builders and filtering. Domains are suggestions, not constraints. Consumers should always allow custom domains.
281
+
282
+ ## App-Support Helpers
283
+
284
+ Core includes reusable helpers for app workflows:
285
+
286
+ - `inspectAgentKitCandidate(path)` for import-friendly diagnostics.
287
+ - `getAgentKitSummary(path)` for details, export, and install target screens.
288
+ - `loadAgentKitAsDraft(path)` for Edit with AI and guided editing.
289
+ - `requestedSections` and `excludedSections` on draft request builders for AI section control.
290
+ - Example input document metadata helpers for `.txt`, `.md`, `.csv`, `.xlsx`, and `.xls`.
291
+ - Artifact naming helpers for one-file exports, packages, and generated outputs.
292
+
293
+ Example input documents are app-provided metadata. Core does not upload files, call AI providers, or perform heavy spreadsheet parsing. Apps can use them to help AI infer formatting, terminology, expected outputs, required inputs, skill procedures, and prepared prompt variables.
294
+
295
+ ## Agent Kit Structure
296
+
297
+ ```text
298
+ agentkit.yaml
299
+ AGENTKIT.md
300
+ START_HERE.md
301
+ README.md
302
+ LICENSE
303
+ CHANGELOG.md
304
+ skills/<skill-id>/SKILL.md
305
+ prompts/<prompt-id>.yaml
306
+ workflows/
307
+ policies/
308
+ references/
309
+ templates/
310
+ examples/
311
+ evals/
312
+ adapters/
313
+ scripts/
314
+ assets/
315
+ exports/
316
+ ```
317
+
318
+ ## Validation Profiles
319
+
320
+ `local-valid` requires `agentkit.yaml`, `AGENTKIT.md`, `START_HERE.md`, `skills/`, and at least one `skills/<skill-id>/SKILL.md`.
321
+
322
+ `publishable` adds `README.md` and `LICENSE`.
323
+
324
+ `trusted` adds `CHANGELOG.md`, `policies/`, and `examples/`.
325
+
326
+ `verified` adds `evals/`.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
- {
1
+ {
2
2
  "name": "@agentkitforge/core",
3
- "version": "0.1.0",
4
- "description": "Core package, validation, export, and packaging engine for AgentKitForge.",
5
- "type": "module",
3
+ "version": "0.1.1",
4
+ "description": "Core package, validation, export, and packaging engine for AgentKitForge.",
5
+ "type": "module",
6
6
  "bin": {
7
7
  "agentkitforge": "dist/cli/index.js"
8
8
  },
@@ -25,33 +25,33 @@
25
25
  "smoke": "node scripts/smoke.mjs",
26
26
  "test": "vitest run",
27
27
  "typecheck": "tsc -p tsconfig.json --noEmit"
28
- },
29
- "keywords": [
30
- "agentkit",
31
- "agents",
32
- "validation",
33
- "cli"
28
+ },
29
+ "keywords": [
30
+ "agentkit",
31
+ "agents",
32
+ "validation",
33
+ "cli"
34
34
  ],
35
35
  "license": "Apache-2.0",
36
36
  "repository": {
37
37
  "type": "git",
38
- "url": "git+https://github.com/AgentKitProject/agentkitforge-core.git"
38
+ "url": "git+https://github.com/AgentKitProject/agentkitforge-core"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "commander": "^14.0.2",
45
- "jszip": "^3.10.1",
46
- "yaml": "^2.8.2",
47
- "zod": "^4.1.13"
48
- },
49
- "devDependencies": {
50
- "@types/node": "^24.10.1",
51
- "typescript": "^5.9.3",
52
- "vitest": "^4.0.14"
53
- },
54
- "engines": {
55
- "node": ">=26"
56
- }
57
- }
44
+ "commander": "^14.0.2",
45
+ "jszip": "^3.10.1",
46
+ "yaml": "^2.8.2",
47
+ "zod": "^4.1.13"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^24.10.1",
51
+ "typescript": "^5.9.3",
52
+ "vitest": "^4.0.14"
53
+ },
54
+ "engines": {
55
+ "node": ">=26"
56
+ }
57
+ }