GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cli-plugins/AGENTS.md at main · dhavaljain999/cli-plugins

Expand file tree

/

AGENTS.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
75 lines (57 loc) · 5.13 KB
/

AGENTS.md

Copy path

File metadata and controls

75 lines (57 loc) · 5.13 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contentstack CLI plugins – Agent guide

Universal entry point for contributors and AI agents. Detailed conventions live in skills/*/SKILL.md (per-package).

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, seed, audit, variants, Developer Hub apps, regex validation, 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)
Tests Mocha + Chai (most packages); Jest + ts-jest (contentstack-cli-cm-regex-validate); layouts under packages/*/test/
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)

  • Package path: packages/contentstack-apps-cli
  • npm name: @contentstack/apps-cli (unchanged for consumers)
  • Migrated from: contentstack/contentstack-apps-cli — see APPS-CLI-MIGRATION.md
  • v1 / v2: Maintain on v1-dev (1.x CLI deps) and v2-dev / v2-beta (2.x beta deps) branches; align @contentstack/cli-command and @contentstack/cli-utilities versions with the target CLI line.
  • Docs: OCLIF / app:* commands → contentstack-cli; SDK, manifests, GraphQL, HTTP → framework

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

  • Package path: packages/contentstack-content-type
  • npm name: contentstack-cli-content-type
  • Migrated from: contentstack/contentstack-cli-content-type — see CONTENT-TYPE-MIGRATION.md
  • v1 / v2: This branch carries the v1 line (@contentstack/cli-command ^1.8.2, @contentstack/cli-utilities ^1.18.3, npm tag latest). The v2-beta line lives on v2-beta.
  • Tests: Jest + ts-jest (unlike most other packages which use Mocha + Chai)
  • Docs: 6 commands under content-type:* → packages/contentstack-content-type/AGENTS.md
  • v1 / v2: This branch carries the v1 line (@contentstack/cli-command ^1.8.2, @contentstack/cli-utilities ^1.18.3).
  • Docs: See packages/contentstack-apps-cli/AGENTS.md

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

  • Package path: packages/contentstack-cli-cm-regex-validate
  • npm name: @contentstack/cli-cm-regex-validate
  • Migrated from: contentstack/cli-cm-regex-validate — see REGEX-VALIDATE-MIGRATION.md
  • v1 / v2: This branch carries the v1 line (@contentstack/cli-command ^1.8.2, @contentstack/cli-utilities ^1.18.3, version 1.0.0, npm tag latest).
  • Tests: Jest + ts-jest (unlike most other packages which use Mocha + Chai)
  • Command: Single command cm:stacks:validate-regex (short name RGXVLD)
  • Docs: packages/contentstack-cli-cm-regex-validate/AGENTS.md

Using Cursor (optional)

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

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.