一键导入
typescript-cli-tsgen
Mental model for the contentstack-cli-tsgen OCLIF plugin and tsgen command (CLI 1.x line).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mental model for the contentstack-cli-tsgen OCLIF plugin and tsgen command (CLI 1.x line).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
PR and release checklist for cli-cm-regex-validate (security, packaging, CI, messages)
Contentstack CLI plugin patterns for cm:stacks:validate-regex (SDK, schema, safe-regex, output)
Local and CI workflow for cli-cm-regex-validate — commands, layout, naming, hooks, and merge expectations
Jest testing patterns for cli-cm-regex-validate (mocks, fixtures, no live API calls)
Reviews pull requests and risky changes for the contentstack-cli-content-type plugin. Use when reviewing diffs, security-sensitive edits, dependency upgrades, or changes to compare/diagram/temp-file behavior, ESLint, and tests.
Develops and maintains the contentstack-cli-content-type csdx plugin (content-type list, details, audit, compare, compare-remote, diagram). Use when editing this repository, ContentTypeCommand setup and flags, CMA/Management SDK usage, axios audit/references calls, diff/compare HTML output, Graphviz diagrams, or oclif readme/manifest workflows.
| name | typescript-cli-tsgen |
| description | Mental model for the contentstack-cli-tsgen OCLIF plugin and tsgen command (CLI 1.x line). |
csdx: implements TypeScriptCodeGeneratorCommand in src/commands/tsgen.ts.@contentstack/types-generator (npm)—version ^3.10.0 in package.json.@contentstack/cli-command ~1.8.2 and @contentstack/cli-utilities ~1.18.3.| Concern | Where |
|---|---|
New flags, output path, csdx UX, printFormattedError | This package (src/commands/, src/lib/) |
| Schema mapping, Delivery SDK calls, GraphQL introspection | @contentstack/types-generator |
src/lib/helper.ts: sanitizePath, printFormattedError.src/types/index.ts: StackConnectionConfig.tsgen)Command from @contentstack/cli-command.token-alias (-a, required), output (-o), prefix, doc, branch, include-system-fields, include-editable-tags, include-referenced-entry, api-type (rest | graphql), namespace (GraphQL).this.getToken(flags["token-alias"]); warn if not a delivery token.generateTS; GraphQL → graphqlTS; write with fs.writeFileSync.