contentstack/contentstack-cli-tsgen · Archived

code-review

PR review checklist for contentstack-cli-tsgen (CLI, errors, Delivery/GraphQL, types-generator dependency).

First seen Aug 19, 2026

Installation

$ npx skills add contentstack/contentstack-cli-tsgen --skill code-review

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from contentstack/contentstack-cli-tsgen.

npx skills add contentstack/contentstack-cli-tsgen

Browse all from contentstack/contentstack-cli-tsgen

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 11
License LICENSE
Default branch master
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,689 B
  • docs SUMMARY.md 126 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Code review skill (contentstack-cli-tsgen)

CLI and docs

  • Help text, static examples, and README/oclif-generated docs stay in sync when flags or behavior change.
  • Short command name tsgen / TSGEN comes from csdxConfig in [package.json](../../package.json).

Product language

  • Prefer Delivery token flows; GraphQL requires delivery token in code paths—reviewers should catch CMA-centric wording that misleads users.

Errors

  • printFormattedError in [src/lib/helper.ts](../../src/lib/helper.ts) maps error_code to user-facing messages; extend switches carefully for backward compatibility.

Dependency on the library

  • Business logic for generateTS / graphqlTS belongs in @contentstack/types-generator (npm, GitHub). CLI changes should orchestrate and format, not reimplement generation.

Tests and CI

  • Integration tests depend on csdx and TOKEN_ALIAS; document env needs when adding cases.
  • Backward compatibility: Avoid breaking changes to flags, exit behavior, or output file contract without semver intent.
  • Supply chain: .github/workflows/sca-scan.yml runs Snyk on pull requests.

Optional severity

  • Blocker: Wrong token type handling, broken csdx contract, security issues.
  • Major: Missing integration coverage for new flags, unclear errors.
  • Minor: Copy, non-breaking refactors.