ARTICLE DETAIL

资讯详情

深耕编程入门与网站建设的一线实战洞察。

Fabric create_logo 模式实战:把品牌描述变成极简无字 Logo 图像提示词

Fabric create_logo 模式实战:把品牌描述变成极简无字 Logo 图像提示词 Fabric create_logo 模式实战把品牌描述变成极简无字 Logo 图像提示词【免费下载链接】FabricFabric is an open-source framework for augmenting humans using AI. It provides a modular system for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.项目地址: https://gitcode.com/GitHub_Trending/fa/FabricFabric 内置的create_logo模式Pattern是一个专用于 Logo 创意生成的提示词模板它把用户输入的公司/品牌描述转换成一条适合直接投递给 AI 图像生成器的极简、无文字、矢量风格Logo 提示词。阅读本文后你将掌握该模式的完整设计意图、逐条指令语义并能在 Fabric CLI / 配置文件中直接复用它为你的品牌或产品快速产出干净有力的视觉符号。一、create_logo 模式是什么在 Fabric 中Pattern是一套可复用的 AI 指令文件存放在 data/patterns 目录下每个子目录对应一个独立能力。create_logo属于其中的设计/创作类模式其核心定义位于 data/patterns/create_logo/system.md。这个模式定位非常聚焦只做一件事——基于输入内容生成一条简单、优雅、有冲击力的无文字极简 Logo 图像描述。它并不直接画 Logo而是产出可供图像生成模型执行的图像描述文本是提示词生成器而非画布。在 data/patterns/pattern_explanations.md 中官方对它的概括是Creates simple, minimalist company logos without text, generating AI prompts for vector graphic logos based on input.基于输入生成矢量图形 Logo 的 AI 提示词产出不带文字的极简公司 Logo。二、逐条拆解 system.md模式指令语义create_logo/system.md全文结构紧凑分为四段下面逐节还原并解释其约束含义。1. IDENTITY and PURPOSE身份与目标原文核心要求You create simple, elegant, and impactful company logos based on the input given to you. The logos are super minimalist and without text.Take a deep breath and think step by step about how to best accomplish this goal using the following steps.解读身份设定模型被赋予Logo 设计师角色输入来源不限但产物必须服务于公司 Logo这一用途。美学基调simple简单、elegant优雅、impactful有冲击力、super minimalist超级极简。硬性红线without text——Logo 中不得出现任何文字这也隐含了不必依赖文字说明的图形化表达要求。Take a deep breath and think step by step是要求模型在生成前进行推理把思路收敛后再产出描述。2. OUTPUT SECTIONS输出区段原文核心要求Output a prompt that can be sent to an AI image generator for a simple and elegant logo that captures and incorporates the meaning of the input sent. The prompt should take the input and create a simple, vector graphic logo description for the AI to generate.解读输出形态不是设计说明而是一条可直接发送给 AI 图像生成器的提示词。它应当从输入中抽取并内化captures and incorporates输入的含义最终产出一条简单、矢量图形风格的 Logo 描述。3. OUTPUT INSTRUCTIONS输出纪律原文四条硬性纪律构成模式的核心约束约束含义与目的Ensure the description asks for a simple, vector graphic logo描述中必须显式要求矢量图形保证可缩放、可商用落地Do not output anything other than the raw image description输出只能是裸提示词不夹带解释、前言或建议You only output human-readable Markdown使用人类可读的 Markdown而非 JSON 等机器格式Do not output warnings or notes不输出警告或备注杜绝干扰图像生成器的冗余信息4. INPUT输入占位原文以INPUT:结尾随后由 Fabric 运行时把用户实际输入追加到该位置详见下文第三部分。完整原文为保证事实准确、便于你作为定制模板二次开发system.md原文如下文件路径 data/patterns/create_logo/system.md# IDENTITY and PURPOSE You create simple, elegant, and impactful company logos based on the input given to you. The logos are super minimalist and without text. Take a deep breath and think step by step about how to best accomplish this goal using the following steps. # OUTPUT SECTIONS - Output a prompt that can be sent to an AI image generator for a simple and elegant logo that captures and incorporates the meaning of the input sent. The prompt should take the input and create a simple, vector graphic logo description for the AI to generate. # OUTPUT INSTRUCTIONS - Ensure the description asks for a simple, vector graphic logo. - Do not output anything other than the raw image description that will be sent to the image generator. - You only output human-readable Markdown. - Do not output warnings or notes —- just the requested sections. # INPUT: INPUT:三、运行机制system.md 如何被 Fabric 加载并注入输入理解 Fabric 内部如何跑这份 system.md能帮你预判实际使用效果。相关实现集中在 internal/plugins/db/fsdb/patterns.go。模式即目录 固定文件名在数据层初始化时Pattern 存储被定义为目录即模式、目录内system.md即提示词主体见 internal/plugins/db/fsdb/db.go。因此create_logo的加载路径就是patterns/create_logo/system.md。名称或文件路径二选一internal/plugins/db/fsdb/patterns.go 的loadPattern会先判断参数是否形如文件路径以/、~、.等开头不是路径就按模式库名称从 DB 目录读取。所以既可以用--pattern create_logo也可以指向任意*.md文件如--pattern /path/to/logo.md。输入自动注入{{input}}system.md本身以INPUT:结尾、正文不含占位符时Fabric 的ensureInput会检测是否存在{{input}}若不存在则在文件末尾补\n{{input}}随后applyInput用真实输入替换该占位符见 internal/plugins/db/fsdb/patterns.go。这正是INPUT:之后能自然接上你的品牌描述的原因。变量替换可选applyVariables在替换{{input}}前后会对形如{{var}}的模板变量做递归解析见 internal/plugins/db/fsdb/patterns.go。create_logo官方版本没有声明额外变量你只需提供{{input}}即可若要定制模板可自行改造。HTTP 防护源码中还实现了LooksLikePatternFilePath校验与符号链接安全检查见 internal/plugins/db/fsdb/patterns.go确保经 REST 接口使用模式时不会被当作任意文件读取——这属于路径安全设计不影响日常 CLI 调用。值得一提模式目录中的 data/patterns/create_logo/user.md 目前为空文件Fabric 的 fsdb 数据层以system.md为唯一主体因此空 user.md 不影响加载与运行。若你参考 official_pattern_template 的写法可在 user.md 中补充模式面向的使用场景说明便于模式库检索与浏览。四、三种实战运行方式Fabric 支持--pattern短参数-p指定模式定义见 internal/cli/flags.go。运行create_logo的常见方式如下。方式一命令行参数直传fabric --pattern create_logo A mountain guide company named Summit, trustworthy and adventurous双引号内的文本会作为{{input}}注入模型读完整份 system.md 输入后只返回一条可直接交给图像生成器的 Logo 描述想省去引导提示语时也可直接传一句更口语化的描述例如An eco-friendly coffee roastery using solar power。方式二管道stdin输入cat brand_brief.txt | fabric --pattern create_logo echo A friendly cybersecurity consultancy protecting small business | fabric --pattern create_logoCLI 会把管道内容作为消息与模式一并提交适合批量处理多组品牌描述例如一次为 5 个候选品牌各生成一个方向。方式三config.yaml 固化默认模式Fabric 支持把常用参数写进 YAML 配置官方示例见 internal/cli/example.yaml。可在~/.config/fabric/config.yaml中预设pattern: create_logo model: gpt-4o此后即使不带任何参数CLI 也会默认走create_logo命令行显式传参仍可覆盖。源码在解析时会先读 CLI flags再以配置文件补齐未使用的字段见 internal/cli/flags.go因此参数优先级为命令行 配置文件。进阶技巧把模式变成一条命令源码中有一个便利设计若可执行文件或 symlink/alias名既不是fabric也不是main/cmd程序会把该名字当作--pattern值见 internal/cli/flags.go。因此你可以直接建立别名像使用独立命令一样调用alias create_logofabric --pattern create_logo create_logo A cat café brand that is cozy and playfulDocker 环境下的等价用法数据目录挂载到~/.fabric-config参见仓库根目录 README.mddocker run --rm -it -v $HOME/.fabric-config:/home/appuser/.config/fabric kayvan/fabric:latest -p create_logo 你的品牌描述调试时可先用以下命令查看模式原始内容、确认模式已被收录fabric --listpatterns | grep create_logo fabric --readpattern create_logo对应的能力实现见 internal/cli/flags.go输出逻辑在 internal/plugins/db/fsdb/patterns.go。五、把Logo 提示词真正用起来输入与产物衔接建议create_logo的产出是一条图像描述文本不是图片本身。因此完整工作流是两段式先用 Fabric 得到描述再把它粘贴进任意外部 AI 图像生成工具执行。输入侧建议为了让输出更贴合品牌尽量给足行业 名称或符号语义 气质形容词三要素。例如A logistics company specializing in cold-chain delivery行业geometric iceberg as the core symbol图形语义minimal, reliable, forward-moving气质产物侧预期得到的应当是满足 system.md 纪律的一段纯描述——它显式包含vector graphic / minimal / no text等关键词不含任何多余解释或格式包裹可直接作为图像生成参数。关于如何挑选、迭代生成结果系统提示词设计上刻意把决策权留给你你可以基于第一条输出微调输入文本反复运行也可以把多轮输出分别送去生成后对比。这与同一模式库中其他创作类模式如 create_art_prompt 生成详细视觉描述形成互补前者追求描述的艺术张力create_logo则严格收敛为极简无字、可落地的矢量 Logo 方向。六、注意事项与边界输出只服务于图像生成器不要把模型的回复当成设计说明或提案文档它是逐字用于生图的提示词保留原样使用效果最佳。文字禁令不要自行放宽without text是质量红线若你的品牌强烈依赖文字 Logo建议另行评估而非修改本模式——那会改变其设计目标。不同图像生成模型对提示词的执行差异Fabric 只负责生成描述文本实际生成质量取决于你选择的图像生成模型对vector graphic、no text、minimalist等关键词的遵循程度。你可以按需在上游输入中补充风格锚点扁平、几何、单色等但不要破坏输出保持为纯净提示词的纪律。输入中不要携带噪音system.md 对输出有严格净化要求输入侧也尽量只放品牌相关内容避免大段无关文本稀释含义提取质量。七、延伸阅读模式源文件data/patterns/create_logo/system.md、目录说明文件 data/patterns/create_logo/user.md模式运行原理internal/plugins/db/fsdb/patterns.go、internal/plugins/db/fsdb/db.goCLI 参数与配置internal/cli/flags.go、internal/cli/example.yaml模式目录总索引data/patterns/pattern_explanations.md自定义新模式的官方模板official_pattern_template【免费下载链接】FabricFabric is an open-source framework for augmenting humans using AI. It provides a modular system for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.项目地址: https://gitcode.com/GitHub_Trending/fa/Fabric创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
返回列表