Ink Painting Prompts from Classical Verse
Augustin Chan · HKOSCon 2026 · 6 June
Queens, New York
early 1980s
CTO & Founder, Digital Rain Technologies
sixlines.online — the app behind this talk
Co-host, hongkongaipodcast.com
Writing at augustinchan.dev
64 hexagrams. Six lines — solid or broken.
Every possible pattern of change.
蒙 · Youthful Folly
Generate 4,096 unique ink paintings — one for every verse in the Jiaoshi Yilin 焦氏易林
Built for SixLines.online — I-Ching reference & Chinese almanac
The challenge: how do you teach something you can only recognize — never fully articulate — to a machine?
Re-run. Judge again. Repeat.
The pipeline is a black box. You can't reason about the model — you can only judge its output.
霜降閉戶,熟出隱處
不見日月,與死爲伍
Frost falls, doors seal shut. Hidden from sun and moon, dwelling with death.
溫山松柏,常茂不落
鸞鳳所庇,得其歡樂
Warm mountain pines, ever verdant. Sheltered by phoenix, finding joy.
明月照夜,使暗為晝
Bright moon lights the night, turning dark to day.
跛躓未起,失利後市
不得鹿子
Stumbling, not yet risen. Missed the market — the fawn escapes.
元吉无咎,安寧不殆
Great fortune, no blame. Peace without peril.
初憂不安,後得笑懽
雖懼無患
First worry, then laughter. Though fearful, no harm.
賀喜從福,日利蕃息
Celebrations follow fortune. Blessings multiply daily.
"…overflowing well, water branching… Ink wash with soft watercolor tints."
Flat. Lifeless. The model treated "ink wash" as a filter, not a language.
"…overflowing well… Wabi-sabi aesthetic, muted tones."
Not even an ink painting. It's a photograph. The style suffix changed the medium entirely.
The prompt must read like the caption under an ink painting — painterly metaphors woven throughout, not appended at the end.
Write it like the caption under the painting — not a scene plus a style suffix.
Same verse. Three layers, painterly language throughout:
All 7 composition rules — woven in, not listed at the end.
key 48-59 · 井 → 渙 · ink-landscape · fal-ai/z-image/turbo
An overflowing well sends water spilling in four branching streams across barren hillside, carving shallow channels in the earth. Foreground, the well mouth brims over, water sheeting across worn stone. Midground, the streams diverge eastward, spreading thin over sun-baked ground, nourishing sparse grasses. Beyond, desolate brown hills roll to a hazy horizon, the water lost among them. Amber reflections glint where the shallow streams catch the last daylight. Chinese ink painting.
The human said “this works.” The AI figured out why.
Painterly words produce paintings. Descriptive words produce photographs.
Foreground/midground/background forces the model to compose, not just fill.
A single point of color in monochrome gives the eye a destination.
Gates, tree canopies, gorge walls — context creates composition.
All four principles visible
The AI distilled these from human preferences:
atmospheric-night
ink-landscape
figures-in-mist
bold-action
cosmic-night
AI reads verse tone → selects palette
明滅光息,不能復食
精魄既喪,以夜為室
Light dims, radiance dies. Night becomes one's dwelling.
噬嗑 → 頤 · hexagram 21 → 27
禹鑿龍門,通利水源
東注滄海,民得安存
Yu carved Dragon Gate and opened the water's source.
Flowing east to the vast sea, the people found safe dwelling.
雨師娶婦,黃岩季子
成禮既婚,相呼面南
The Rain Master takes a bride. Rites completed, they face south.
Timely rain; a bountiful year, great rejoicing.
白龍黑虎,起伏俱怒
蚩尤敗走,死於魯首
White dragon and black tiger rise in shared fury.
Chi You flees in defeat, slain at Lu Shou.
龍生馬淵,壽考且神
飛騰上天,舍宿軒轅
The dragon born in the deep pool, long-lived and divine.
Flying upward to heaven, dwelling among the stars of Xuanyuan.
Each round encoded more taste:
52 of 4,096 hit content safety filters — the skill encodes substitution patterns: atmosphere and aftermath, never the act. The constraint forced better art.
31% of verses have no concrete imagery. Here's how the skill turns abstract fortune into a painting:
Verse (input)
元吉无咎,安寧不殆
比 → 明夷 · "Great fortune, no blame. Peace without peril."
key 8-36 · ink-landscape · 52 words
What the skill tells the agent
Agent output
Tone: serene, auspicious → ink-landscape
Frame: valley at sunset, stone steps through a temple gate
Depth: worn steps (fg) → wanderer on path (mid) → hazy peaks (bg)
Accent: golden-hour light on the gate
The rules forced the agent to invent concrete visual elements — even when the verse gave it nothing to paint.
A SKILL.md file with YAML frontmatter + instructions. No runtime code — pure prompt engineering that encodes domain expertise.
A skill carries pre-tested expertise. The agent doesn't rediscover — it inherits.
Skills spanning creative, design, and productivity workflows
Classical verse → ink painting prompts (7 rules, 5 styles)
Ink paintings → video motion prompts (Seedance 2.0)
Bilingual scholarly explanations of oracular verse
Abstract concepts → 240-word Blakean embodied scenes
Design audit · 13 dimensions · Jobs/Ive philosophy
Speaker bio writing, photo processing, page generation
Claude Code: /plugin marketplace add augchan42/inkstone
GitHub: github.com/augchan42/inkstone
Cursor: Same skills in Agent chat — ask naturally (e.g. "use verse-to-prompt on …") or copy to .cursor/skills/. No /plugin commands.
opencode: spec-packaged — worth trying npx skills add augchan42/inkstone (opencode ran this on its own to pull the skills).
You can't define good output upfront. It emerges through cycles of human judgment and AI analysis.
Examples teach more than abstract rules.
You judge output. The AI figures out why it works and encodes the rules.
A skill is distilled taste — the final artifact of an iterative collaboration between human and AI.
The idea is spreading. Several tools already support structured agent instructions:
Agent mode reads SKILL.md from .github/skills/ or .agents/skills/
VS Code · CLI · cloud agent
Auto-discovers skills by scanning the skills/ folder against the Agent Skills spec; reads AGENTS.md for project context
Open source · see Jules' talk today!
Copy SKILL.md into .cursor/skills/ — or just ask naturally in chat
No /plugin commands needed
Encode domain expertise into structured documents that agents consume at runtime.
This conference runs on the open-source community. If today's talks brought you value, become a patron — every contribution keeps HKOSCON free, independent, and volunteer-run.
Become a Patron
Sponsor speakers, venues, and travel grants. Keep the open-source movement in Hong Kong thriving.
hkoscon.org/2026/patron
Donate · hkoscon.org/2026/patron
Hong Kong
AI Podcast
Real conversations with Hong Kong's AI practitioners — research, fintech, robotics, culture.
hongkongaipodcast.com
Listen now
The kid who wouldn't learn Chinese taught a machine to paint 4,096 verses of an ancient classic.
Questions?
These slides
App: sixlines.online
Plugin: github.com/augchan42/inkstone
Blog: augustinchan.dev
X: @aug_digitalrain
aug@digitalrain.studio