framework
HTTP and cross-cutting behavior for the CDA SDK — request.js, fetch retries, plugins, runtime http/localstorage.
от contentstack★ 35 звёзд на GitHub
Установить framework в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Framework skill — HTTP / transport / runtime
The SDK isolates networking and retries in src/core/lib/request.js, with platform-specific fetch and storage under src/runtime/.
Key modules
| File / area | Responsibility |
|---|---|
src/core/lib/request.js |
Builds query string from stack requestParams, sets headers (X-User-Agent, content type), fetchRetry, integrates stack.plugins (onRequest / onResponse), parses JSON, maps HTTP errors to rejection objects |
src/core/lib/utils.js |
Merge/deep helpers and shared utilities used by stack and modules |
src/core/stack.js |
Default fetchOptions (retry policy, logHandler), merges user options, constructs requestParams for calls |
src/runtime/node/http.js, web/http.js, etc. |
Platform fetch implementation wired via webpack alias runtime/http.js |
src/runtime/*/localstorage.js |
Cache provider storage for each target |
When to change this layer
- Retry policy, status-based retry, timeout defaults →
request.js/stack.js(fetchOptions) and JSDoc onStack. - Headers, user-agent format, query serialization →
request.js(keep backward compatible for CDN query shapes). - New global hook → extend plugin contract consistently in
request.js. - New platform → add
src/runtime/<platform>/, webpack config, and package entry fields if needed.
Tests
- Extend
test/ortest/typescript/when changing request behavior; many suites loaddist/node/contentstack.js— runnpm run buildaftersrc/edits.
Rule shortcut
.cursor/rules/javascript.mdcfor style; CDA semantics in.cursor/rules/contentstack-javascript-cda.mdc
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл framework?
HTTP and cross-cutting behavior for the CDA SDK — request.js, fetch retries, plugins, runtime http/localstorage.
Как установить скилл framework?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл framework запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…