AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
79/100
Scores the file, not the repository.Length
289 words
6 headings · 0 code blocksRepository
34
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.1# Contentstack JavaScript Delivery SDK – Agent guide23**Universal entry point** for contributors and AI agents. Detailed conventions live in **`skills/*/SKILL.md`**.45## What this repo is67| Field | Detail |8|--------|--------|9| **Name:** | [contentstack-javascript](https://github.com/contentstack/contentstack-javascript) (npm package **`contentstack`**) |10| **Purpose:** | Legacy **JavaScript** Content Delivery SDK for browsers, Node.js, React Native, and NativeScript—stack initialization, queries, entries, assets. |11| **Out of scope:** | Not the TypeScript-first **`@contentstack/delivery-sdk`** (`contentstack-typescript`); new TypeScript projects should prefer that package when appropriate. |1213## Tech stack (at a glance)1415| Area | Details |16|------|---------|17| Language | JavaScript in **`src/`**; TypeScript tests via Jest (`test/typescript`) |18| Build | Webpack configs under **`webpack/`**; outputs under **`dist/`** per target (`npm run build`) |19| Tests | Jest: **`test:e2e`** (`jest.js.config.js`) and **`test:typescript`** (`jest.config.js`); **`pretest`** runs **`build`** first |20| Lint / coverage | ESLint on `src` and `test` (`npm run lint`) |21| CI | `.github/workflows/check-branch.yml`, `npm-publish.yml`, `sca-scan.yml`, `policy-scan.yml`, `codeql-analysis.yml`, `link-check.yml`, `issues-jira.yml` |2223## Commands (quick reference)2425| Command type | Command |26|--------------|---------|27| Build | `npm run build` |28| Test | `npm test` (build via `pretest`, then e2e + TypeScript Jest suites) |29| Lint | `npm run lint` |3031## Where the documentation lives: skills3233| Skill | Path | What it covers |34|-------|------|----------------|35| **Development workflow** | [`skills/dev-workflow/SKILL.md`](skills/dev-workflow/SKILL.md) | Branches, npm scripts, Husky, CI |36| **JavaScript SDK** | [`skills/contentstack-javascript-sdk/SKILL.md`](skills/contentstack-javascript-sdk/SKILL.md) | Public API (`Stack`, regions), `@contentstack/utils` |37| **JavaScript tooling** | [`skills/javascript/SKILL.md`](skills/javascript/SKILL.md) | Webpack targets, `dist/` layout, Babel |38| **Testing** | [`skills/testing/SKILL.md`](skills/testing/SKILL.md) | Jest configs, e2e vs TypeScript tests |39| **Code review** | [`skills/code-review/SKILL.md`](skills/code-review/SKILL.md) | PR checklist |4041## Using Cursor (optional)4243If you use **Cursor**, [`.cursor/rules/README.md`](.cursor/rules/README.md) only points to **`AGENTS.md`**—same docs as everyone else.44
Also in contentstack/contentstack-javascript
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| contentstack/contentstack-javascript.cursor/rules/code-review.mdc · 34 | Cursor rules | testgitsecuritydependencies+3 | 55/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/contentstack-javascript-cda.mdc · 34 | Cursor rules | archdocs | 56/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/javascript.mdc · 34 | Cursor rules | testlint-formatstylearch+2 | 74/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/testing.mdc · 34 | Cursor rules | buildteststylearch+2 | 81/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
