Skip to content

Latest commit

 

History

History
94 lines (70 loc) · 6.6 KB

File metadata and controls

94 lines (70 loc) · 6.6 KB

Contentstack CLI plugins – Agent guide

Universal entry point for contributors and AI agents. Detailed conventions live in skills/*/SKILL.md.

What this repo is

Field Detail
Name: Contentstack CLI plugins (pnpm monorepo; root package name csdx)
Purpose: OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, migrate RTE, bulk operations, seed, audit, variants, Developer Hub apps, TypeScript codegen, etc.).
Out of scope (if any): The core CLI aggregation lives in the separate cli monorepo; this repo ships plugin packages only.

Tech stack (at a glance)

Area Details
Language TypeScript / JavaScript, Node >= 18 (engines in root package.json)
Build pnpm workspaces (packages/*); per package: tsc, OCLIF manifest/readme where applicable → lib/
Tests Mocha + Chai; layouts under packages/*/test/ (see skills/testing/SKILL.md)
Lint / coverage ESLint in packages that define lint scripts; nyc where configured
Other OCLIF v4, Husky

Commands (quick reference)

Command type Command
Build pnpm build
Test pnpm test
Lint pnpm run lint in a package that defines lint (no root aggregate lint script)

CI: .github/workflows/unit-test.yml and other workflows under .github/workflows/.

Where the documentation lives: skills

Skill Path What it covers
Development workflow skills/dev-workflow/SKILL.md pnpm commands, CI, TDD expectations, PR checklist
Contentstack CLI skills/contentstack-cli/SKILL.md Plugin commands, OCLIF, Contentstack APIs (incl. app:* / @contentstack/apps-cli)
Framework skills/framework/SKILL.md Utilities, config, logging, errors (incl. Developer Hub SDK, manifests, GraphQL)
Testing skills/testing/SKILL.md Mocha/Chai, coverage, mocks
Code review skills/code-review/SKILL.md PR review for this monorepo

Apps CLI plugin (@contentstack/apps-cli)

Tsgen plugin (contentstack-cli-tsgen)

Content Type plugin (contentstack-cli-content-type)

Regex Validate plugin (@contentstack/cli-cm-regex-validate)

Migrate RTE plugin (@contentstack/cli-cm-migrate-rte)

Bulk operations plugin (@contentstack/cli-bulk-operations)

Using Cursor (optional)

If you use Cursor, .cursor/rules/README.md only points to AGENTS.md—same docs as everyone else.