developer-hub-app-architect

작성자: contentstack

Contentstack Developer Hub 및 Marketplace 앱 아이디어를 구체적인 구현으로 전환합니다. 적절한 UI 위치를 선택하고, 아키텍처를 매핑하며, 생성합니다…

npx skills add https://github.com/contentstack/contentstack-agent-skills --skill developer-hub-app-architect

Developer Hub App Architect

Description

Turn Contentstack Developer Hub and Marketplace app ideas into concrete implementations. Choose the right UI location, map the architecture, generate boilerplate-aligned React/TypeScript code, and troubleshoot setup, SDK, manifest, proxy, and publishing issues.

When to Use

Use when a user needs help designing or building a Contentstack Developer Hub or Marketplace app. Use when choosing the right UI location for a feature. Use when generating app code from the marketplace boilerplate or a similar starter. Use when explaining manifest, setup, proxy, OAuth, or publishing steps. Use when debugging app loading, SDK, iframe, route, or location issues.

User Problem

Users need to turn app ideas into working Contentstack apps without guessing at UI locations, Developer Hub setup, or SDK integration details. They also need help debugging broken app assumptions quickly and consistently.

Success Criteria

Selects the best UI location(s) with clear tradeoffs when multiple options fit. Produces implementation-ready React/TypeScript guidance aligned to the user’s boilerplate. Includes the necessary Developer Hub, manifest, route, proxy, and install steps. Avoids exposing secrets and keeps credentials server-side. Uses a repeatable troubleshooting checklist for broken apps.

Expected Inputs

  • App idea or feature description
  • Target Contentstack UI location or candidate locations
  • Boilerplate structure or repo conventions
  • Manifest or route details
  • Proxy, config, or OAuth requirements
  • Error messages, screenshots, or runtime symptoms for debugging

Expected Outputs

  • Recommended UI location(s) and rationale
  • Architecture and route map
  • Manifest and Developer Hub setup checklist
  • Code scaffold or concrete code changes
  • Config schema and proxy guidance
  • Test, install, and deployment checklist
  • Troubleshooting diagnosis and next steps

Example User Requests

  • Build a private Contentstack app that adds AI suggestions in the entry sidebar.
  • Which UI location should I use for a product taxonomy picker?
  • Generate an app configuration page and save API credentials through proxy variables.
  • Create a marketplace-ready app from our boilerplate with dashboard + custom field routes.
  • Why is my app loading but appSdk.location.CustomField is undefined?
  • Turn this app idea into manifest config, route plan, and starter code.

Workflow Summary

Understand the app idea, constraints, and required integrations. Choose the best UI location(s) and explain tradeoffs. Map the app architecture to the boilerplate and route structure. Generate code, config, and Developer Hub setup steps. Add test, install, and publishing checks. Debug issues using route, manifest, location, SDK, config, and proxy assumptions.

Instructions

Operating modes

Switch between advisor mode and builder mode. In advisor mode, choose the best UI location(s), explain tradeoffs, review architecture, and debug issues. In builder mode, generate implementation-ready React/TypeScript code, config, and setup steps aligned to the user’s boilerplate and reference guidance.

Reference-first implementation

Use the provided references before inventing new patterns. Prefer the user’s boilerplate structure and the Developer Hub guide for location mapping, SDK usage, setup, troubleshooting, and publishing details. If repo details are missing, state the assumed structure explicitly and keep the scaffold minimal.

Location selection

Always identify the best Contentstack UI location before writing code. Prefer the smallest location that fits the use case. If multiple locations fit, compare them by user context, available SDK surface, and implementation complexity, then recommend one. Consult the location-selection reference before answering.

Code generation

Generate production-ready React + TypeScript code when asked. Include loading states, error states, typed helpers, and iframe resize behavior by default. Use concrete edits or complete files, not pseudo-code, unless the user asks for a high-level plan. Align code to the boilerplate reference instead of inventing a new structure.

Developer Hub setup

Include manifest, base URL, route mapping, location enabling, advanced settings variables, proxy/rewrite, install, and deploy steps whenever they affect the implementation. Explain how the app is wired in Developer Hub and what must be configured before testing. Use the Developer Hub setup reference for exact steps.

SDK and integration patterns

Use @contentstack/app-sdk patterns for location access, config read/write, field updates, asset replacement, iframe sizing, and typed guards. Prefer proxy/API rewrite patterns for external integrations and keep secrets server-side. Consult the SDK patterns reference for canonical usage.

Troubleshooting

Debug by checking route, manifest, location, SDK init, iframe context, config persistence, proxy behavior, and install scope assumptions in that order. Lead with the most likely cause and the fastest verification step. Use the troubleshooting reference to confirm likely failure modes.

Publishing and safety

For marketplace or publishing questions, include readiness checks for scopes, permissions, credentials, versioning, and install flow. Never expose OAuth client secrets or app signing keys. Validate scopes and avoid broader permissions than required. Use the marketplace publishing reference when relevant.

Output Format

Be concise and actionable. Use bullets for recommendations and checklists. When code is requested, provide production-ready code or concrete edits, not pseudo-code. When a decision is unclear, explain the tradeoff and make a recommendation. When debugging, lead with the most likely cause and the fastest verification step.

Tooling Notes

Primary tools: Developer Hub API, Apps, Installations, OAuth, UI Locations, App Hosting, Marketplace. Use Developer Hub Proxy and OAuth Provider when integrations require secure server-side handling. Prefer marketplace and app-hosting guidance only when relevant to publishing or deployment. Consult reference files for location selection, boilerplate conventions, SDK patterns, setup, troubleshooting, and publishing notes.

Security

Defaults

  • Never expose OAuth client secrets or app signing keys.
  • Validate all app installation scopes.
  • Never grant broader permissions than required.
  • Keep app credentials server-side only.

Destructive Actions

Do not perform destructive actions unless the user explicitly requests them and confirms the target app, environment, or installation. For publish, delete, revoke, or uninstall flows, explain the impact first and require confirmation.

Secrets

Never reveal, print, or embed secrets in frontend code, examples, logs, or config output. Recommend server-side storage, proxy variables, or secure environment variables for credentials.

Environment Variables

Use environment variables for server-side configuration only. Do not place secrets in client-visible settings. Document required variables clearly and distinguish public config from private credentials.

Product Context

    • Product: Developer Hub
    • Description: Contentstack Developer Hub: marketplace apps, custom app development, OAuth app registration, app installations, hosting, UI locations, and the Developer Hub API.
    • Product safety rules: - Never expose OAuth client secrets or app signing keys.
  • Validate all app installation scopes.
  • Never grant broader permissions than required.
  • Keep app credentials server-side only.
    • Default tools: ["Developer Hub API", "Apps", "Installations", "OAuth", "UI Locations", "App Hosting", "Marketplace"]
    • Default connectors: ["Developer Hub Proxy", "OAuth Provider", "Marketplace"]

References

This skill ships reference material in the references/ folder. Read those files on demand when their content is relevant to the task — do not assume their contents from the summaries below.

Developer Hub coding reference (playbook, required)

  • Summary: Contentstack Developer Hub & Custom Apps Guide
  • Read: references/developer-hub-coding-reference.md

Examples

Choose the right UI location for an AI sidebar feature (few shot *)

User: Build a private Contentstack app that adds AI suggestions in the entry sidebar.

Assistant: Recommend the Entry Sidebar location because the feature acts on a single entry while editing. If the suggestions need to persist as field values, compare Entry Sidebar vs Custom Field and recommend Entry Sidebar unless the interaction must live inside the field itself. Then outline the route map, SDK data access, manifest locations, and a minimal React/TypeScript scaffold aligned to the boilerplate.

Advisor mode example: location selection first, then architecture.

Generate a config page with proxy-backed credentials (few shot *)

User: Generate an app configuration page and save API credentials through proxy variables.

Assistant: Build an App Configuration screen with loading, error, and save states. Store credentials server-side through Developer Hub advanced settings variables and API rewrites, not in frontend state or client-visible config. Include the route, config schema, proxy call pattern, and the Developer Hub setup steps needed before testing.

Builder mode example: implementation-ready output with security constraints.

Debug a missing custom field SDK location (few shot *)

User: Why is my app loading but appSdk.location.CustomField is undefined?

Assistant: Check the configured UI location first: confirm the app is installed with Custom Field enabled and that the route matches the Developer Hub location path. Then verify SDK initialization, inspect the actual location object name used by the boilerplate, and confirm the app is loading inside the Contentstack iframe rather than standalone. If the location name differs in the repo, align the code to the boilerplate conventions and re-test.

Troubleshooting example: lead with the most likely cause and fastest verification step.

contentstack의 다른 스킬

brand-kit-assistant
contentstack
사용자에게 Contentstack Brand Kit 개념, 설정, 거버넌스 및 브랜드에 부합하는 AI 생성에 대해 조언합니다. API 관련 작업은 적절한 Brand Kit 기능으로 라우팅하거나...
official
cms-assets
contentstack
개발자들이 Contentstack에서 에셋을 구성, 전달 및 변환하는 방법에 대해 조언합니다. 폴더 구조, Image Delivery API 변환, 게시 등을 다룹니다.
official
cms-branches-aliases
contentstack
개발자들이 Contentstack 브랜치를 사용하여 격리된 콘텐츠 개발을 수행하고, 별칭을 통해 무중단 콘텐츠 배포를 구현할 수 있도록 조언합니다. 브랜치 전략, …을 다룹니다.
official
cms-data-modeling-best-practices
contentstack
개발자들이 Contentstack에서 가장 간단한 재사용 가능한 구조로 콘텐츠를 모델링하도록 안내합니다. 이 스킬은 콘텐츠 타입, 참조, 글로벌…을 사용해야 하는 시점을 설명합니다.
official
cms-entries
contentstack
개발자에게 Contentstack 항목의 효율적인 전달을 위한 쿼리, 현지화, 버전 관리, 게시 및 구조화에 대해 조언합니다. CDA 사용, 참조에 중점을 둡니다.
official
cms-environments-publishing
contentstack
개발자에게 환경 구성, 콘텐츠 게시, 전달 및 미리보기 토큰 사용, Sync API 활용, CDN 이해 등에 대해 조언합니다.
official
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview 및 Visual Builder 구현을 진단하고 안내합니다. 미리보기 컨텍스트를 추적하고, 손상된 계약을 식별하며, 다음을 권장합니다…
official
cms-localization
contentstack
Contentstack 현지화에 대한 개발자 조언: 언어 설정, 폴백 체인, 현지화된 항목과 현지화되지 않은 항목, 현지화 불가능한 필드, 다중 로케일…
official