| name | lynxtron-add-api |
| description | Adds or extends a Lynxtron API in the current project root. Invoke when the user asks for API work under src or the main Lynxtron package surface. |
Lynxtron Add API
Use this skill for API work in the current project root only. It covers both:
add-new-api
extend-existing-api
It is appropriate when the request touches native bindings, browser bindings,
declarations, module registration, or package exports in src/....
Scope
Use these paths:
- native C++:
src/shell/api
- native build file:
src/BUILD.gn
- native binding macro:
src/shell/common/node_bindings.cc
- browser binding:
src/lib/browser/api
- browser module list:
src/lib/browser/api/module-list.ts
- declaration:
src/packages/lynxtron/apis/api
- package export:
src/packages/lynxtron/lynxtron.js
Required Inputs
Collect or infer:
- change type:
add-new-api or extend-existing-api
- export name
- file name
- binding name
- API shape: class, singleton, module object, or function
- method signatures
- implementation mode:
plan-only, scaffold, or real
If the request is ambiguous, ask before editing.
Use this template when needed:
Change type: add-new-api | extend-existing-api
Export name: FooBar
File name: foo-bar
Binding name: lynxtron_binding_foo_bar
API shape: class | singleton | function
Method signatures:
- create(options: FooBarOptions): FooBar
- getVersion(): string
Implementation mode: scaffold | real
Reference API: app | powerMonitor | other