Abstract metallic waves with dark blue and purple hues

Pencil + Claude Code: A New Workflow for Designing and Building AI Interfaces

Explore how Pencil and Claude Code are redefining UX design for AI products. Learn how to design, prototype, and build intelligent interfaces faster with AI-native workflows.
Reading Time: 8 minutes

Aviso de Tradução: Este artigo foi automaticamente traduzido do inglês para Português com recurso a Inteligência Artificial (Microsoft AI Translation). Embora tenha feito o possível para garantir que o texto é traduzido com precisão, algumas imprecisões podem acontecer. Por favor, consulte a versão original em inglês em caso de dúvida.

Listen to this article:
0:00
0:00

Introduction

The way we design digital products is undergoing a fundamental shift. For years, tools like Figma have dominated the design workflow—separating ideation, prototyping, and engineering into distinct phases. But AI is collapsing those boundaries.

Tools like Pencil and Claude Code are introducing a new paradigm: designing and building simultaneously, with AI as the connective layer.

For product leaders, designers, and engineers working on AI-powered interfaces, this isn’t just a tooling upgrade—it’s a workflow transformation.

In this article, we’ll explore how Pencil and Claude Code work together, what this means for UX design in AI, and where this workflow creates real competitive advantage.

The Problem: Traditional UX Workflows Don’t Fit AI Products

Most UX processes were designed for deterministic systems:

  • Fixed user flows

  • Predictable outputs

  • Clear interaction patterns

AI breaks all three.

When you’re designing AI-powered features—especially those driven by large language models, you’re dealing with:

  • Probabilistic outputs

  • Dynamic interaction loops

  • Evolving system behaviour

This creates a gap:

  • Designers prototype static screens
  • Engineers implement dynamic AI behaviour
  • Alignment breaks down quickly

This results in interfaces that look polished but fail in real-world usage.

Pencil: Designing with AI in the Loop

Pencil positions itself as more than a design tool—it’s an AI-native prototyping environment.

Instead of drawing screens manually, you:

  • Describe your interface in natural language

  • Generate UI layouts instantly

  • Iterate on flows with AI assistance

Key Capabilities

1. Prompt-driven UI generation
You can describe a product feature (e.g., “AI assistant for e-commerce product comparison”) and generate structured UI screens.

2. Rapid iteration loops
Instead of redrawing components, you refine prompts and regenerate variations.

3. AI-aware design patterns
Pencil is particularly strong at generating interfaces suited for:

    • Chat-based interactions

    • Agent workflows

    • Multi-step AI processes

Claude Code: From Prototype to Working System

While Pencil helps you design, Claude Code bridges the gap to implementation.

Claude Code is an AI-powered development environment that allows you to:

  • Generate production-ready code

  • Refactor and test logic

  • Build AI-powered features directly from prompts

Why This Matters for UX

Traditionally:

  • Designers → Figma

  • Engineers → Code

  • Handoff → Painful

With Claude Code:

  • The interface logic and UI can be co-developed
  • The behaviour of the AI can be tested in context
  • UX becomes a live system, not a static artefact

The Combined Workflow: Design, Build, Iterate (Continuously)

When you combine Pencil and Claude Code, a new workflow emerges:

1. Prompt the Experience (Pencil)

Start with intent, not wireframes:

“Design an AI assistant that helps users compare financial products with transparent reasoning.”

Pencil generates:

  • UI structure

  • Interaction patterns

  • Suggested flows

2. Validate Interaction Logic (Pencil)

You iterate on:

  • Prompt flows

  • Error states

  • Edge cases

This is crucial for AI UX, where failure modes matter as much as success paths.

3. Translate to Code (Claude Code)

Move into Claude Code:

  • Generate UI components

  • Implement LLM calls

  • Structure prompts and responses

4. Test Real Behaviour

Now the key difference:

  • You’re not testing mockups
  • You’re testing actual AI outputs in the interface

This allows you to:

  • Tune prompts

  • Adjust UI feedback

  • Improve system trust

5. Continuous Iteration

The loop becomes:

Prompt – Generate – Test – Refine – Deploy

This is far closer to product thinking than traditional UX workflows.

Why This Matters for AI UX Design

This workflow unlocks three major shifts:

1. From Static Design to Behavioural Design

In AI products, the UI is only half the experience.

The real UX comes from:

  • How the AI responds

  • How it explains itself

  • How it recovers from errors

Pencil + Claude Code allow you to design both:

Interface + Behaviour

The traditional “design → dev handoff” becomes obsolete.

Instead:

  • Designers can explore logic

  • Engineers can shape UX

  • Product managers can test flows early

This creates tighter feedback loops and better outcomes.

3. From Prototypes to Production-Ready Experiments

Instead of static prototypes: You get working systems earlier

This means:

  • Faster validation

  • Better stakeholder alignment

  • Reduced risk in AI features

Where This Workflow Works Best

This approach is particularly powerful in:

AI Assistants & Copilots

  • Customer support bots

  • Internal productivity tools

  • Knowledge assistants

Agent-Based Workflows

  • Multi-step automation flows

  • Decision-making systems

  • AI-driven commerce journeys

Intelligent Interfaces

  • Recommendation systems

  • Personalised dashboards

  • Conversational UX

Limitations and Considerations

While promising, this workflow isn’t perfect.

1. Design Quality Still Depends on Prompts

Poor prompts → poor UI outputs.

Teams need prompt literacy, not just design skills.

2. Risk of Over-Generated Interfaces

AI-generated UI can feel:

  • Generic

  • Overly complex

  • Misaligned with brand

Strong design principles still matter.

3. Governance and Control

When using tools like Claude Code:

  • How is code validated?

  • How are prompts versioned?

  • How do you test outputs systematically?

This is where AI engineering practices and governance frameworks become critical.

Strategic Takeaway: UX Becomes a System, Not a Layer

The biggest shift here isn’t the tools—it’s the mindset.

With Pencil and Claude Code:

  • UX is no longer a phase

  • It’s a continuous system

  • It evolves with the product

For product leaders, this means:

  • You’re not just designing interfaces
  • You’re designing adaptive, intelligent systems

Conclusion

The combination of Pencil and Claude Code signals a broader transformation in how AI products are built.

We are moving toward:

  • Faster design-to-development cycles

  • Behaviour-driven UX

  • Integrated product workflows

For organisations investing in AI, this isn’t just a productivity gain—it’s a strategic advantage.

The teams that learn to design and build AI interfaces simultaneously will outpace those still relying on traditional, siloed workflows.

FAQs

1. What is Pencil and how is it different from Figma?

Pencil is an AI-native design tool that generates UI from prompts, whereas traditional tools like Figma rely on manual design. Pencil is optimised for designing AI-powered experiences and dynamic workflows.

Claude Code is an AI-powered development environment that helps developers generate, test, and refine code—particularly useful for building AI-driven features and integrating LLMs into products.

Yes. Pencil is designed to be accessible to non-technical users. However, understanding AI interaction patterns and prompt design significantly improves outcomes.

Yes, but with caution. While Claude Code can generate production-ready code, teams should still implement proper testing, validation, and governance practices.

Key risks include:

  • Over-reliance on generated designs

  • Lack of consistency with design systems

  • Poor handling of AI edge cases

Strong design leadership and governance are essential.

Product managers gain the ability to:

  • Prototype ideas faster

  • Test AI interactions early

  • Align design and engineering more effectivel

 

Support this site

Did you enjoy this content? Want to buy me a coffee?

Related posts

Stay ahead of the AI Curve - With Purpose!

I share insights on strategy, UX, and ethical innovation for product-minded leaders navigating the AI era

No spam, just sharp thinking here and there

Level up your thinking on AI, Product & Ethics

Subscribe to my monthly insights on AI strategy, product innovation and responsible digital transformation

No hype. No jargon. Just thoughtful, real-world reflections - built for digital leaders and curious minds.

Ocasionally, I’ll share practical frameworks and tools you can apply right away.