webiny-ai-powerups-content
하는 일
이 스킬은 모델을 직접 호출하지 않고, Webiny의 AI Power Ups 기능을 통해 CMS 항목 텍스트를 만드는 방법을 AI에게 보여 줍니다. 코드에서 자동 콘텐츠를 만들려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓CMS 항목 내용을 요약하거나 다시 쓰는 대량 작업이나 훅이 필요할 때.
- ✓생성된 내용이 프로젝트에 설정된 어조나 대상 페르소나를 따라야 할 때.
- ✓모델을 고르거나 API 키를 다루지 않고 사용자 지정 뮤테이션 안에서 AI 콘텐츠를 만들어야 하는 경우.
스킬 링크
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/api/ai-powerups-content/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“AI Power Ups 설정을 사용해서, 각 제품 항목마다 짧은 마케팅 요약을 생성하는 대량 작업을 작성해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 프롬프트와 선택적인 프로젝트 및 페르소나 ID를 넣어 생성 유스케이스를 호출하는 방법을 설명합니다. 유스케이스는 생성된 항목 값을 돌려주고, 코드가 그것을 파싱해 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
AI content generation via AI Power Ups
TL;DR
Inject CmsGenerateEntryContentUseCase (from webiny/api/ai-powerups) and call
execute(...). It uses the provider the user configured in AI Power Ups and applies an
optional Project, Writer Persona, or Reader Persona — so you never pick
models, decrypt API keys, or hardcode prompts. It returns the AI-generated entry values as
a JSON string; parse it and take the field(s) you want.
Prefer this over a raw Ai.generateText call whenever the point is "apply the user's
configured AI setup" — it composes the product with itself and is far less plumbing.
Generate content
import { CmsGenerateEntryContentUseCase } from "webiny/api/ai-powerups";
class MyThing {
constructor(private generate: CmsGenerateEntryContentUseCase.Interface) {}
async run(model, entry, ctx) {
const result = await this.generate.execute({
modelId: model.modelId,
prompt: `Write a one-sentence marketing summary for "${entry.values.name}". Fill only the "aiSummary" field.`,
// Any of these are optional; they map to what the user configured in AI Power Ups:
projectId: ctx?.projectId, // a bundled context (instructions + files + default personas)
writerPersonaId: ctx?.writerPersonaId, // tone
readerPersonaId: ctx?.readerPersonaId // audience
});
if (result.isFail()) {
throw result.error; // e.g. "No AI provider configured. Add a provider in AI Power Ups settings."
}
return result.value; // { values, telemetry }
}
}
Register the dependency: dependencies: [CmsGenerateEntryContentUseCase].
Output shape — important
result.value.values is an entry-shaped object keyed by the model's field ids (the use
case is built to fill an entry from its schema). The AI decides which fields it fills, so:
- Read only the field(s) you want (e.g.
result.value.values.aiSummary) — do NOT blindly write the whole object back, or the AI could overwritename,price, etc. - Type the values at the call site if you like:
execute<{ aiSummary?: string }>(...), which makesresult.value.values.aiSummarytyped (defaults toRecord<string, any>). - Guard for the field being absent (the model may not have filled it): fall back to
""and, if you're inside a converging background task, still mark the entry done so it doesn't loop.
Then persist with UpdateEntryUseCase (values nested; skipValidation: true for a
targeted field write).
Admin — list configured contexts (for a picker)
To let the user pick a Project/Persona in the Admin UI, read AI Power Ups settings with
GetSettingsFeature (from webiny/admin/ai-powerups):
import { useFeature } from "webiny/admin";
import { GetSettingsFeature } from "webiny/admin/ai-powerups";
const { useCase: getSettings } = useFeature(GetSettingsFeature);
const settings = await getSettings.execute();
// settings.writerPersonas.presets / settings.readerPersonas.presets / settings.projects.presets
// each preset: { id, name, description, ... }
Forward the chosen id(s) to your backend (e.g. via a bulk action's data).
Related
webiny-cms-bulk-actions— the common host for this: a bulk action whoseprocessDatacallsCmsGenerateEntryContentUseCaseand writes the result, as a background task.@webiny/ai-powerups'sAiImageEnrichmentTaskshows the alternative (raw, hardcodedAi.generateText) — use that only when you deliberately don't want the configured setup.
자주 묻는 질문
모델을 고르거나 API 키를 다뤄야 하나요?
아닙니다. 유스케이스는 사용자가 AI Power Ups에서 이미 설정한 제공자를 쓴다고 스킬이 설명합니다.
생성 결과는 무엇인가요?
생성된 항목 값이 담긴 JSON 문자열이며, 코드가 이를 파싱합니다.
페르소나란 무엇인가요?
작성자 페르소나는 어조를, 독자 페르소나는 대상을 정하며, 둘 다 선택 사항입니다.
상세 정보
작성자의 원본 설명
Generating Headless CMS entry content with AI from your own code, by delegating to the AI Power Ups extension instead of calling an LLM directly. Use this skill when the developer wants to generate/summarize/rewrite entry content programmatically (e.g. from a bulk action, a lifecycle hook, or a custom mutation) using the provider and the Writer/Reader Personas and Projects the user configured in AI Power Ups. Requires the AI Power Ups extension (with a provider configured) and Webiny 6.5.0 or newer.
repo: webiny/webiny-js
인기도
- GitHub 스타
- 8.1k
- 순위
- #12582
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
prd-to-plan
8.1k에이전트가 제품 요구사항 문서를 작고 끝까지 이어지는 조각들로 된 단계별 계획으로 바꿔 Markdown 파일로 저장하도록 돕습니다.
webiny-admin-architect
8.1k에이전트에게 Webiny 플랫폼의 관리자 화면을 비즈니스 로직 계층과 프레젠터 패턴으로 만드는 방법을 가르칩니다.
webiny-admin-permissions
8.1k에이전트에게 Webiny 관리자 화면에 권한 제어를 추가하는 법을 가르칩니다. 스키마에서 권한 양식을 자동 생성하고 표시 여부를 확인합니다.
webiny-form-model
8.1k에이전트에게 선언형 필드 빌더, 레이아웃, 검증, 조건부 규칙으로 Webiny 양식을 만드는 법을 가르칩니다.
비슷한 스킬
writing-skills
311k에이전트를 위한 새 스킬을 작성하고, 각 스킬이 실제로 에이전트의 행동을 바꾸는지 사용하기 전에 테스트하도록 가르칩니다.
writing-for-agents
310k스킬, AGENTS.md, CLAUDE.md 등 AI 에이전트가 읽는 문서를 명확하게 쓰는 방법을 알려 주어 에이전트가 예측 가능하게 행동하도록 돕습니다.
bengali-nlp
280k에이전트가 벵골어 텍스트를 처리하도록 돕습니다. 언어를 이해하고 다루며, 텍스트를 정규화하고 고유한 특징을 처리합니다.