IFQ Design Skills
One prompt in -> shippable HTML out, with optional MP4 / GIF / PPTX / PDF / SVG export. This root file is a short router for OpenClaw, ClawHub, skills.sh, Hermes, Codex, Claude Code, Cursor, OpenCode, and other AgentSkills-compatible hosts. Load deeper files only when the task requires them.
30-Second Load Path
- Confirm the request is a visual deliverable built from HTML. If it is not, exit this skill.
- Pick the mode from references/modes.md, then read assets/templates/INDEX.json.
- Fork a listed template into the user's workspace. Never start from a blank HTML file.
- Inline assets/ifq-brand/ifq-tokens.css and weave at least 3 IFQ ambient marks from references/ifq-brand-spec.md.
- Verify with
npm run verify:lite -- <file.html>, then npm run preview -- <file.html>.
Human + Agent Promise
- Humans get a finished artifact path: HTML first, optional export only when requested, and no hidden setup.
- Agents get a short route: mode, template, must-read references, tier policy, and verification command.
- Maintainers get regression pressure: 12 mode evals, scanner-clean scripts, and marketplace metadata checks.
- Marketplaces get a readable package: one-line install, zero required env vars, explicit permissions, and no silent installs.
First-Run Success Path
After install, make the first interaction produce a visible artifact in one turn:
- Accept a natural-language visual request without turning it into setup work.
- Route it to one mode and one template; name both in the final evidence.
- Write the HTML file into the user's workspace with labeled assumptions for unresolved facts.
- Run
npm run verify:lite -- <file.html> when shell is available, then preview or screenshot with host browser tooling when available.
- Report the file path, route, template, verification result, and only caveats that affect use.
Do not ask for account login, global install, export dependencies, or broad environment changes during the first-run path.
Output Boundary
- Core output is verified local HTML, plus SVG/static companions or export-ready source structure when the task needs them.
- MP4/GIF/PDF/PPTX helpers are full-repo optional automation. Prepare the HTML source first; install or run export tooling only after explicit user intent.
- Never claim an export file, screenshot, marketplace status, or security result exists until the relevant command or live check has actually passed.
Use When
- Interactive prototype, hi-fi mockup, clickable app flow, dashboard, landing page, whitepaper, report, infographic, slide deck, changelog, card, invitation, social cover, or brand system.
- Motion demo or launch animation, especially when the user also wants MP4/GIF output.
- Design critique, brand diagnosis, or 3 differentiated style directions before implementation.
- The user asks for PDF/PPTX/SVG export from an HTML-first source.
Do Not Use When
- The real task is production frontend engineering, backend work, SEO-critical site implementation, or a CSS bug inside an existing app.
- The user only wants copy editing with no visual artifact.
- The deliverable must round-trip through Word, Google Docs, or a locked corporate template.
Tier Policy
| Tier |
Default? |
Requirements |
Use for |
| Tier 0 |
yes |
Node >= 18.17 |
HTML, preview, lite verification, smoke tests |
| Tier 1 |
opt-in |
Python + Playwright + Chromium |
headless screenshots, console capture, multi-viewport checks |
| Tier 2 |
opt-in |
npm run install:export; MP4/GIF also need ffmpeg |
MP4, GIF, PDF, editable PPTX export |
Do not install optional dependencies unless the user explicitly needs screenshots or export formats.
Routing Decision Tree
User request arrives
│
├─ Is it a visual design deliverable? ─── No → Exit skill, hand back to default agent
│
├─ Can you match a mode trigger? ─── Yes (confidence >70%) → fork template → deliver → verify
│ (one-turn: name assumptions, no questions)
│
├─ Can you match a mode trigger? ─── Yes (confidence ≤70%) → design-direction-advisor.md lightweight
│ (3 text-only directions, no demos, wait for user pick)
│
├─ Does it mention a concrete product/tech/event? ─── Yes → fact-and-asset-protocol.md + web fact-check
│
├─ Is it a mobile app prototype? ─── Yes → app-prototype-rules.md + ios_frame.jsx / android_frame.jsx
│
└─ Is it motion/video? ─── Yes → animation-pitfalls.md + animations.md + video-export.md
Read references/modes.md for full mode protocol. The Quick Reference table above is the speed layer.
Quick Reference (Agent Speed Table)
| Mode |
Trigger keywords |
Template |
Key references |
| M-01 |
launch film, 发布会, product video |
T-launch-film |
animations.md, video-export.md |
| M-02 |
portfolio, 个人站, about me |
T-hero-landing |
design-direction-advisor.md |
| M-03 |
whitepaper, 白皮书, annual report |
T-infographic-vertical |
fact-and-asset-protocol.md |
| M-04 |
dashboard, 看板, KPI, command center |
T-dashboard |
app-prototype-rules.md |
| M-05 |
A vs B, 横评, benchmark |
T-compare-vs |
fact-and-asset-protocol.md |
| M-06 |
onboarding, 新手引导, flow demo |
T-onboarding-flow |
app-prototype-rules.md |
| M-07 |
changelog, release notes, 发布日记 |
T-changelog |
content-guidelines.md |
| M-08 |
keynote, PPT, 演讲, slide deck |
T-slide-title |
slide-decks.md, editable-pptx.md |
| M-09 |
社媒物料, social cover, 小红书 |
T-social-x |
content-guidelines.md |
| M-10 |
名片, business card, 邀请函 |
T-business-card |
ifq-brand-spec.md |
| M-11 |
品牌诊断, brand audit, 品牌体检 |
T-brand-diagnosis |
critique-guide.md |
| M-12 |
brand from scratch, 从零建立品牌 |
T-brand-system |
design-direction-advisor.md |
All templates: npm run verify:lite -- <file> + npm run preview -- <file> (Tier 0, zero-install).
IFQ Ambient Layer
- The user's brand is the subject. IFQ is the authored layer: layout rhythm, warm paper, rust ledger, mono field notes, signal spark, quiet URL, and editorial contrast.
- Every deliverable uses at least 3 IFQ marks. Never paste a loud generic logo or watermark unless the task is IFQ-owned or an animation export that calls for the promotion stamp.
- Built-in templates use local-first fonts for China-safe rendering. Google Fonts or CDN runtimes are opt-in only; see references/font-loading.md.
- Avoid visible internal taxonomy labels such as
Signal Spark or Rust Ledger in user-facing designs. Write real content instead.
Conversation Patterns
Pattern A — Specific request (most common, one turn):
User: "做一个 A vs B 对比评测,我们对 Stripe" → Agent: fact-check both products → route M-05 → fork T-compare-vs → fill with verified data → deliver → verify.
Pattern B — Confident default (one turn):
User: "给我做个 landing page" → Agent: match M-02 with >70% confidence → fork T-hero-landing → pick Editorial Serif style → fill with defaults → deliver → verify → name assumptions in caveats.
Pattern C — Lightweight advisor (two turns):
User: "帮我做点好看的东西" → Agent: no mode match at >70% → read design-direction-advisor.md → propose 3 text-only directions → user picks → route → deliver.
Pattern D — Iterative refinement:
User: "把刚才那个 deck 的配色改暖一点" → Agent: locate previous artifact → edit in-place → re-run verify:lite → report what changed.
Rule: never ask more than 1 question per turn. Use defaults for everything else. If the user did not specify a style, pick one and name it in the deliverable — they can iterate.
Error Recovery
| Failure |
Recovery |
| No template matches the request |
Use T-hero-landing as generic scaffold, note the gap in deliverable |
verify:lite reports placeholders |
Fix the placeholders, re-verify, report the fix |
verify:lite reports IFQ label leaks |
Remove internal taxonomy labels (Signal Spark, Rust Ledger etc.) from user-facing text |
| Export command fails |
Report the exact error, suggest npm run install:export if deps missing, never claim the export exists |
| User says "this looks AI-generated" |
Read anti-ai-slop.md, apply the 7-point pre-flight checklist, rewrite with more rhythm variation |
| Agent cannot fact-check (no web access) |
Name unverified claims as "unverified" in the deliverable, do not invent specs |
| Template rendering fails or looks broken |
Fall back to a simpler template (T-hero-landing), report the degradation reason |
| Request is outside the skill scope |
State the boundary honestly, suggest alternatives (e.g. "this is better suited to a React framework") |
Safety Contract
- Root instructions stay scoped to HTML visual delivery. Do not ask for unrelated secrets, host config, persistent agents, or background services.
- Scripts are local-first: no dynamic eval, no runtime network calls, no hidden installs, and no writes outside the user's workspace.
- Required environment variables are intentionally empty. Optional export tools are documented and invoked only after user intent.
- OpenClaw/ClawHub metadata lives in the single-line JSON
metadata field so parsers can gate on metadata.openclaw.requires.bins and metadata.openclaw.requires.env.
Verification Before Delivery
- Run
npm run verify:lite -- <file.html> for placeholder and IFQ label leaks.
- Run
npm run preview -- <file.html> and inspect the browser output.
- For app prototypes, click at least one primary path, one tab/screen switch, and one detail/annotation action.
- For decks, verify slide count and format requirements before PDF/PPTX export.
- For animation exports, verify timing, audio policy, and final file presence.
- After repo edits, run
npm run validate and npm run verify:publish.
Reference Map
| Need |
Load |
| First-time quickstart, 3 one-liner examples |
references/quickstart.md |
| UI discovery chips and default invocation |
agents/openai.yaml |
| Full role, scope, IFQ runtime posture |
references/ifq-ambient-runtime.md |
| Fact checks, brand assets, product/UI images |
references/fact-and-asset-protocol.md |
| Junior-designer cadence, variations, placeholders, anti-slop |
references/designer-operating-principles.md, references/anti-ai-slop.md |
| Vague prompt -> 3 design directions |
references/design-direction-advisor.md, references/design-styles.md, references/ifq-native-recipes.md |
| End-to-end task workflow, exceptions, exports |
references/delivery-workflow.md, references/workflow.md, references/verification.md |
| Agent interaction protocol, decision tree, state machine |
references/agent-interaction-protocol.md |
| Skill improvement, eval coverage, contribution rules |
references/killer-skill-playbook.md, evals/evals.json, CONTRIBUTING.md, SECURITY.md |
| OpenClaw / ClawHub / skills.sh publishing posture |
references/marketplace-quality.md, references/skill-leaderboard-lessons.md, references/smoke-test.md |
| Runtime install and tool mapping |
references/agent-compatibility.md |
| React/Babel single-file rules |
references/react-setup.md |
| Slides and editable PPTX |
references/slide-decks.md, references/editable-pptx.md |
| Motion/video/audio |
references/animation-pitfalls.md, references/animation-best-practices.md, references/audio-design-rules.md, references/sfx-library.md |
| IFQ identity assets |
references/ifq-brand-spec.md, assets/ifq-brand/BRAND-DNA.md |
Completion Rule
Deliver the smallest verified artifact that satisfies the request. Report the output file, the verification commands run, and any caveats. Do not claim export, screenshots, or marketplace safety unless the relevant check actually passed.
Vollständigen Lizenztext ansehen (Apache-2.0)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to the Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by the Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding any notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: Brand Clause for IFQ Design Skills
Copyright (c) 2026 ifq.ai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
ADDITIONAL TERMS — Brand Attribution Clause
The following additional terms apply to this work in addition to the
Apache License 2.0:
1. IFQ Ambient Marks. This work includes design DNA elements that are
part of the IFQ brand identity: Signal Spark, Rust Ledger, Mono Field
Note, Quiet URL, Editorial Contrast, and hand-drawn icon language.
Derivative works that use or adapt these ambient marks must retain the
attribution "Built with IFQ Design Skills (ifq.ai)" in a visible
location (e.g., README, colophon, or about page).
2. Attribution. Derivative works distributed publicly must include in
their README or equivalent documentation a link to the original
repository: https://github.com/peixl/ifq-design-skills
3. Personal Use Exemption. Non-commercial personal use, learning,
experimentation, and sharing within personal networks are fully
permitted without any additional obligations beyond the Apache 2.0
conditions.
4. Commercial Use. Commercial use is permitted under the Apache 2.0
license. The brand attribution clause (items 1-2 above) applies to
all commercial derivative works. For white-label or co-brand
arrangements, contact ifq.ai to discuss customization options.
END OF ADDITIONAL TERMS