Skip to main content

creative-context

Reuse creative context across generation while respecting explicit context choices, pinned packs, provenance, and opt-out state. Use when generating or refining any creative output, or when the user references saved or approved context.

소스 정보

저장소
BuilderIO/agent-native
최근 소스 활동
2026년 9월 29일 10:14
감지된 SKILL.md 언어
영어
스타
7,119
포크
646

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
creative-context
description
Reuse creative context across generation while respecting explicit context choices, pinned packs, provenance, and opt-out state. Use when generating or refining any creative output, or when the user references saved or approved context.
scope
both
requires-lab
creative-context.library
metadata
{"internal":true}
# Creative Context Use the shared creative-context library to reuse verified source material without turning prior work into an invisible global prompt. ## Reuse ladder Apply the first viable option in this exact order: 1. Reuse an approved native asset, component, or template unchanged. 2. Compose approved native pieces without flattening or recreating them. 3. Duplicate and lightly adapt a real approved example. 4. Generate new work conditioned on narrowly retrieved references. 5. Generate net-new work only when the relevant corpus is empty. Do not skip directly to imitation or net-new generation when an approved native primitive already fits. ## Retrieval procedure Retrieve context in this order, stopping as soon as the current request is sufficiently grounded. Keep factual evidence, visual/style references, voice/terminology, and structural/layout examples in separate queries so one role cannot silently stand in for another: 1. Follow the user's explicit instructions and the object currently selected in the app. 2. Read the `creative-context` application-state record. If `pinnedPackId` is set, replay that immutable pack. Otherwise honor `selectedContextId`; when it is unset, let retrieval use Default plus at most one app-bound or semantically matching specialty context. `currentPackId` is the receipt from the latest materialized generation, not a replacement for context selection. 3. Call `search-creative-context` with a narrow query for exact facts, visual language, audience guidance, prior decisions, or reusable references. 4. Call `get-context-item` only for the specific search result versions needed for the work. Preserve source and version provenance. 5. Fall back to app-local design systems, assets, documents, and current-user instructions when the shared library has no relevant evidence. Do not load the whole library or paste large source dumps into a prompt. Context packs are generation snapshots; do not silently rewrite a historical pack after it has been used. For an inbound Creative Context machine-protocol A2A request, call `creative-context-a2a` exactly once with its opaque `requestToken`, then return the action's `responseToken` verbatim. Never decode or broaden the request. ## Context opt-out The single state key is `creative-context`: ```json { "contextMode": "auto", "selectedContextId": null, "currentPackId": null, "pinnedPackId": null } ``` When `contextMode` is `off`, do not search, select, or apply saved creative context for subsequent generations. Do not restore a previous pack automatically. Historical output may keep its original pack provenance. A one-turn instruction such as "ignore the library for this version" wins for that turn, but does not change the saved preference unless the user asks. When the user corrects reused context, call `record-context-feedback` against the exact item/version and signal whether it was unhelpful, incorrect, or outdated. Never invent a source or silently overwrite source history. ## Assets reuse Before generation, follow the reuse ladder above: explicit request and current asset/kit first, then a pinned/current pack, then narrow library search. Respect `creative-context.contextMode: "off"` without silently restoring a pack. This shared Agent-page Library does not replace Assets' existing `/library` media workflow. To submit an asset to a governed Creative Context, use the Context tab or `manage-context-membership`; it pins immutable media bytes and metadata. Reuse only its opaque native clone reference through the Assets action path. Use `operation="submit-latest"` with a Library membership id when its native update status reports `update-available`. Search visual references separately from factual evidence. When a retrieved image should directly guide generation, import its stable media URL with `import-asset-from-url` as a reference asset in the selected brand kit, then pass that asset id through the normal `referenceAssetIds` path. Do not pass a context-item URL directly to an image provider. Keep the returned `contextPackId` and reuse labels in generation-run and output-asset metadata alongside the normal reference selection provenance. When the approved asset itself should be reused, call `clone-creative-context-asset` with its exact item and version ids instead of regenerating it. The typed action copies the approved private object through Assets' normal import path; generic context actions never expose its blob handle.
GitHub에서 보기