cloudcannon/agent-skills

cloudcannon-configuration

Use when configuring a site for CloudCannon for any of the following.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/cloudcannon/agent-skills --skill cloudcannon-configuration

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

CloudCannon configuration

This skill covers creating and customizing cloudcannon.config.yml, which tells CloudCannon how to understand and present the site's content, and .cloudcannon/initial-site-settings.json, which tells CloudCannon how to build the site.

When to use

  • Creating or customizing cloudcannon.config.yml or .cloudcannon/initial-site-settings.json
  • Adding or changing Collections, Inputs, Structures, or Select Data
  • A field is missing from the editor, or shows the wrong Input type
  • Configuring Collection URLs so pages open in the Visual Editor

When not to use

  • Adding editable regions to templates — that is `cloudcannon-visual-editing`. This skill configures the data behind them.
  • MDX components or inline HTML in content — that is `cloudcannon-snippets`
  • Running a full migration — start at `migrate-to-cloudcannon`, which enters this skill at Phase 2
  • Operating on a hosted site — authenticating, listing or creating sites, reading and writing site files, triggering builds, or changing an existing site's build configuration is `cloudcannon-cli`. This skill decides what a configuration should say; that one runs the commands.

Do this before writing any configuration

bash
mkdir -p .cloudcannon/migration
curl -sL "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-config.latest.schema.json" \
  -o .cloudcannon/migration/cloudcannon-config.latest.schema.json
curl -sL "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-initial-site-settings.schema.json" \
  -o .cloudcannon/migration/cloudcannon-initial-site-settings.schema.json

Do not proceed until both files exist. Training data hallucinates keys — the schemas are the only authoritative source.

Query recipes, the .gitignore rule, and the yaml-language-server rule are in json-schemas.md.

Check for an existing config in any format — cloudcannon.config.{yml,yaml,json,js,cjs,mjs}, not only .yml. If one exists, customize it, and run configure generate only with --dry-run, for reference; without --dry-run the CLI writes a second cloudcannon.config.yml beside it. If none exists, generate a baseline — see configuration.md § Generate a baseline.

Invalid keys

Check this table before writing config. These are keys agents have written that the schema doesn't have; the JSON schemas are authoritative.

WrongCorrect
disable_url_preview: truedisable_url: true, which turns off the collection's output URL.
output: falseOmit url and set disable_url: true, or use data_config instead of a collection.
type: hiddenhidden: true beside type, on any input; hidden: "<query>" hides it conditionally.
options.max on a text or textarea inputoptions.max_length, paired with min_length.
_editables.text with block keys (bulletedlist, blockquote, format, table)_editables.text is inline-only — see § `_editables` key-to-schema mapping.
heading2: true, heading3: trueformat: "p h1 h2 h3", a space-separated string — see § `_editables` key-to-schema mapping.
options.collections: [team]values: collections.team with value_key and preview — see inputs.md § Select values from a collection.
options.structures: my_blocksThe full path, _structures.my_blocks — see structures.md § The four rules.
timezone: "+10:00"A top-level IANA name such as Australia/Melbourne, defaulting to Etc/UTC — see configuration.md § Review the generated config.
paths.collections, paths.datacollections_config.<name>.path and data_config.<name>.path.
paths.outputNo such key: the build tool sets the output directory. paths holds asset directories only: static, uploads, uploads_filename, dam_uploads, dam_uploads_filename, dam_static, uploads_use_relative_path.
A Material Symbols name outside the schema's enum, such as placeA name from the enum, such as location_on; an invalid name falls back to the default icon — check it with the icon recipe in json-schemas.md.

Rules for every task

Contents

FileRead when
configuration.mdAlways, first, when writing config — the steps and the shared verification checklist.
json-schemas.mdBefore writing any key, to check it exists in the schema.
cloudcannon-cli-guide.mdGenerating the baseline step by step, or validating; the rest of the CLI is `cloudcannon-cli`.
schemas.mdBefore adding a collection or writing its schemas — one collection can hold many schemas.
inputs.mdBefore writing _inputs.
structures.mdAny field holds an array or an object, since editors can't add items without a structure.
collection-urls.mdAny collection produces pages, or a page fails to load in the Visual Editor.
build-commands.mdThe build has generators or post-build steps.
configuration-gotchas.mdLooking up a cross-SSG pitfall while configuring.
troubleshooting.mdConfiguration is already wrong and you're working from a symptom.

SSG-specific: enter through the SSG's overview.md; it gives the reading order and lists every file for that SSG.

The site usesStart at
Astroastro/overview.md
Hugohugo/overview.md
Eleventyeleventy/overview.md

Other skills:

SkillRead when
make-site-multilingualConfiguring a multilingual site: locale datasets, per-locale collections and locale-prefixed URLs.
cloudcannon-dev-serverThe user wants to open the configured site in CloudCannon and try the collections and inputs.
같은 저장소의 Skills

더 많은 Skills

모든 Skills
cloudcannon
커뮤니티

brainstorming

Structured design dialogue before CloudCannon work that has more than one sensible answer — a migration's editability tradeoffs, how to model a collection or page builder, restructuring content or config, or an ambiguous "make this work with CloudCannon". Explores intent and constraints, then presents a design for approval before implementation. Not for single well-defined tasks, clear bug fixes, or a detailed spec.

1시간 설치 수
7
GitHub Stars
9
업데이트
10월 28일
cloudcannon
커뮤니티

cloudcannon-bookshop

Use when a CloudCannon site uses Bookshop — .bookshop.yml files, @bookshop/ packages, bookshopname keys, bookshop:live, or partial "bookshop" calls or {% bookshop %} tags. Covers how Bookshop works, maintaining a site that stays on it, and migrating it to editable regions.

1시간 설치 수
7
GitHub Stars
9
업데이트
10월 28일
cloudcannon
커뮤니티

cloudcannon-cli

Use when running the CloudCannon CLI — logging in, listing or creating sites, reading and writing files on a hosted site, triggering and inspecting builds, changing a site's build configuration, reading form submissions, or finding out which command and flags exist for a task.

1시간 설치 수
7
GitHub Stars
9
업데이트
10월 28일
cloudcannon
커뮤니티

cloudcannon-dev-server

Use when running a CloudCannon site locally with cloudcannon dev — starting the local editing loop so the user can edit in the CloudCannon editor and see the site rebuild, choosing the build command per SSG, and reading the /api surface the server exposes.

1시간 설치 수
7
GitHub Stars
9
업데이트
10월 28일