Create or extract TypeScript SDK
Creates or extracts TypeScript SDKs with ESM/CJS builds and full type definitions.
/plugin marketplace add srstomp/pokayokay/plugin install srstomp-pokayokay@srstomp/pokayokay<sdk-task>SDK task: $ARGUMENTS
From $ARGUMENTS, determine:
For Creation:
For Extraction:
Package Structure:
sdk/
├── src/
│ ├── index.ts # Public exports
│ ├── client.ts # API client
│ ├── types.ts # TypeScript types
│ └── errors.ts # Custom errors
├── package.json
├── tsconfig.json
└── README.md
Key Features:
{
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
}
}
npx @stevestomp/ohno-cli create "SDK: [specific task]" -t feature
/pokayokay:api - Design underlying API/pokayokay:docs - SDK documentation/pokayokay:test - SDK testing strategy/pokayokay:work - Implement SDKWhen SDK work involves:
api-design skilldocumentation skilltesting-strategy skill