create-invokta-capability
v0.3.0
Published
Create a standalone Invokta atomic capability package.
Readme
create-invokta-capability
Create a standalone TypeScript package that publishes one atomic Invokta
capability through defineExportedCapability.
Commands
create-invokta-capability <project-directory>
[--package-manager npm|pnpm|yarn] [--no-install]
create-invokta-capability --help
create-invokta-capability --versionThe npm initializer shorthand resolves to this package:
npm create invokta-capability@latest my-capabilityCreation is non-interactive. The target must be a relative absent or empty real directory. Existing files and symbolic-link path components are refused and never overwritten.
The invoking package manager is inferred from npm_config_user_agent, with npm
as the fallback. Use --package-manager to choose explicitly or --no-install
to generate files without starting a package manager or performing network I/O.
Generated project
.agents/skills/develop-invokta-project/SKILL.md
.agents/skills/develop-invokta-project/agents/openai.yaml
.gitignore
README.md
package.json
src/capability.ts
src/index.ts
test/capability.test.ts
tsconfig.json
tsconfig.test.jsonThe generated develop-invokta-project skill teaches an agent to preserve the
atomic publication boundary, evolve capability contracts with
RED/GREEN/REFACTOR, and prove consumption through importCapability and
engine.invoke. Its metadata includes a ready-to-use
$develop-invokta-project prompt.
The private ESM starter pins @invokta/core to the creator version and exports
one deterministic example capability. Its test composes that export into an
engine and invokes it through engine.invoke. Generated files are project-owned
and are never updated in place.
The creator does not publish the package, discover dependencies, start an adapter, or execute a capability.
Exit codes
| Code | Meaning |
| --- | --- |
| 0 | Help, version, or project creation succeeded |
| 1 | Target safety, filesystem creation, or dependency installation failed |
| 2 | Arguments, project path, or project name were invalid |
Creator diagnostics use TARGET_INVALID, TARGET_UNSAFE, TARGET_NOT_EMPTY,
SCAFFOLD_CONFLICT, WRITE_FAILED, or INSTALL_FAILED. Rejected arguments,
environment values, child errors, stacks, and causes are not included.
